mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-26 14:33:02 +02:00
ab14df376a
temporary workaround for matching inc/dec on x86_64 to the correct instruction. - This hack will eventually be replaced with a robust mechanism for handling matching instructions based on the available target features. llvm-svn: 98858
27 lines
876 B
ArmAsm
27 lines
876 B
ArmAsm
// 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
|