1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194
|
# RUN: llvm-mc -triple x86_64 -disassemble %s | FileCheck %s --check-prefix=ATT
# RUN: llvm-mc -triple x86_64 -disassemble -output-asm-variant=1 %s | FileCheck %s --check-prefix=INTEL
# ATT: {evex} rclb $123, %bl
# INTEL: {evex} rcl bl, 123
0x62,0xf4,0x7c,0x08,0xc0,0xd3,0x7b
# ATT: rclb $123, %bl, %bl
# INTEL: rcl bl, bl, 123
0x62,0xf4,0x64,0x18,0xc0,0xd3,0x7b
# ATT: {evex} rclw $123, %dx
# INTEL: {evex} rcl dx, 123
0x62,0xf4,0x7d,0x08,0xc1,0xd2,0x7b
# ATT: rclw $123, %dx, %dx
# INTEL: rcl dx, dx, 123
0x62,0xf4,0x6d,0x18,0xc1,0xd2,0x7b
# ATT: {evex} rcll $123, %ecx
# INTEL: {evex} rcl ecx, 123
0x62,0xf4,0x7c,0x08,0xc1,0xd1,0x7b
# ATT: rcll $123, %ecx, %ecx
# INTEL: rcl ecx, ecx, 123
0x62,0xf4,0x74,0x18,0xc1,0xd1,0x7b
# ATT: {evex} rclq $123, %r9
# INTEL: {evex} rcl r9, 123
0x62,0xd4,0xfc,0x08,0xc1,0xd1,0x7b
# ATT: rclq $123, %r9, %r9
# INTEL: rcl r9, r9, 123
0x62,0xd4,0xb4,0x18,0xc1,0xd1,0x7b
# ATT: {evex} rclb $123, 291(%r8,%rax,4)
# INTEL: {evex} rcl byte ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0x7c,0x08,0xc0,0x94,0x80,0x23,0x01,0x00,0x00,0x7b
# ATT: rclb $123, 291(%r8,%rax,4), %bl
# INTEL: rcl bl, byte ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0x64,0x18,0xc0,0x94,0x80,0x23,0x01,0x00,0x00,0x7b
# ATT: {evex} rclw $123, 291(%r8,%rax,4)
# INTEL: {evex} rcl word ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0x7d,0x08,0xc1,0x94,0x80,0x23,0x01,0x00,0x00,0x7b
# ATT: rclw $123, 291(%r8,%rax,4), %dx
# INTEL: rcl dx, word ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0x6d,0x18,0xc1,0x94,0x80,0x23,0x01,0x00,0x00,0x7b
# ATT: {evex} rcll $123, 291(%r8,%rax,4)
# INTEL: {evex} rcl dword ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0x7c,0x08,0xc1,0x94,0x80,0x23,0x01,0x00,0x00,0x7b
# ATT: rcll $123, 291(%r8,%rax,4), %ecx
# INTEL: rcl ecx, dword ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0x74,0x18,0xc1,0x94,0x80,0x23,0x01,0x00,0x00,0x7b
# ATT: {evex} rclq $123, 291(%r8,%rax,4)
# INTEL: {evex} rcl qword ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0xfc,0x08,0xc1,0x94,0x80,0x23,0x01,0x00,0x00,0x7b
# ATT: rclq $123, 291(%r8,%rax,4), %r9
# INTEL: rcl r9, qword ptr [r8 + 4*rax + 291], 123
0x62,0xd4,0xb4,0x18,0xc1,0x94,0x80,0x23,0x01,0x00,0x00,0x7b
# ATT: {evex} rclb %bl
# INTEL: {evex} rcl bl
0x62,0xf4,0x7c,0x08,0xd0,0xd3
# ATT: rclb %bl, %bl
# INTEL: rcl bl, bl
0x62,0xf4,0x64,0x18,0xd0,0xd3
# ATT: {evex} rclb %cl, %bl
# INTEL: {evex} rcl bl, cl
0x62,0xf4,0x7c,0x08,0xd2,0xd3
# ATT: rclb %cl, %bl, %bl
# INTEL: rcl bl, bl, cl
0x62,0xf4,0x64,0x18,0xd2,0xd3
# ATT: {evex} rclw %cl, %dx
# INTEL: {evex} rcl dx, cl
0x62,0xf4,0x7d,0x08,0xd3,0xd2
# ATT: rclw %cl, %dx, %dx
# INTEL: rcl dx, dx, cl
0x62,0xf4,0x6d,0x18,0xd3,0xd2
# ATT: {evex} rcll %cl, %ecx
# INTEL: {evex} rcl ecx, cl
0x62,0xf4,0x7c,0x08,0xd3,0xd1
# ATT: rcll %cl, %ecx, %ecx
# INTEL: rcl ecx, ecx, cl
0x62,0xf4,0x74,0x18,0xd3,0xd1
# ATT: {evex} rclq %cl, %r9
# INTEL: {evex} rcl r9, cl
0x62,0xd4,0xfc,0x08,0xd3,0xd1
# ATT: rclq %cl, %r9, %r9
# INTEL: rcl r9, r9, cl
0x62,0xd4,0xb4,0x18,0xd3,0xd1
# ATT: {evex} rclb %cl, 291(%r8,%rax,4)
# INTEL: {evex} rcl byte ptr [r8 + 4*rax + 291], cl
0x62,0xd4,0x7c,0x08,0xd2,0x94,0x80,0x23,0x01,0x00,0x00
# ATT: rclb %cl, 291(%r8,%rax,4), %bl
# INTEL: rcl bl, byte ptr [r8 + 4*rax + 291], cl
0x62,0xd4,0x64,0x18,0xd2,0x94,0x80,0x23,0x01,0x00,0x00
# ATT: {evex} rclw %cl, 291(%r8,%rax,4)
# INTEL: {evex} rcl word ptr [r8 + 4*rax + 291], cl
0x62,0xd4,0x7d,0x08,0xd3,0x94,0x80,0x23,0x01,0x00,0x00
# ATT: rclw %cl, 291(%r8,%rax,4), %dx
# INTEL: rcl dx, word ptr [r8 + 4*rax + 291], cl
0x62,0xd4,0x6d,0x18,0xd3,0x94,0x80,0x23,0x01,0x00,0x00
# ATT: {evex} rcll %cl, 291(%r8,%rax,4)
# INTEL: {evex} rcl dword ptr [r8 + 4*rax + 291], cl
0x62,0xd4,0x7c,0x08,0xd3,0x94,0x80,0x23,0x01,0x00,0x00
# ATT: rcll %cl, 291(%r8,%rax,4), %ecx
# INTEL: rcl ecx, dword ptr [r8 + 4*rax + 291], cl
0x62,0xd4,0x74,0x18,0xd3,0x94,0x80,0x23,0x01,0x00,0x00
# ATT: {evex} rclq %cl, 291(%r8,%rax,4)
# INTEL: {evex} rcl qword ptr [r8 + 4*rax + 291], cl
0x62,0xd4,0xfc,0x08,0xd3,0x94,0x80,0x23,0x01,0x00,0x00
# ATT: rclq %cl, 291(%r8,%rax,4), %r9
# INTEL: rcl r9, qword ptr [r8 + 4*rax + 291], cl
0x62,0xd4,0xb4,0x18,0xd3,0x94,0x80,0x23,0x01,0x00,0x00
# ATT: {evex} rclw %dx
# INTEL: {evex} rcl dx
0x62,0xf4,0x7d,0x08,0xd1,0xd2
# ATT: rclw %dx, %dx
# INTEL: rcl dx, dx
0x62,0xf4,0x6d,0x18,0xd1,0xd2
# ATT: {evex} rcll %ecx
# INTEL: {evex} rcl ecx
0x62,0xf4,0x7c,0x08,0xd1,0xd1
# ATT: rcll %ecx, %ecx
# INTEL: rcl ecx, ecx
0x62,0xf4,0x74,0x18,0xd1,0xd1
# ATT: {evex} rclq %r9
# INTEL: {evex} rcl r9
0x62,0xd4,0xfc,0x08,0xd1,0xd1
# ATT: rclq %r9, %r9
# INTEL: rcl r9, r9
0x62,0xd4,0xb4,0x18,0xd1,0xd1
# ATT: {evex} rclb 291(%r8,%rax,4)
# INTEL: {evex} rcl byte ptr [r8 + 4*rax + 291]
0x62,0xd4,0x7c,0x08,0xd0,0x94,0x80,0x23,0x01,0x00,0x00
# ATT: rclb 291(%r8,%rax,4), %bl
# INTEL: rcl bl, byte ptr [r8 + 4*rax + 291]
0x62,0xd4,0x64,0x18,0xd0,0x94,0x80,0x23,0x01,0x00,0x00
# ATT: {evex} rclw 291(%r8,%rax,4)
# INTEL: {evex} rcl word ptr [r8 + 4*rax + 291]
0x62,0xd4,0x7d,0x08,0xd1,0x94,0x80,0x23,0x01,0x00,0x00
# ATT: rclw 291(%r8,%rax,4), %dx
# INTEL: rcl dx, word ptr [r8 + 4*rax + 291]
0x62,0xd4,0x6d,0x18,0xd1,0x94,0x80,0x23,0x01,0x00,0x00
# ATT: {evex} rcll 291(%r8,%rax,4)
# INTEL: {evex} rcl dword ptr [r8 + 4*rax + 291]
0x62,0xd4,0x7c,0x08,0xd1,0x94,0x80,0x23,0x01,0x00,0x00
# ATT: rcll 291(%r8,%rax,4), %ecx
# INTEL: rcl ecx, dword ptr [r8 + 4*rax + 291]
0x62,0xd4,0x74,0x18,0xd1,0x94,0x80,0x23,0x01,0x00,0x00
# ATT: {evex} rclq 291(%r8,%rax,4)
# INTEL: {evex} rcl qword ptr [r8 + 4*rax + 291]
0x62,0xd4,0xfc,0x08,0xd1,0x94,0x80,0x23,0x01,0x00,0x00
# ATT: rclq 291(%r8,%rax,4), %r9
# INTEL: rcl r9, qword ptr [r8 + 4*rax + 291]
0x62,0xd4,0xb4,0x18,0xd1,0x94,0x80,0x23,0x01,0x00,0x00
|