summaryrefslogtreecommitdiff
path: root/test/Object
diff options
context:
space:
mode:
authorJack Carter <jcarter@mips.com>2012-08-28 19:24:49 +0000
committerJack Carter <jcarter@mips.com>2012-08-28 19:24:49 +0000
commitfd6d1651551d5a08b3cf0fcafed5e91a40b8e317 (patch)
tree22bf244695dfcc8a1d348e4298809e23ac8d8075 /test/Object
parent8e48e0b1201bc80af9b43b2742529d976dbfafb0 (diff)
downloadllvm-fd6d1651551d5a08b3cf0fcafed5e91a40b8e317.tar.gz
llvm-fd6d1651551d5a08b3cf0fcafed5e91a40b8e317.tar.bz2
llvm-fd6d1651551d5a08b3cf0fcafed5e91a40b8e317.tar.xz
Some of the instructions in the Mips instruction set are revision
delimited. llvm-mc -disassemble access these through the -mattr option. llvm-objdump -disassemble had no such way to set the attribute so some instructions were just not recognized for disassembly. This patch accepts llvm-mc mechanism for specifying the attributes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162781 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Object')
-rw-r--r--test/Object/Mips/dext-test.elf-mips64r2bin0 -> 802 bytes
-rw-r--r--test/Object/Mips/feature.test11
2 files changed, 11 insertions, 0 deletions
diff --git a/test/Object/Mips/dext-test.elf-mips64r2 b/test/Object/Mips/dext-test.elf-mips64r2
new file mode 100644
index 0000000000..59dbaef69a
--- /dev/null
+++ b/test/Object/Mips/dext-test.elf-mips64r2
Binary files differ
diff --git a/test/Object/Mips/feature.test b/test/Object/Mips/feature.test
new file mode 100644
index 0000000000..5e5c9f442d
--- /dev/null
+++ b/test/Object/Mips/feature.test
@@ -0,0 +1,11 @@
+RUN: llvm-objdump -disassemble -triple mips64el -mattr +mips64r2 %p/dext-test.elf-mips64r2 \
+RUN: | FileCheck %s
+
+CHECK: Disassembly of section .text:
+CHECK: .text:
+CHECK: 0: 08 00 e0 03 jr $ra
+CHECK: 4: 43 49 82 7c dext $2, $4, 5, 10
+CHECK: 8: 08 00 e0 03 jr $ra
+CHECK: c: 83 28 82 7c dext $2, $4, 2, 6
+CHECK: 10: 08 00 e0 03 jr $ra
+CHECK: 14: 43 09 82 7c dext $2, $4, 5, 2