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