--- /dev/null
+@ RUN: llvm-mc -triple arm-unknown-unknown %s | FileCheck %s
+
+@ CHECK: TEST0:
+@ CHECK: .long 3
+TEST0:
+ .word 3
--- /dev/null
+load_lib llvm.exp
+
+if { [llvm_supports_target ARM] } {
+ RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
+}
--- /dev/null
+load_lib llvm.exp
+
+if { [llvm_supports_target X86] } {
+ RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
+}
--- /dev/null
+// FIXME: Switch back to FileCheck once we print actual instructions
+
+// RUN: llvm-mc -triple x86_64-unknown-unknown %s | FileCheck %s
+
+// CHECK: subb %al, %al
+ subb %al, %al
+
+// CHECK: addl $24, %eax
+ addl $24, %eax
+
+// CHECK: movl %eax, 10(%ebp)
+ movl %eax, 10(%ebp)
+// CHECK: movl %eax, 10(%ebp,%ebx)
+ movl %eax, 10(%ebp, %ebx)
+// CHECK: movl %eax, 10(%ebp,%ebx,4)
+ movl %eax, 10(%ebp, %ebx, 4)
+// CHECK: movl %eax, 10(,%ebx,4)
+ movl %eax, 10(, %ebx, 4)
+
+// FIXME: Check that this matches SUB32ri8
+// CHECK: subl $1, %eax
+ subl $1, %eax
+
+// FIXME: Check that this matches SUB32ri8
+// CHECK: subl $-1, %eax
+ subl $-1, %eax
+
+// FIXME: Check that this matches SUB32ri
+// CHECK: subl $256, %eax
+ subl $256, %eax
+
+// FIXME: Check that this matches XOR64ri8
+// CHECK: xorq $1, %rax
+ xorq $1, %rax
+
+// FIXME: Check that this matches XOR64ri32
+// CHECK: xorq $256, %rax
+ xorq $256, %rax
+
+// FIXME: Check that this matches SUB8rr
+// CHECK: subb %al, %bl
+ subb %al, %bl
+
+// FIXME: Check that this matches SUB16rr
+// CHECK: subw %ax, %bx
+ subw %ax, %bx
+
+// FIXME: Check that this matches SUB32rr
+// CHECK: subl %eax, %ebx
+ subl %eax, %ebx
+
+// FIXME: Check that this matches the correct instruction.
+// CHECK: call *%rax
+ call *%rax
+
+// FIXME: Check that this matches the correct instruction.
+// CHECK: shldl %cl, %eax, %ebx
+ shldl %cl, %eax, %ebx
--- /dev/null
+// FIXME: Actually test that we get the expected results.
+
+// RUN: llvm-mc -triple i386-unknown-unknown %s | FileCheck %s
+
+# Immediates
+# CHECK: addl $1, %eax
+ addl $1, %eax
+# CHECK: addl $1+2, %eax
+ addl $(1+2), %eax
+# CHECK: addl $a, %eax
+ addl $a, %eax
+# CHECK: addl $1+2, %eax
+ addl $1 + 2, %eax
+
+# Disambiguation
+
+ # FIXME: Add back when we can match this.
+ #addl $1, 4+4
+ # FIXME: Add back when we can match this.
+ #addl $1, (4+4)
+# CHECK: addl $1, 4+4(%eax)
+ addl $1, 4+4(%eax)
+# CHECK: addl $1, 4+4(%eax)
+ addl $1, (4+4)(%eax)
+# CHECK: addl $1, 8(%eax)
+ addl $1, 8(%eax)
+# CHECK: addl $1, 0(%eax)
+ addl $1, (%eax)
+# CHECK: addl $1, 4+4(,%eax)
+ addl $1, (4+4)(,%eax)
+
+# Indirect Memory Operands
+# CHECK: addl $1, 1(%eax)
+ addl $1, 1(%eax)
+# CHECK: addl $1, 1(%eax,%ebx)
+ addl $1, 1(%eax,%ebx)
+# CHECK: addl $1, 1(%eax,%ebx)
+ addl $1, 1(%eax,%ebx,)
+# CHECK: addl $1, 1(%eax,%ebx,4)
+ addl $1, 1(%eax,%ebx,4)
+# CHECK: addl $1, 1(,%ebx)
+ addl $1, 1(,%ebx)
+# CHECK: addl $1, 1(,%ebx)
+ addl $1, 1(,%ebx,)
+# CHECK: addl $1, 1(,%ebx,4)
+ addl $1, 1(,%ebx,4)
+# CHECK: addl $1, 1(,%ebx,4)
+ addl $1, 1(,%ebx,(2+2))
+
+# '*'
+# CHECK: call a
+ call a
+# CHECK: call *%eax
+ call *%eax
+# CHECK: call *4(%eax)
+ call *4(%eax)
+
+
--- /dev/null
+# RUN: llvm-mc -triple i386-unknown-unknown %s | FileCheck %s
+
+# CHECK: TEST0:
+# CHECK: .short 3
+TEST0:
+ .word 3
+++ /dev/null
-@ RUN: llvm-mc -triple arm-unknown-unknown %s | FileCheck %s
-
-@ CHECK: TEST0:
-@ CHECK: .long 3
-TEST0:
- .word 3
load_lib llvm.exp
-if { [llvm_supports_target X86] } {
- RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{s}]]
-}
+RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{s}]]
+++ /dev/null
-// FIXME: Switch back to FileCheck once we print actual instructions
-
-// RUN: llvm-mc -triple x86_64-unknown-unknown %s | FileCheck %s
-
-// CHECK: subb %al, %al
- subb %al, %al
-
-// CHECK: addl $24, %eax
- addl $24, %eax
-
-// CHECK: movl %eax, 10(%ebp)
- movl %eax, 10(%ebp)
-// CHECK: movl %eax, 10(%ebp,%ebx)
- movl %eax, 10(%ebp, %ebx)
-// CHECK: movl %eax, 10(%ebp,%ebx,4)
- movl %eax, 10(%ebp, %ebx, 4)
-// CHECK: movl %eax, 10(,%ebx,4)
- movl %eax, 10(, %ebx, 4)
-
-// FIXME: Check that this matches SUB32ri8
-// CHECK: subl $1, %eax
- subl $1, %eax
-
-// FIXME: Check that this matches SUB32ri8
-// CHECK: subl $-1, %eax
- subl $-1, %eax
-
-// FIXME: Check that this matches SUB32ri
-// CHECK: subl $256, %eax
- subl $256, %eax
-
-// FIXME: Check that this matches XOR64ri8
-// CHECK: xorq $1, %rax
- xorq $1, %rax
-
-// FIXME: Check that this matches XOR64ri32
-// CHECK: xorq $256, %rax
- xorq $256, %rax
-
-// FIXME: Check that this matches SUB8rr
-// CHECK: subb %al, %bl
- subb %al, %bl
-
-// FIXME: Check that this matches SUB16rr
-// CHECK: subw %ax, %bx
- subw %ax, %bx
-
-// FIXME: Check that this matches SUB32rr
-// CHECK: subl %eax, %ebx
- subl %eax, %ebx
-
-// FIXME: Check that this matches the correct instruction.
-// CHECK: call *%rax
- call *%rax
-
-// FIXME: Check that this matches the correct instruction.
-// CHECK: shldl %cl, %eax, %ebx
- shldl %cl, %eax, %ebx
+++ /dev/null
-// FIXME: Actually test that we get the expected results.
-
-// RUN: llvm-mc -triple i386-unknown-unknown %s | FileCheck %s
-
-# Immediates
-# CHECK: addl $1, %eax
- addl $1, %eax
-# CHECK: addl $1+2, %eax
- addl $(1+2), %eax
-# CHECK: addl $a, %eax
- addl $a, %eax
-# CHECK: addl $1+2, %eax
- addl $1 + 2, %eax
-
-# Disambiguation
-
- # FIXME: Add back when we can match this.
- #addl $1, 4+4
- # FIXME: Add back when we can match this.
- #addl $1, (4+4)
-# CHECK: addl $1, 4+4(%eax)
- addl $1, 4+4(%eax)
-# CHECK: addl $1, 4+4(%eax)
- addl $1, (4+4)(%eax)
-# CHECK: addl $1, 8(%eax)
- addl $1, 8(%eax)
-# CHECK: addl $1, 0(%eax)
- addl $1, (%eax)
-# CHECK: addl $1, 4+4(,%eax)
- addl $1, (4+4)(,%eax)
-
-# Indirect Memory Operands
-# CHECK: addl $1, 1(%eax)
- addl $1, 1(%eax)
-# CHECK: addl $1, 1(%eax,%ebx)
- addl $1, 1(%eax,%ebx)
-# CHECK: addl $1, 1(%eax,%ebx)
- addl $1, 1(%eax,%ebx,)
-# CHECK: addl $1, 1(%eax,%ebx,4)
- addl $1, 1(%eax,%ebx,4)
-# CHECK: addl $1, 1(,%ebx)
- addl $1, 1(,%ebx)
-# CHECK: addl $1, 1(,%ebx)
- addl $1, 1(,%ebx,)
-# CHECK: addl $1, 1(,%ebx,4)
- addl $1, 1(,%ebx,4)
-# CHECK: addl $1, 1(,%ebx,4)
- addl $1, 1(,%ebx,(2+2))
-
-# '*'
-# CHECK: call a
- call a
-# CHECK: call *%eax
- call *%eax
-# CHECK: call *4(%eax)
- call *4(%eax)
-
-
+++ /dev/null
-# RUN: llvm-mc -triple i386-unknown-unknown %s | FileCheck %s
-
-# CHECK: TEST0:
-# CHECK: .short 3
-TEST0:
- .word 3