summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/MC/MachO/direction_labels.s12
-rw-r--r--llvm/test/MC/X86/intel-syntax-binary.s14
2 files changed, 20 insertions, 6 deletions
diff --git a/llvm/test/MC/MachO/direction_labels.s b/llvm/test/MC/MachO/direction_labels.s
index e224ed3a147..35f5d44f728 100644
--- a/llvm/test/MC/MachO/direction_labels.s
+++ b/llvm/test/MC/MachO/direction_labels.s
@@ -1,15 +1,15 @@
// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | macho-dump --dump-section-data | FileCheck %s
direction_labels:
-10: nop
- jmp 10b
- nop
+8: nop
+ jmp 8b
+ nop
jne 0f
0: nop
jne 0b
- jmp 11f
-11: nop
- ret
+ jmp 9f
+9: nop
+ ret
// CHECK: ('cputype', 7)
// CHECK: ('cpusubtype', 3)
diff --git a/llvm/test/MC/X86/intel-syntax-binary.s b/llvm/test/MC/X86/intel-syntax-binary.s
new file mode 100644
index 00000000000..1c4a4cc25b0
--- /dev/null
+++ b/llvm/test/MC/X86/intel-syntax-binary.s
@@ -0,0 +1,14 @@
+// RUN: llvm-mc -triple x86_64-unknown-unknown -x86-asm-syntax=intel %s | FileCheck %s
+// rdar://12470373
+
+// Checks to make sure we parse the binary suffix properly.
+// CHECK: movl $1, %eax
+ mov eax, 01b
+// CHECK: movl $2, %eax
+ mov eax, 10b
+// CHECK: movl $3, %eax
+ mov eax, 11b
+// CHECK: movl $3, %eax
+ mov eax, 11B
+// CHECK: movl $2711, %eax
+ mov eax, 101010010111B
OpenPOWER on IntegriCloud