1 @ RUN
: llvm-mc
%s
-triple armv5-unknown-linux
-filetype
=obj
-o
%t
2 @ RUN
: llvm-objdump
-d
%t | FileCheck
-check-prefix
=STD %s
3 @ RUN
: llvm-objdump
-d
-Mreg-names-
std %t \
4 @ RUN
: | FileCheck
-check-prefix
=STD %s
5 @ RUN
: llvm-objdump
-d
--disassembler-options
=reg-names-raw
%t \
6 @ RUN
: | FileCheck
-check-prefix
=RAW
%s
7 @ RUN
: llvm-objdump
-d
-Mreg-names-raw
,reg-names-
std %t \
8 @ RUN
: | FileCheck
-check-prefix
=STD %s
9 @ RUN
: llvm-objdump
-d
-Mreg-names-
std,reg-names-raw
%t \
10 @ RUN
: | FileCheck
-check-prefix
=RAW
%s
11 @ RUN
: not llvm-objdump
-d
-Munknown
%t 2>&1 \
12 @ RUN
: | FileCheck
-check-prefix
=ERR
%s
13 @ ERR
: Unrecognized disassembler option
: unknown
15 @ Test that the
-M alias can
be used flexibly. Create
a baseline
and ensure
16 @ all other combinations are identical.
17 @ RUN
: llvm-objdump
-d
--disassembler-options
=reg-names-raw
%t > %t.raw
18 @ RUN
: llvm-objdump
-d
-M reg-names-raw
%t > %t.1
19 @ RUN
: llvm-objdump
-d
-Mreg-names-raw
%t > %t.2
20 @ RUN
: llvm-objdump
-d
-Mreg-names-
std -Mreg-names-raw
%t > %t.3
21 @ RUN
: llvm-objdump
-d
-Mreg-names-
std,reg-names-raw
%t > %t.4
22 @ RUN
: llvm-objdump
-dM reg-names-
std,reg-names-raw
%t > %t.5
23 @ RUN
: llvm-objdump
-dMreg-names-
std,reg-names-raw
%t > %t.6
24 @ RUN
: llvm-objdump
-dMreg-names-
std -Mreg-names-raw
%t > %t.7
25 @ RUN
: cmp %t.raw
%t.1
26 @ RUN
: cmp %t.raw
%t.2
27 @ RUN
: cmp %t.raw
%t.3
28 @ RUN
: cmp %t.raw
%t.4
29 @ RUN
: cmp %t.raw
%t.5
30 @ RUN
: cmp %t.raw
%t.6
31 @ RUN
: cmp %t.raw
%t.7
36 @ RAW
: add r13, r14, r15