mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-30 02:32:08 +00:00
e350690e3b
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104552 91177308-0d34-0410-b5e6-96231b3b80d8
106 lines
2.8 KiB
ArmAsm
106 lines
2.8 KiB
ArmAsm
// RUN: llvm-mc -triple x86_64-unknown-unknown --show-encoding %s | FileCheck %s
|
|
|
|
// CHECK: crc32b %bl, %eax
|
|
// CHECK: encoding: [0xf2,0x0f,0x38,0xf0,0xc3]
|
|
crc32b %bl, %eax
|
|
|
|
// CHECK: crc32b 4(%rbx), %eax
|
|
// CHECK: encoding: [0xf2,0x0f,0x38,0xf0,0x43,0x04]
|
|
crc32b 4(%rbx), %eax
|
|
|
|
// CHECK: crc32w %bx, %eax
|
|
// CHECK: encoding: [0x66,0xf2,0x0f,0x38,0xf1,0xc3]
|
|
crc32w %bx, %eax
|
|
|
|
// CHECK: crc32w 4(%rbx), %eax
|
|
// CHECK: encoding: [0x66,0xf2,0x0f,0x38,0xf1,0x43,0x04]
|
|
crc32w 4(%rbx), %eax
|
|
|
|
// CHECK: crc32l %ebx, %eax
|
|
// CHECK: encoding: [0xf2,0x0f,0x38,0xf1,0xc3]
|
|
crc32l %ebx, %eax
|
|
|
|
// CHECK: crc32l 4(%rbx), %eax
|
|
// CHECK: encoding: [0xf2,0x0f,0x38,0xf1,0x43,0x04]
|
|
crc32l 4(%rbx), %eax
|
|
|
|
// CHECK: crc32l 3735928559(%rbx,%rcx,8), %ecx
|
|
// CHECK: encoding: [0xf2,0x0f,0x38,0xf1,0x8c,0xcb,0xef,0xbe,0xad,0xde]
|
|
crc32l 0xdeadbeef(%rbx,%rcx,8),%ecx
|
|
|
|
// CHECK: crc32l 69, %ecx
|
|
// CHECK: encoding: [0xf2,0x0f,0x38,0xf1,0x0c,0x25,0x45,0x00,0x00,0x00]
|
|
crc32l 0x45,%ecx
|
|
|
|
// CHECK: crc32l 32493, %ecx
|
|
// CHECK: encoding: [0xf2,0x0f,0x38,0xf1,0x0c,0x25,0xed,0x7e,0x00,0x00]
|
|
crc32l 0x7eed,%ecx
|
|
|
|
// CHECK: crc32l 3133065982, %ecx
|
|
// CHECK: encoding: [0xf2,0x0f,0x38,0xf1,0x0c,0x25,0xfe,0xca,0xbe,0xba]
|
|
crc32l 0xbabecafe,%ecx
|
|
|
|
// CHECK: crc32l %ecx, %ecx
|
|
// CHECK: encoding: [0xf2,0x0f,0x38,0xf1,0xc9]
|
|
crc32l %ecx,%ecx
|
|
|
|
// CHECK: crc32b %r11b, %eax
|
|
// CHECK: encoding: [0xf2,0x41,0x0f,0x38,0xf0,0xc3]
|
|
crc32b %r11b, %eax
|
|
|
|
// CHECK: crc32b 4(%rbx), %eax
|
|
// CHECK: encoding: [0xf2,0x0f,0x38,0xf0,0x43,0x04]
|
|
crc32b 4(%rbx), %eax
|
|
|
|
// CHECK: crc32b %dil, %rax
|
|
// CHECK: encoding: [0xf2,0x48,0x0f,0x38,0xf0,0xc7]
|
|
crc32b %dil,%rax
|
|
|
|
// CHECK: crc32b %r11b, %rax
|
|
// CHECK: encoding: [0xf2,0x49,0x0f,0x38,0xf0,0xc3]
|
|
crc32b %r11b,%rax
|
|
|
|
// CHECK: crc32b 4(%rbx), %rax
|
|
// CHECK: encoding: [0xf2,0x48,0x0f,0x38,0xf0,0x43,0x04]
|
|
crc32b 4(%rbx), %rax
|
|
|
|
// CHECK: crc32q %rbx, %rax
|
|
// CHECK: encoding: [0xf2,0x48,0x0f,0x38,0xf1,0xc3]
|
|
crc32q %rbx, %rax
|
|
|
|
// CHECK: crc32q 4(%rbx), %rax
|
|
// CHECK: encoding: [0xf2,0x48,0x0f,0x38,0xf1,0x43,0x04]
|
|
crc32q 4(%rbx), %rax
|
|
|
|
// CHECK: movd %r8, %mm1
|
|
// CHECK: encoding: [0x49,0x0f,0x6e,0xc8]
|
|
movd %r8, %mm1
|
|
|
|
// CHECK: movd %r8d, %mm1
|
|
// CHECK: encoding: [0x41,0x0f,0x6e,0xc8]
|
|
movd %r8d, %mm1
|
|
|
|
// CHECK: movd %rdx, %mm1
|
|
// CHECK: encoding: [0x48,0x0f,0x6e,0xca]
|
|
movd %rdx, %mm1
|
|
|
|
// CHECK: movd %edx, %mm1
|
|
// CHECK: encoding: [0x0f,0x6e,0xca]
|
|
movd %edx, %mm1
|
|
|
|
// CHECK: movd %mm1, %r8
|
|
// CHECK: encoding: [0x49,0x0f,0x7e,0xc8]
|
|
movd %mm1, %r8
|
|
|
|
// CHECK: movd %mm1, %r8d
|
|
// CHECK: encoding: [0x41,0x0f,0x7e,0xc8]
|
|
movd %mm1, %r8d
|
|
|
|
// CHECK: movd %mm1, %rdx
|
|
// CHECK: encoding: [0x48,0x0f,0x7e,0xca]
|
|
movd %mm1, %rdx
|
|
|
|
// CHECK: movd %mm1, %edx
|
|
// CHECK: encoding: [0x0f,0x7e,0xca]
|
|
movd %mm1, %edx
|