From fd6d1651551d5a08b3cf0fcafed5e91a40b8e317 Mon Sep 17 00:00:00 2001 From: Jack Carter Date: Tue, 28 Aug 2012 19:24:49 +0000 Subject: 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 --- test/Object/Mips/feature.test | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/Object/Mips/feature.test (limited to 'test/Object/Mips/feature.test') diff --git a/test/Object/Mips/feature.test b/test/Object/Mips/feature.test new file mode 100644 index 0000000..5e5c9f4 --- /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 -- cgit v1.1 From f05da8ebd65daefb568c854b592cb7a0a7d3a9c9 Mon Sep 17 00:00:00 2001 From: Jack Carter Date: Wed, 29 Aug 2012 00:10:48 +0000 Subject: Moved input for objdump test from Mips to Inputs. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162808 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Object/Mips/feature.test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/Object/Mips/feature.test') diff --git a/test/Object/Mips/feature.test b/test/Object/Mips/feature.test index 5e5c9f4..e8da609 100644 --- a/test/Object/Mips/feature.test +++ b/test/Object/Mips/feature.test @@ -1,4 +1,4 @@ -RUN: llvm-objdump -disassemble -triple mips64el -mattr +mips64r2 %p/dext-test.elf-mips64r2 \ +RUN: llvm-objdump -disassemble -triple mips64el -mattr +mips64r2 %p/../Inputs/dext-test.elf-mips64r2 \ RUN: | FileCheck %s CHECK: Disassembly of section .text: -- cgit v1.1