| 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-32: error: |
| 5 |
# ERROR-NOT: error: |
| 6 |
# CHECK: {evex} incb %bl |
| 7 |
# CHECK: encoding: [0x62,0xf4,0x7c,0x08,0xfe,0xc3] |
| 8 |
{evex} incb %bl |
| 9 |
# CHECK: {nf} incb %bl |
| 10 |
# CHECK: encoding: [0x62,0xf4,0x7c,0x0c,0xfe,0xc3] |
| 11 |
{nf} incb %bl |
| 12 |
# CHECK: incb %bl, %bl |
| 13 |
# CHECK: encoding: [0x62,0xf4,0x64,0x18,0xfe,0xc3] |
| 14 |
incb %bl, %bl |
| 15 |
# CHECK: {nf} incb %bl, %bl |
| 16 |
# CHECK: encoding: [0x62,0xf4,0x64,0x1c,0xfe,0xc3] |
| 17 |
{nf} incb %bl, %bl |
| 18 |
# CHECK: {evex} incw %dx |
| 19 |
# CHECK: encoding: [0x62,0xf4,0x7d,0x08,0xff,0xc2] |
| 20 |
{evex} incw %dx |
| 21 |
# CHECK: {nf} incw %dx |
| 22 |
# CHECK: encoding: [0x62,0xf4,0x7d,0x0c,0xff,0xc2] |
| 23 |
{nf} incw %dx |
| 24 |
# CHECK: incw %dx, %dx |
| 25 |
# CHECK: encoding: [0x62,0xf4,0x6d,0x18,0xff,0xc2] |
| 26 |
incw %dx, %dx |
| 27 |
# CHECK: {nf} incw %dx, %dx |
| 28 |
# CHECK: encoding: [0x62,0xf4,0x6d,0x1c,0xff,0xc2] |
| 29 |
{nf} incw %dx, %dx |
| 30 |
# CHECK: {evex} incl %ecx |
| 31 |
# CHECK: encoding: [0x62,0xf4,0x7c,0x08,0xff,0xc1] |
| 32 |
{evex} incl %ecx |
| 33 |
# CHECK: {nf} incl %ecx |
| 34 |
# CHECK: encoding: [0x62,0xf4,0x7c,0x0c,0xff,0xc1] |
| 35 |
{nf} incl %ecx |
| 36 |
# CHECK: incl %ecx, %ecx |
| 37 |
# CHECK: encoding: [0x62,0xf4,0x74,0x18,0xff,0xc1] |
| 38 |
incl %ecx, %ecx |
| 39 |
# CHECK: {nf} incl %ecx, %ecx |
| 40 |
# CHECK: encoding: [0x62,0xf4,0x74,0x1c,0xff,0xc1] |
| 41 |
{nf} incl %ecx, %ecx |
| 42 |
# CHECK: {evex} incq %r9 |
| 43 |
# CHECK: encoding: [0x62,0xd4,0xfc,0x08,0xff,0xc1] |
| 44 |
{evex} incq %r9 |
| 45 |
# CHECK: {nf} incq %r9 |
| 46 |
# CHECK: encoding: [0x62,0xd4,0xfc,0x0c,0xff,0xc1] |
| 47 |
{nf} incq %r9 |
| 48 |
# CHECK: incq %r9, %r9 |
| 49 |
# CHECK: encoding: [0x62,0xd4,0xb4,0x18,0xff,0xc1] |
| 50 |
incq %r9, %r9 |
| 51 |
# CHECK: {nf} incq %r9, %r9 |
| 52 |
# CHECK: encoding: [0x62,0xd4,0xb4,0x1c,0xff,0xc1] |
| 53 |
{nf} incq %r9, %r9 |
| 54 |
# CHECK: {evex} incb 291(%r8,%rax,4) |
| 55 |
# CHECK: encoding: [0x62,0xd4,0x7c,0x08,0xfe,0x84,0x80,0x23,0x01,0x00,0x00] |
| 56 |
{evex} incb 291(%r8,%rax,4) |
| 57 |
# CHECK: {nf} incb 291(%r8,%rax,4) |
| 58 |
# CHECK: encoding: [0x62,0xd4,0x7c,0x0c,0xfe,0x84,0x80,0x23,0x01,0x00,0x00] |
| 59 |
{nf} incb 291(%r8,%rax,4) |
| 60 |
# CHECK: incb 291(%r8,%rax,4), %bl |
| 61 |
# CHECK: encoding: [0x62,0xd4,0x64,0x18,0xfe,0x84,0x80,0x23,0x01,0x00,0x00] |
| 62 |
incb 291(%r8,%rax,4), %bl |
| 63 |
# CHECK: {nf} incb 291(%r8,%rax,4), %bl |
| 64 |
# CHECK: encoding: [0x62,0xd4,0x64,0x1c,0xfe,0x84,0x80,0x23,0x01,0x00,0x00] |
| 65 |
{nf} incb 291(%r8,%rax,4), %bl |
| 66 |
# CHECK: {evex} incw 291(%r8,%rax,4) |
| 67 |
# CHECK: encoding: [0x62,0xd4,0x7d,0x08,0xff,0x84,0x80,0x23,0x01,0x00,0x00] |
| 68 |
{evex} incw 291(%r8,%rax,4) |
| 69 |
# CHECK: {nf} incw 291(%r8,%rax,4) |
| 70 |
# CHECK: encoding: [0x62,0xd4,0x7d,0x0c,0xff,0x84,0x80,0x23,0x01,0x00,0x00] |
| 71 |
{nf} incw 291(%r8,%rax,4) |
| 72 |
# CHECK: incw 291(%r8,%rax,4), %dx |
| 73 |
# CHECK: encoding: [0x62,0xd4,0x6d,0x18,0xff,0x84,0x80,0x23,0x01,0x00,0x00] |
| 74 |
incw 291(%r8,%rax,4), %dx |
| 75 |
# CHECK: {nf} incw 291(%r8,%rax,4), %dx |
| 76 |
# CHECK: encoding: [0x62,0xd4,0x6d,0x1c,0xff,0x84,0x80,0x23,0x01,0x00,0x00] |
| 77 |
{nf} incw 291(%r8,%rax,4), %dx |
| 78 |
# CHECK: {evex} incl 291(%r8,%rax,4) |
| 79 |
# CHECK: encoding: [0x62,0xd4,0x7c,0x08,0xff,0x84,0x80,0x23,0x01,0x00,0x00] |
| 80 |
{evex} incl 291(%r8,%rax,4) |
| 81 |
# CHECK: {nf} incl 291(%r8,%rax,4) |
| 82 |
# CHECK: encoding: [0x62,0xd4,0x7c,0x0c,0xff,0x84,0x80,0x23,0x01,0x00,0x00] |
| 83 |
{nf} incl 291(%r8,%rax,4) |
| 84 |
# CHECK: incl 291(%r8,%rax,4), %ecx |
| 85 |
# CHECK: encoding: [0x62,0xd4,0x74,0x18,0xff,0x84,0x80,0x23,0x01,0x00,0x00] |
| 86 |
incl 291(%r8,%rax,4), %ecx |
| 87 |
# CHECK: {nf} incl 291(%r8,%rax,4), %ecx |
| 88 |
# CHECK: encoding: [0x62,0xd4,0x74,0x1c,0xff,0x84,0x80,0x23,0x01,0x00,0x00] |
| 89 |
{nf} incl 291(%r8,%rax,4), %ecx |
| 90 |
# CHECK: {evex} incq 291(%r8,%rax,4) |
| 91 |
# CHECK: encoding: [0x62,0xd4,0xfc,0x08,0xff,0x84,0x80,0x23,0x01,0x00,0x00] |
| 92 |
{evex} incq 291(%r8,%rax,4) |
| 93 |
# CHECK: {nf} incq 291(%r8,%rax,4) |
| 94 |
# CHECK: encoding: [0x62,0xd4,0xfc,0x0c,0xff,0x84,0x80,0x23,0x01,0x00,0x00] |
| 95 |
{nf} incq 291(%r8,%rax,4) |
| 96 |
# CHECK: incq 291(%r8,%rax,4), %r9 |
| 97 |
# CHECK: encoding: [0x62,0xd4,0xb4,0x18,0xff,0x84,0x80,0x23,0x01,0x00,0x00] |
| 98 |
incq 291(%r8,%rax,4), %r9 |
| 99 |
# CHECK: {nf} incq 291(%r8,%rax,4), %r9 |
| 100 |
# CHECK: encoding: [0x62,0xd4,0xb4,0x1c,0xff,0x84,0x80,0x23,0x01,0x00,0x00] |
| 101 |
{nf} incq 291(%r8,%rax,4), %r9 |