1 // RUN
: llvm-mc
-triple armv7a-linux-gnueabihf
%s
-filetype
=obj
-o
/dev
/null
2>&1 | FileCheck
--check-prefix
=OBJ
--allow-empty
%s
2 // RUN
: not llvm-mc
-triple armv7a-linux-gnueabihf
%s
-o
/dev
/null
2>&1 | FileCheck
--check-prefix
=ASM
%s
3 // RUN
: llvm-mc
-triple armv7a-linux-gnueabihf
%s
-filetype
=obj
-o
- | llvm-objdump
-d
- | FileCheck
--check-prefix
=DISASM
%s
6 // Create
a new MCDataFragment due to Subtarget change
10 // OBJ-
NOT:[[@LINE-
1]]:5: error
: expected absolute expression
11 // ASM
:[[@LINE-
2]]:5: error
: expected absolute expression
12 // DISASM
: orr
r1, r1, #2
20 @ RUN
: not llvm-mc
-filetype
=obj
-triple arm-linux-gnueabihf
--defsym
=ERR
=1 %s
-o
/dev
/null
2>&1 | FileCheck
--check-prefix
=ARM-ERR
%s
21 @ RUN
: not llvm-mc
-filetype
=obj
-triple thumbv7a-linux-gnueabihf
--defsym
=ERR
=1 %s
-o
/dev
/null
2>&1 | FileCheck
--check-prefix
=THUMB2-ERR
%s
28 // ARM-ERR
:[[@LINE-
1]]:5: error
: expected absolute expression
35 // ARM-ERR
:[[@LINE-
1]]:5: error
: expected absolute expression
43 // ARM-ERR
:[[@LINE-
1]]:5: error
: expected absolute expression
50 // THUMB2-ERR
:[[@LINE-
1]]:5: error
: expected absolute expression