2012-04-16 11:32:10 +00:00
|
|
|
# RUN: llvm-mc --disassemble %s -triple=x86_64-apple-darwin9 --output-asm-variant=1 | FileCheck %s
|
2011-09-09 06:35:44 +00:00
|
|
|
|
|
|
|
# CHECK: movsb
|
|
|
|
0xa4
|
|
|
|
|
|
|
|
# CHECK: movsw
|
|
|
|
0x66 0xa5
|
|
|
|
|
|
|
|
# CHECK: movsd
|
|
|
|
0xa5
|
|
|
|
|
|
|
|
# CHECK: movsq
|
|
|
|
0x48 0xa5
|
2011-09-22 07:01:50 +00:00
|
|
|
|
2013-07-31 02:47:52 +00:00
|
|
|
# CHECK: pop fs
|
2011-09-23 06:57:25 +00:00
|
|
|
0x0f 0xa1
|
2011-09-22 07:01:50 +00:00
|
|
|
|
2013-07-31 02:47:52 +00:00
|
|
|
# CHECK: pop gs
|
2011-09-23 06:57:25 +00:00
|
|
|
0x0f 0xa9
|
2011-09-22 07:01:50 +00:00
|
|
|
|
2013-07-31 02:47:52 +00:00
|
|
|
# CHECK: in al, dx
|
2011-09-22 07:01:50 +00:00
|
|
|
0xec
|
2011-10-02 21:08:12 +00:00
|
|
|
|
|
|
|
# CHECK: nop
|
|
|
|
0x90
|
|
|
|
|
2013-07-31 02:47:52 +00:00
|
|
|
# CHECK: xchg eax, r8d
|
2011-10-02 21:08:12 +00:00
|
|
|
0x41 0x90
|
|
|
|
|
2013-07-31 02:47:52 +00:00
|
|
|
# CHECK: xchg rax, r8
|
2011-10-02 21:08:12 +00:00
|
|
|
0x49 0x90
|
|
|
|
|
2013-07-31 02:47:52 +00:00
|
|
|
# CHECK: add al, 0
|
2011-10-02 21:08:12 +00:00
|
|
|
0x04 0x00
|
|
|
|
|
2013-07-31 02:47:52 +00:00
|
|
|
# CHECK: add ax, 0
|
2011-10-02 21:08:12 +00:00
|
|
|
0x66 0x05 0x00 0x00
|
|
|
|
|
2013-07-31 02:47:52 +00:00
|
|
|
# CHECK: add eax, 0
|
2011-10-02 21:08:12 +00:00
|
|
|
0x05 0x00 0x00 0x00 0x00
|
|
|
|
|
2013-07-31 02:47:52 +00:00
|
|
|
# CHECK: add rax, 0
|
2011-10-02 21:08:12 +00:00
|
|
|
0x48 0x05 0x00 0x00 0x00 0x00
|
|
|
|
|
2013-07-31 02:47:52 +00:00
|
|
|
# CHECK: adc al, 0
|
2011-10-02 21:08:12 +00:00
|
|
|
0x14 0x00
|
|
|
|
|
2013-07-31 02:47:52 +00:00
|
|
|
# CHECK: adc ax, 0
|
2011-10-02 21:08:12 +00:00
|
|
|
0x66 0x15 0x00 0x00
|
|
|
|
|
2013-07-31 02:47:52 +00:00
|
|
|
# CHECK: adc eax, 0
|
2011-10-02 21:08:12 +00:00
|
|
|
0x15 0x00 0x00 0x00 0x00
|
|
|
|
|
2013-07-31 02:47:52 +00:00
|
|
|
# CHECK: adc rax, 0
|
2011-10-02 21:08:12 +00:00
|
|
|
0x48 0x15 0x00 0x00 0x00 0x00
|
|
|
|
|
2013-07-31 02:47:52 +00:00
|
|
|
# CHECK: cmp al, 0
|
2011-10-02 21:08:12 +00:00
|
|
|
0x3c 0x00
|
|
|
|
|
2013-07-31 02:47:52 +00:00
|
|
|
# CHECK: cmp ax, 0
|
2011-10-02 21:08:12 +00:00
|
|
|
0x66 0x3d 0x00 0x00
|
|
|
|
|
2013-07-31 02:47:52 +00:00
|
|
|
# CHECK: cmp eax, 0
|
2011-10-02 21:08:12 +00:00
|
|
|
0x3d 0x00 0x00 0x00 0x00
|
|
|
|
|
2013-07-31 02:47:52 +00:00
|
|
|
# CHECK: cmp rax, 0
|
2011-10-02 21:08:12 +00:00
|
|
|
0x48 0x3d 0x00 0x00 0x00 0x00
|
|
|
|
|
2013-07-31 02:47:52 +00:00
|
|
|
# CHECK: test al, 0
|
2011-10-02 21:08:12 +00:00
|
|
|
0xa8 0x00
|
|
|
|
|
2013-07-31 02:47:52 +00:00
|
|
|
# CHECK: test ax, 0
|
2011-10-02 21:08:12 +00:00
|
|
|
0x66 0xa9 0x00 0x00
|
|
|
|
|
2013-07-31 02:47:52 +00:00
|
|
|
# CHECK: test eax, 0
|
2011-10-02 21:08:12 +00:00
|
|
|
0xa9 0x00 0x00 0x00 0x00
|
|
|
|
|
2013-07-31 02:47:52 +00:00
|
|
|
# CHECK: test rax, 0
|
2011-10-02 21:08:12 +00:00
|
|
|
0x48 0xa9 0x00 0x00 0x00 0x00
|
2012-03-10 07:37:27 +00:00
|
|
|
|
|
|
|
# CHECK: sysret
|
|
|
|
0x48 0x0f 0x07
|
|
|
|
|
|
|
|
# CHECK: sysret
|
|
|
|
0x0f 0x07
|
|
|
|
|
|
|
|
# CHECK: sysexit
|
|
|
|
0x48 0x0f 0x35
|
|
|
|
|
|
|
|
# CHECK: sysexit
|
|
|
|
0x0f 0x35
|
|
|
|
|
|
|
|
# CHECK: iret
|
|
|
|
0x66 0xcf
|
|
|
|
|
|
|
|
# CHECK: iretd
|
|
|
|
0xcf
|
|
|
|
|
|
|
|
# CHECK: iretq
|
|
|
|
0x48 0xcf
|
|
|
|
|
2012-04-11 01:10:53 +00:00
|
|
|
# CHECK: ret
|
|
|
|
0x66 0xc3
|
|
|
|
|
|
|
|
# CHECK: retf
|
|
|
|
0x66 0xcb
|
|
|
|
|
2013-07-31 02:47:52 +00:00
|
|
|
# CHECK: vpgatherqq ymm2, qword ptr [rdi + 2*ymm1], ymm0
|
2012-07-18 04:11:12 +00:00
|
|
|
0xc4 0xe2 0xfd 0x91 0x14 0x4f
|
|
|
|
|
2013-07-31 02:47:52 +00:00
|
|
|
# CHECK: vpgatherdd xmm10, dword ptr [r15 + 2*xmm9], xmm8
|
2012-07-18 04:11:12 +00:00
|
|
|
0xc4 0x02 0x39 0x90 0x14 0x4f
|
2013-04-10 21:52:25 +00:00
|
|
|
|
2013-07-31 02:47:52 +00:00
|
|
|
# CHECK: xsave64 opaque ptr [rax]
|
2013-04-10 21:52:25 +00:00
|
|
|
0x48 0x0f 0xae 0x20
|
|
|
|
|
2013-07-31 02:47:52 +00:00
|
|
|
# CHECK: xrstor64 opaque ptr [rax]
|
2013-04-10 21:52:25 +00:00
|
|
|
0x48 0x0f 0xae 0x28
|
|
|
|
|
2013-07-31 02:47:52 +00:00
|
|
|
# CHECK: xsaveopt64 opaque ptr [rax]
|
2013-04-10 21:52:25 +00:00
|
|
|
0x48 0x0f 0xae 0x30
|
2013-08-25 22:23:38 +00:00
|
|
|
|
|
|
|
# CHECK: movabs al, byte ptr [-6066930261531658096]
|
|
|
|
0xa0 0x90 0x78 0x56 0x34 0x12 0xef 0xcd 0xab
|
|
|
|
|
|
|
|
# CHECK: movabs al, byte ptr [-6066930261531658096]
|
|
|
|
0x48 0xa0 0x90 0x78 0x56 0x34 0x12 0xef 0xcd 0xab
|
|
|
|
|
|
|
|
# CHECK: movabs ax, word ptr [-6066930261531658096]
|
|
|
|
0x66 0xa1 0x90 0x78 0x56 0x34 0x12 0xef 0xcd 0xab
|
|
|
|
|
|
|
|
# CHECK: movabs eax, dword ptr [-6066930261531658096]
|
|
|
|
0xa1 0x90 0x78 0x56 0x34 0x12 0xef 0xcd 0xab
|
|
|
|
|
|
|
|
# CHECK: movabs rax, qword ptr [-6066930261531658096]
|
|
|
|
0x48 0xa1 0x90 0x78 0x56 0x34 0x12 0xef 0xcd 0xab
|
|
|
|
|
|
|
|
# CHECK: movabs byte ptr [-6066930261531658096], al
|
|
|
|
0xa2 0x90 0x78 0x56 0x34 0x12 0xef 0xcd 0xab
|
|
|
|
|
|
|
|
# CHECK: movabs byte ptr [-6066930261531658096], al
|
|
|
|
0x48 0xa2 0x90 0x78 0x56 0x34 0x12 0xef 0xcd 0xab
|
|
|
|
|
|
|
|
# CHECK: movabs word ptr [-6066930261531658096], ax
|
|
|
|
0x66 0xa3 0x90 0x78 0x56 0x34 0x12 0xef 0xcd 0xab
|
|
|
|
|
|
|
|
# CHECK: movabs dword ptr [-6066930261531658096], eax
|
|
|
|
0xa3 0x90 0x78 0x56 0x34 0x12 0xef 0xcd 0xab
|
|
|
|
|
|
|
|
# CHECK: movabs qword ptr [-6066930261531658096], rax
|
|
|
|
0x48 0xa3 0x90 0x78 0x56 0x34 0x12 0xef 0xcd 0xab
|