diff options
author | Kevin Enderby <enderby@apple.com> | 2009-09-15 00:27:25 +0000 |
---|---|---|
committer | Kevin Enderby <enderby@apple.com> | 2009-09-15 00:27:25 +0000 |
commit | 3d711a3d76b29a8b13ec316c81d0161df47818ce (patch) | |
tree | 1cfcc2896ea5b3cae259e47c2c10c38936ad3725 /test/MC | |
parent | 722f41892d746e32e0456a8e90640be7b93b4175 (diff) | |
download | external_llvm-3d711a3d76b29a8b13ec316c81d0161df47818ce.zip external_llvm-3d711a3d76b29a8b13ec316c81d0161df47818ce.tar.gz external_llvm-3d711a3d76b29a8b13ec316c81d0161df47818ce.tar.bz2 |
Added the first bits of the ARM target assembler to llvm-mc. For now it only
parses the .word directive as 4 bytes and ARMAsmParser::ParseInstruction will
give an error is called. Broke out the test of the .word directive into two
different test cases, one for x86 and one for arm.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81817 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC')
-rw-r--r-- | test/MC/AsmParser/arm_word_directive.s | 6 | ||||
-rw-r--r-- | test/MC/AsmParser/directive_values.s | 5 | ||||
-rw-r--r-- | test/MC/AsmParser/x86_word_directive.s | 6 |
3 files changed, 12 insertions, 5 deletions
diff --git a/test/MC/AsmParser/arm_word_directive.s b/test/MC/AsmParser/arm_word_directive.s new file mode 100644 index 0000000..7833691 --- /dev/null +++ b/test/MC/AsmParser/arm_word_directive.s @@ -0,0 +1,6 @@ +@ RUN: llvm-mc -triple arm-unknown-unknown %s | FileCheck %s + +@ CHECK: TEST0: +@ CHECK: .long 3 +TEST0: + .word 3 diff --git a/test/MC/AsmParser/directive_values.s b/test/MC/AsmParser/directive_values.s index 900fb73..beac69a 100644 --- a/test/MC/AsmParser/directive_values.s +++ b/test/MC/AsmParser/directive_values.s @@ -19,8 +19,3 @@ TEST2: # CHECK: .quad 9 TEST3: .quad 9 - -# CHECK: TEST4: -# CHECK: .short 3 -TEST4: - .word 3 diff --git a/test/MC/AsmParser/x86_word_directive.s b/test/MC/AsmParser/x86_word_directive.s new file mode 100644 index 0000000..2950c8c --- /dev/null +++ b/test/MC/AsmParser/x86_word_directive.s @@ -0,0 +1,6 @@ +# RUN: llvm-mc -triple i386-unknown-unknown %s | FileCheck %s + +# CHECK: TEST0: +# CHECK: .short 3 +TEST0: + .word 3 |