summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-09-30 17:24:05 +0000
committerChris Lattner <sabre@nondot.org>2010-09-30 17:24:05 +0000
commit712b52ee916ca047791a9fda8766a93f25b6fbe6 (patch)
treed1d96beb5e3ec4db4615e3c64a36b5abd70c8de2
parentaf5eab57945e5ada32b01b82928bba4d8c265222 (diff)
downloadexternal_llvm-712b52ee916ca047791a9fda8766a93f25b6fbe6.zip
external_llvm-712b52ee916ca047791a9fda8766a93f25b6fbe6.tar.gz
external_llvm-712b52ee916ca047791a9fda8766a93f25b6fbe6.tar.bz2
merge and clean up tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115177 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/MC/AsmParser/X86/x86-32-coverage.s (renamed from test/MC/AsmParser/X86/x86_32-bit.s)0
-rw-r--r--test/MC/AsmParser/X86/x86_32-new-encoder.s19
-rw-r--r--test/MC/AsmParser/X86/x86_64-incl_decl.s26
-rw-r--r--test/MC/AsmParser/X86/x86_64-operands.s15
-rw-r--r--test/MC/AsmParser/X86/x86_64-suffix-matching.s10
-rw-r--r--test/MC/AsmParser/X86/x86_64.s36
6 files changed, 55 insertions, 51 deletions
diff --git a/test/MC/AsmParser/X86/x86_32-bit.s b/test/MC/AsmParser/X86/x86-32-coverage.s
index 25d5199..25d5199 100644
--- a/test/MC/AsmParser/X86/x86_32-bit.s
+++ b/test/MC/AsmParser/X86/x86-32-coverage.s
diff --git a/test/MC/AsmParser/X86/x86_32-new-encoder.s b/test/MC/AsmParser/X86/x86_32-new-encoder.s
index 612d1cd..fd0fd75 100644
--- a/test/MC/AsmParser/X86/x86_32-new-encoder.s
+++ b/test/MC/AsmParser/X86/x86_32-new-encoder.s
@@ -564,3 +564,22 @@ ljmp $0x7ace,$0x7ace
// rdar://8456370
// CHECK: calll a
calll a
+
+// CHECK: incb %al # encoding: [0xfe,0xc0]
+ incb %al
+
+// CHECK: incw %ax # encoding: [0x66,0x40]
+ incw %ax
+
+// CHECK: incl %eax # encoding: [0x40]
+ incl %eax
+
+// CHECK: decb %al # encoding: [0xfe,0xc8]
+ decb %al
+
+// CHECK: decw %ax # encoding: [0x66,0x48]
+ decw %ax
+
+// CHECK: decl %eax # encoding: [0x48]
+ decl %eax
+
diff --git a/test/MC/AsmParser/X86/x86_64-incl_decl.s b/test/MC/AsmParser/X86/x86_64-incl_decl.s
deleted file mode 100644
index 51315f8..0000000
--- a/test/MC/AsmParser/X86/x86_64-incl_decl.s
+++ /dev/null
@@ -1,26 +0,0 @@
-// RUN: llvm-mc -triple i386-unknown-unknown --show-encoding %s | FileCheck --check-prefix=CHECK-X86_32 %s
-// RUN: llvm-mc -triple x86_64-unknown-unknown --show-encoding %s | FileCheck --check-prefix=CHECK-X86_64 %s
-
-# CHECK-X86_32: incb %al # encoding: [0xfe,0xc0]
-# CHECK-X86_64: incb %al # encoding: [0xfe,0xc0]
- incb %al
-
-# CHECK-X86_32: incw %ax # encoding: [0x66,0x40]
-# CHECK-X86_64: incw %ax # encoding: [0x66,0xff,0xc0]
- incw %ax
-
-# CHECK-X86_32: incl %eax # encoding: [0x40]
-# CHECK-X86_64: incl %eax # encoding: [0xff,0xc0]
- incl %eax
-
-# CHECK-X86_32: decb %al # encoding: [0xfe,0xc8]
-# CHECK-X86_64: decb %al # encoding: [0xfe,0xc8]
- decb %al
-
-# CHECK-X86_32: decw %ax # encoding: [0x66,0x48]
-# CHECK-X86_64: decw %ax # encoding: [0x66,0xff,0xc8]
- decw %ax
-
-# CHECK-X86_32: decl %eax # encoding: [0x48]
-# CHECK-X86_64: decl %eax # encoding: [0xff,0xc8]
- decl %eax
diff --git a/test/MC/AsmParser/X86/x86_64-operands.s b/test/MC/AsmParser/X86/x86_64-operands.s
deleted file mode 100644
index 88f1a64..0000000
--- a/test/MC/AsmParser/X86/x86_64-operands.s
+++ /dev/null
@@ -1,15 +0,0 @@
-// RUN: llvm-mc -triple x86_64-unknown-unknown %s | FileCheck %s
-
-# CHECK: callq a
- callq a
-
-# CHECK: leaq -40(%rbp), %r15
- leaq -40(%rbp), %r15
-
-
-
-// rdar://8013734 - Alias dr6=db6
-mov %dr6, %rax
-mov %db6, %rax
-# CHECK: movq %dr6, %rax
-# CHECK: movq %dr6, %rax
diff --git a/test/MC/AsmParser/X86/x86_64-suffix-matching.s b/test/MC/AsmParser/X86/x86_64-suffix-matching.s
deleted file mode 100644
index 0ae6fe5..0000000
--- a/test/MC/AsmParser/X86/x86_64-suffix-matching.s
+++ /dev/null
@@ -1,10 +0,0 @@
-// RUN: llvm-mc -triple x86_64 -o - %s | FileCheck %s
-
-// CHECK: addl $0, %eax
- add $0, %eax
-// CHECK: addb $255, %al
- add $0xFF, %al
-// CHECK: orq %rax, %rdx
- or %rax, %rdx
-// CHECK: shlq $3, %rax
- shl $3, %rax
diff --git a/test/MC/AsmParser/X86/x86_64.s b/test/MC/AsmParser/X86/x86_64.s
index e63b697..d902aaa 100644
--- a/test/MC/AsmParser/X86/x86_64.s
+++ b/test/MC/AsmParser/X86/x86_64.s
@@ -2,6 +2,19 @@
// RUN: FileCheck < %t %s
// RUN: FileCheck --check-prefix=CHECK-STDERR < %t.err %s
+
+// Suffix inference:
+
+// CHECK: addl $0, %eax
+ add $0, %eax
+// CHECK: addb $255, %al
+ add $0xFF, %al
+// CHECK: orq %rax, %rdx
+ or %rax, %rdx
+// CHECK: shlq $3, %rax
+ shl $3, %rax
+
+
// CHECK: subb %al, %al
subb %al, %al
@@ -750,3 +763,26 @@ fildll -8(%rsp)
// CHECK: fildll -8(%rsp)
// CHECK: encoding: [0xdf,0x6c,0x24,0xf8]
+// CHECK: callq a
+ callq a
+
+// CHECK: leaq -40(%rbp), %r15
+ leaq -40(%rbp), %r15
+
+
+
+// rdar://8013734 - Alias dr6=db6
+mov %dr6, %rax
+mov %db6, %rax
+// CHECK: movq %dr6, %rax
+// CHECK: movq %dr6, %rax
+
+
+// INC/DEC encodings.
+incb %al // CHECK: incb %al # encoding: [0xfe,0xc0]
+incw %ax // CHECK: incw %ax # encoding: [0x66,0xff,0xc0]
+incl %eax // CHECK: incl %eax # encoding: [0xff,0xc0]
+decb %al // CHECK: decb %al # encoding: [0xfe,0xc8]
+decw %ax // CHECK: decw %ax # encoding: [0x66,0xff,0xc8]
+decl %eax // CHECK: decl %eax # encoding: [0xff,0xc8]
+