[PATCH] D66849: [llvm-objdump] Add the missing ARMv8 subarch detection
Yi Kong via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 27 17:37:42 PDT 2019
kongyi created this revision.
kongyi added reviewers: rupprecht, MaskRay.
Herald added subscribers: llvm-commits, seiya, hiraditya, kristof.beyls, javed.absar.
Herald added a project: LLVM.
Repository:
rL LLVM
https://reviews.llvm.org/D66849
Files:
llvm/lib/Object/ELFObjectFile.cpp
llvm/test/tools/llvm-objdump/ARM/v8-subarch.s
Index: llvm/test/tools/llvm-objdump/ARM/v8-subarch.s
===================================================================
--- /dev/null
+++ llvm/test/tools/llvm-objdump/ARM/v8-subarch.s
@@ -0,0 +1,9 @@
+@ RUN: llvm-mc < %s -triple armv8-elf -filetype=obj | llvm-objdump -triple=arm -d - | FileCheck %s
+
+.arch armv8
+
+lda:
+lda r0, [r1]
+
+@ CHECK-LABEL:lda
+@ CHECK: 9f 0c 91 e1 lda r0, [r1]
Index: llvm/lib/Object/ELFObjectFile.cpp
===================================================================
--- llvm/lib/Object/ELFObjectFile.cpp
+++ llvm/lib/Object/ELFObjectFile.cpp
@@ -356,6 +356,9 @@
case ARMBuildAttrs::v7E_M:
Triple += "v7em";
break;
+ case ARMBuildAttrs::v8_A:
+ Triple += "v8";
+ break;
}
}
if (!isLittleEndian())
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D66849.217540.patch
Type: text/x-patch
Size: 776 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190828/954d595a/attachment.bin>
More information about the llvm-commits
mailing list