merge and clean up tests.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115177 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2010-09-30 17:24:05 +00:00
parent af2a8b21f1
commit 27c5215fbd
6 changed files with 55 additions and 51 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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]