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