mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-17 21:35:07 +00:00
a951f77ca3
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148489 91177308-0d34-0410-b5e6-96231b3b80d8
35 lines
825 B
ArmAsm
35 lines
825 B
ArmAsm
// RUN: llvm-mc -x86-asm-syntax=intel -triple x86_64-unknown-unknown --show-encoding %s | FileCheck %s
|
|
|
|
// CHECK: encoding: [0x66,0x83,0xf0,0x0c]
|
|
xor ax, 12
|
|
// CHECK: encoding: [0x83,0xf0,0x0c]
|
|
xor eax, 12
|
|
// CHECK: encoding: [0x48,0x83,0xf0,0x0c]
|
|
xor rax, 12
|
|
|
|
// CHECK: encoding: [0x66,0x83,0xc8,0x0c]
|
|
or ax, 12
|
|
// CHECK: encoding: [0x83,0xc8,0x0c]
|
|
or eax, 12
|
|
// CHECK: encoding: [0x48,0x83,0xc8,0x0c]
|
|
or rax, 12
|
|
|
|
// CHECK: encoding: [0x66,0x83,0xf8,0x0c]
|
|
cmp ax, 12
|
|
// CHECK: encoding: [0x83,0xf8,0x0c]
|
|
cmp eax, 12
|
|
// CHECK: encoding: [0x48,0x83,0xf8,0x0c]
|
|
cmp rax, 12
|
|
|
|
// CHECK: encoding: [0x48,0x89,0x44,0x24,0xf0]
|
|
mov QWORD PTR [RSP - 16], RAX
|
|
|
|
// CHECK: encoding: [0x66,0x83,0xc0,0xf4]
|
|
add ax, -12
|
|
// CHECK: encoding: [0x83,0xc0,0xf4]
|
|
add eax, -12
|
|
// CHECK: encoding: [0x48,0x83,0xc0,0xf4]
|
|
add rax, -12
|
|
|
|
|