1 # RUN: llvm-mc --disassemble %s -triple=x86_64-apple-darwin9 --output-asm-variant=1 | FileCheck %s 2 3 # CHECK: movsb 4 0xa4 5 6 # CHECK: movsw 7 0x66 0xa5 8 9 # CHECK: movsd 10 0xa5 11 12 # CHECK: movsq 13 0x48 0xa5 14 15 # CHECK: pop fs 16 0x0f 0xa1 17 18 # CHECK: pop gs 19 0x0f 0xa9 20 21 # CHECK: in al, dx 22 0xec 23 24 # CHECK: nop 25 0x90 26 27 # CHECK: xchg eax, r8d 28 0x41 0x90 29 30 # CHECK: xchg rax, r8 31 0x49 0x90 32 33 # CHECK: add al, 0 34 0x04 0x00 35 36 # CHECK: add ax, 0 37 0x66 0x05 0x00 0x00 38 39 # CHECK: add eax, 0 40 0x05 0x00 0x00 0x00 0x00 41 42 # CHECK: add rax, 0 43 0x48 0x05 0x00 0x00 0x00 0x00 44 45 # CHECK: adc al, 0 46 0x14 0x00 47 48 # CHECK: adc ax, 0 49 0x66 0x15 0x00 0x00 50 51 # CHECK: adc eax, 0 52 0x15 0x00 0x00 0x00 0x00 53 54 # CHECK: adc rax, 0 55 0x48 0x15 0x00 0x00 0x00 0x00 56 57 # CHECK: cmp al, 0 58 0x3c 0x00 59 60 # CHECK: cmp ax, 0 61 0x66 0x3d 0x00 0x00 62 63 # CHECK: cmp eax, 0 64 0x3d 0x00 0x00 0x00 0x00 65 66 # CHECK: cmp rax, 0 67 0x48 0x3d 0x00 0x00 0x00 0x00 68 69 # CHECK: test al, 0 70 0xa8 0x00 71 72 # CHECK: test ax, 0 73 0x66 0xa9 0x00 0x00 74 75 # CHECK: test eax, 0 76 0xa9 0x00 0x00 0x00 0x00 77 78 # CHECK: test rax, 0 79 0x48 0xa9 0x00 0x00 0x00 0x00 80 81 # CHECK: sysret 82 0x48 0x0f 0x07 83 84 # CHECK: sysret 85 0x0f 0x07 86 87 # CHECK: sysexit 88 0x48 0x0f 0x35 89 90 # CHECK: sysexit 91 0x0f 0x35 92 93 # CHECK: iret 94 0x66 0xcf 95 96 # CHECK: iretd 97 0xcf 98 99 # CHECK: iretq 100 0x48 0xcf 101 102 # CHECK: ret 103 0x66 0xc3 104 105 # CHECK: retf 106 0x66 0xcb 107 108 # CHECK: vshufpd xmm0, xmm1, xmm2, 1 109 0xc5 0xf1 0xc6 0xc2 0x01 110 111 # CHECK: vpgatherqq ymm2, qword ptr [rdi + 2*ymm1], ymm0 112 0xc4 0xe2 0xfd 0x91 0x14 0x4f 113 114 # CHECK: vpgatherdd xmm10, dword ptr [r15 + 2*xmm9], xmm8 115 0xc4 0x02 0x39 0x90 0x14 0x4f 116 117 # CHECK: xsave64 opaque ptr [rax] 118 0x48 0x0f 0xae 0x20 119 120 # CHECK: xrstor64 opaque ptr [rax] 121 0x48 0x0f 0xae 0x28 122 123 # CHECK: xsaveopt64 opaque ptr [rax] 124 0x48 0x0f 0xae 0x30 125 126 # CHECK: movabs al, byte ptr [-6066930261531658096] 127 0xa0 0x90 0x78 0x56 0x34 0x12 0xef 0xcd 0xab 128 129 # CHECK: movabs al, byte ptr [-6066930261531658096] 130 0x48 0xa0 0x90 0x78 0x56 0x34 0x12 0xef 0xcd 0xab 131 132 # CHECK: movabs ax, word ptr [-6066930261531658096] 133 0x66 0xa1 0x90 0x78 0x56 0x34 0x12 0xef 0xcd 0xab 134 135 # CHECK: movabs eax, dword ptr [-6066930261531658096] 136 0xa1 0x90 0x78 0x56 0x34 0x12 0xef 0xcd 0xab 137 138 # CHECK: movabs rax, qword ptr [-6066930261531658096] 139 0x48 0xa1 0x90 0x78 0x56 0x34 0x12 0xef 0xcd 0xab 140 141 # CHECK: movabs byte ptr [-6066930261531658096], al 142 0xa2 0x90 0x78 0x56 0x34 0x12 0xef 0xcd 0xab 143 144 # CHECK: movabs byte ptr [-6066930261531658096], al 145 0x48 0xa2 0x90 0x78 0x56 0x34 0x12 0xef 0xcd 0xab 146 147 # CHECK: movabs word ptr [-6066930261531658096], ax 148 0x66 0xa3 0x90 0x78 0x56 0x34 0x12 0xef 0xcd 0xab 149 150 # CHECK: movabs dword ptr [-6066930261531658096], eax 151 0xa3 0x90 0x78 0x56 0x34 0x12 0xef 0xcd 0xab 152 153 # CHECK: movabs qword ptr [-6066930261531658096], rax 154 0x48 0xa3 0x90 0x78 0x56 0x34 0x12 0xef 0xcd 0xab 155