| 1 |
# RUN: llvm-mc -triple x86_64 -show-encoding %s | FileCheck %s |
| 2 |
# RUN: not llvm-mc -triple i386 -show-encoding %s 2>&1 | FileCheck %s --check-prefix=ERROR |
| 3 |
|
| 4 |
# ERROR-COUNT-16: error: |
| 5 |
# ERROR-NOT: error: |
| 6 |
# CHECK: {evex} mulb %bl |
| 7 |
# CHECK: encoding: [0x62,0xf4,0x7c,0x08,0xf6,0xe3] |
| 8 |
{evex} mulb %bl |
| 9 |
# CHECK: {nf} mulb %bl |
| 10 |
# CHECK: encoding: [0x62,0xf4,0x7c,0x0c,0xf6,0xe3] |
| 11 |
{nf} mulb %bl |
| 12 |
# CHECK: {evex} mulw %dx |
| 13 |
# CHECK: encoding: [0x62,0xf4,0x7d,0x08,0xf7,0xe2] |
| 14 |
{evex} mulw %dx |
| 15 |
# CHECK: {nf} mulw %dx |
| 16 |
# CHECK: encoding: [0x62,0xf4,0x7d,0x0c,0xf7,0xe2] |
| 17 |
{nf} mulw %dx |
| 18 |
# CHECK: {evex} mull %ecx |
| 19 |
# CHECK: encoding: [0x62,0xf4,0x7c,0x08,0xf7,0xe1] |
| 20 |
{evex} mull %ecx |
| 21 |
# CHECK: {nf} mull %ecx |
| 22 |
# CHECK: encoding: [0x62,0xf4,0x7c,0x0c,0xf7,0xe1] |
| 23 |
{nf} mull %ecx |
| 24 |
# CHECK: {evex} mulq %r9 |
| 25 |
# CHECK: encoding: [0x62,0xd4,0xfc,0x08,0xf7,0xe1] |
| 26 |
{evex} mulq %r9 |
| 27 |
# CHECK: {nf} mulq %r9 |
| 28 |
# CHECK: encoding: [0x62,0xd4,0xfc,0x0c,0xf7,0xe1] |
| 29 |
{nf} mulq %r9 |
| 30 |
# CHECK: {evex} mulb 291(%r8,%rax,4) |
| 31 |
# CHECK: encoding: [0x62,0xd4,0x7c,0x08,0xf6,0xa4,0x80,0x23,0x01,0x00,0x00] |
| 32 |
{evex} mulb 291(%r8,%rax,4) |
| 33 |
# CHECK: {nf} mulb 291(%r8,%rax,4) |
| 34 |
# CHECK: encoding: [0x62,0xd4,0x7c,0x0c,0xf6,0xa4,0x80,0x23,0x01,0x00,0x00] |
| 35 |
{nf} mulb 291(%r8,%rax,4) |
| 36 |
# CHECK: {evex} mulw 291(%r8,%rax,4) |
| 37 |
# CHECK: encoding: [0x62,0xd4,0x7d,0x08,0xf7,0xa4,0x80,0x23,0x01,0x00,0x00] |
| 38 |
{evex} mulw 291(%r8,%rax,4) |
| 39 |
# CHECK: {nf} mulw 291(%r8,%rax,4) |
| 40 |
# CHECK: encoding: [0x62,0xd4,0x7d,0x0c,0xf7,0xa4,0x80,0x23,0x01,0x00,0x00] |
| 41 |
{nf} mulw 291(%r8,%rax,4) |
| 42 |
# CHECK: {evex} mull 291(%r8,%rax,4) |
| 43 |
# CHECK: encoding: [0x62,0xd4,0x7c,0x08,0xf7,0xa4,0x80,0x23,0x01,0x00,0x00] |
| 44 |
{evex} mull 291(%r8,%rax,4) |
| 45 |
# CHECK: {nf} mull 291(%r8,%rax,4) |
| 46 |
# CHECK: encoding: [0x62,0xd4,0x7c,0x0c,0xf7,0xa4,0x80,0x23,0x01,0x00,0x00] |
| 47 |
{nf} mull 291(%r8,%rax,4) |
| 48 |
# CHECK: {evex} mulq 291(%r8,%rax,4) |
| 49 |
# CHECK: encoding: [0x62,0xd4,0xfc,0x08,0xf7,0xa4,0x80,0x23,0x01,0x00,0x00] |
| 50 |
{evex} mulq 291(%r8,%rax,4) |
| 51 |
# CHECK: {nf} mulq 291(%r8,%rax,4) |
| 52 |
# CHECK: encoding: [0x62,0xd4,0xfc,0x0c,0xf7,0xa4,0x80,0x23,0x01,0x00,0x00] |
| 53 |
{nf} mulq 291(%r8,%rax,4) |