summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorKevin Enderby <enderby@apple.com>2009-09-15 00:27:25 +0000
committerKevin Enderby <enderby@apple.com>2009-09-15 00:27:25 +0000
commitca9c42c4daa8f4ffd9411e11c05fb53ee1bfaf70 (patch)
tree1cfcc2896ea5b3cae259e47c2c10c38936ad3725 /test
parentb6aef5c86736accefb1c61cacaf1bd29e9b25ecd (diff)
downloadllvm-ca9c42c4daa8f4ffd9411e11c05fb53ee1bfaf70.tar.gz
llvm-ca9c42c4daa8f4ffd9411e11c05fb53ee1bfaf70.tar.bz2
llvm-ca9c42c4daa8f4ffd9411e11c05fb53ee1bfaf70.tar.xz
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')
-rw-r--r--test/MC/AsmParser/arm_word_directive.s6
-rw-r--r--test/MC/AsmParser/directive_values.s5
-rw-r--r--test/MC/AsmParser/x86_word_directive.s6
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 0000000000..7833691316
--- /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 900fb7386d..beac69a4ae 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 0000000000..2950c8cd5f
--- /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