[llvm] r294771 - Yet another fix llvm-objdump so it picks a good CPU based for Mach-O files,
Kevin Enderby via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 10 11:27:10 PST 2017
Author: enderby
Date: Fri Feb 10 13:27:10 2017
New Revision: 294771
URL: http://llvm.org/viewvc/llvm-project?rev=294771&view=rev
Log:
Yet another fix llvm-objdump so it picks a good CPU based for Mach-O files,
in this case for CPU_SUBTYPE_ARM64_ALL.
For this cpusubtype it should default to a cyclone CPU
to give proper disassembly without a -mcpu= flag.
rdar://27767188
Added:
llvm/trunk/test/tools/llvm-objdump/AArch64/Inputs/print-armv8crypto.obj.macho-aarch64 (with props)
llvm/trunk/test/tools/llvm-objdump/AArch64/mach-print-armv8crypto.test
Modified:
llvm/trunk/lib/Object/MachOObjectFile.cpp
llvm/trunk/test/tools/llvm-objdump/AArch64/macho-print-mrs.test
Modified: llvm/trunk/lib/Object/MachOObjectFile.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Object/MachOObjectFile.cpp?rev=294771&r1=294770&r2=294771&view=diff
==============================================================================
--- llvm/trunk/lib/Object/MachOObjectFile.cpp (original)
+++ llvm/trunk/lib/Object/MachOObjectFile.cpp Fri Feb 10 13:27:10 2017
@@ -2477,6 +2477,8 @@ Triple MachOObjectFile::getArchTriple(ui
case MachO::CPU_TYPE_ARM64:
switch (CPUSubType & ~MachO::CPU_SUBTYPE_MASK) {
case MachO::CPU_SUBTYPE_ARM64_ALL:
+ if (McpuDefault)
+ *McpuDefault = "cyclone";
if (ArchFlag)
*ArchFlag = "arm64";
return Triple("arm64-apple-darwin");
Added: llvm/trunk/test/tools/llvm-objdump/AArch64/Inputs/print-armv8crypto.obj.macho-aarch64
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objdump/AArch64/Inputs/print-armv8crypto.obj.macho-aarch64?rev=294771&view=auto
==============================================================================
Binary file - no diff available.
Propchange: llvm/trunk/test/tools/llvm-objdump/AArch64/Inputs/print-armv8crypto.obj.macho-aarch64
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: llvm/trunk/test/tools/llvm-objdump/AArch64/mach-print-armv8crypto.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objdump/AArch64/mach-print-armv8crypto.test?rev=294771&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objdump/AArch64/mach-print-armv8crypto.test (added)
+++ llvm/trunk/test/tools/llvm-objdump/AArch64/mach-print-armv8crypto.test Fri Feb 10 13:27:10 2017
@@ -0,0 +1,3 @@
+RUN: llvm-objdump -d -m -no-show-raw-insn %p/Inputs/print-armv8crypto.obj.macho-aarch64 | FileCheck %s
+
+CHECK: 0: sha1su0.4s v0, v1, v2
Modified: llvm/trunk/test/tools/llvm-objdump/AArch64/macho-print-mrs.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objdump/AArch64/macho-print-mrs.test?rev=294771&r1=294770&r2=294771&view=diff
==============================================================================
--- llvm/trunk/test/tools/llvm-objdump/AArch64/macho-print-mrs.test (original)
+++ llvm/trunk/test/tools/llvm-objdump/AArch64/macho-print-mrs.test Fri Feb 10 13:27:10 2017
@@ -1,3 +1,3 @@
RUN: llvm-objdump -d -m -no-show-raw-insn %p/Inputs/print-mrs.obj.macho-aarch64 | FileCheck %s
-CHECK: 0: mrs x0, S3_7_C15_C2_0
+CHECK: 0: mrs x0, CPM_IOACC_CTL_EL3
More information about the llvm-commits
mailing list