102 lines · plain
1# RUN: llvm-mc -triple x86_64 -show-encoding %s | FileCheck %s2# RUN: not llvm-mc -triple i386 -show-encoding %s 2>&1 | FileCheck %s --check-prefix=ERROR3 4# ERROR-COUNT-32: error:5# ERROR-NOT: error:6# CHECK: {evex} incb %bl7# CHECK: encoding: [0x62,0xf4,0x7c,0x08,0xfe,0xc3]8 {evex} incb %bl9# CHECK: {nf} incb %bl10# CHECK: encoding: [0x62,0xf4,0x7c,0x0c,0xfe,0xc3]11 {nf} incb %bl12# CHECK: incb %bl, %bl13# CHECK: encoding: [0x62,0xf4,0x64,0x18,0xfe,0xc3]14 incb %bl, %bl15# CHECK: {nf} incb %bl, %bl16# CHECK: encoding: [0x62,0xf4,0x64,0x1c,0xfe,0xc3]17 {nf} incb %bl, %bl18# CHECK: {evex} incw %dx19# CHECK: encoding: [0x62,0xf4,0x7d,0x08,0xff,0xc2]20 {evex} incw %dx21# CHECK: {nf} incw %dx22# CHECK: encoding: [0x62,0xf4,0x7d,0x0c,0xff,0xc2]23 {nf} incw %dx24# CHECK: incw %dx, %dx25# CHECK: encoding: [0x62,0xf4,0x6d,0x18,0xff,0xc2]26 incw %dx, %dx27# CHECK: {nf} incw %dx, %dx28# CHECK: encoding: [0x62,0xf4,0x6d,0x1c,0xff,0xc2]29 {nf} incw %dx, %dx30# CHECK: {evex} incl %ecx31# CHECK: encoding: [0x62,0xf4,0x7c,0x08,0xff,0xc1]32 {evex} incl %ecx33# CHECK: {nf} incl %ecx34# CHECK: encoding: [0x62,0xf4,0x7c,0x0c,0xff,0xc1]35 {nf} incl %ecx36# CHECK: incl %ecx, %ecx37# CHECK: encoding: [0x62,0xf4,0x74,0x18,0xff,0xc1]38 incl %ecx, %ecx39# CHECK: {nf} incl %ecx, %ecx40# CHECK: encoding: [0x62,0xf4,0x74,0x1c,0xff,0xc1]41 {nf} incl %ecx, %ecx42# CHECK: {evex} incq %r943# CHECK: encoding: [0x62,0xd4,0xfc,0x08,0xff,0xc1]44 {evex} incq %r945# CHECK: {nf} incq %r946# CHECK: encoding: [0x62,0xd4,0xfc,0x0c,0xff,0xc1]47 {nf} incq %r948# CHECK: incq %r9, %r949# CHECK: encoding: [0x62,0xd4,0xb4,0x18,0xff,0xc1]50 incq %r9, %r951# CHECK: {nf} incq %r9, %r952# CHECK: encoding: [0x62,0xd4,0xb4,0x1c,0xff,0xc1]53 {nf} incq %r9, %r954# 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), %bl61# CHECK: encoding: [0x62,0xd4,0x64,0x18,0xfe,0x84,0x80,0x23,0x01,0x00,0x00]62 incb 291(%r8,%rax,4), %bl63# CHECK: {nf} incb 291(%r8,%rax,4), %bl64# CHECK: encoding: [0x62,0xd4,0x64,0x1c,0xfe,0x84,0x80,0x23,0x01,0x00,0x00]65 {nf} incb 291(%r8,%rax,4), %bl66# 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), %dx73# CHECK: encoding: [0x62,0xd4,0x6d,0x18,0xff,0x84,0x80,0x23,0x01,0x00,0x00]74 incw 291(%r8,%rax,4), %dx75# CHECK: {nf} incw 291(%r8,%rax,4), %dx76# CHECK: encoding: [0x62,0xd4,0x6d,0x1c,0xff,0x84,0x80,0x23,0x01,0x00,0x00]77 {nf} incw 291(%r8,%rax,4), %dx78# 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), %ecx85# CHECK: encoding: [0x62,0xd4,0x74,0x18,0xff,0x84,0x80,0x23,0x01,0x00,0x00]86 incl 291(%r8,%rax,4), %ecx87# CHECK: {nf} incl 291(%r8,%rax,4), %ecx88# CHECK: encoding: [0x62,0xd4,0x74,0x1c,0xff,0x84,0x80,0x23,0x01,0x00,0x00]89 {nf} incl 291(%r8,%rax,4), %ecx90# 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), %r997# CHECK: encoding: [0x62,0xd4,0xb4,0x18,0xff,0x84,0x80,0x23,0x01,0x00,0x00]98 incq 291(%r8,%rax,4), %r999# CHECK: {nf} incq 291(%r8,%rax,4), %r9100# CHECK: encoding: [0x62,0xd4,0xb4,0x1c,0xff,0x84,0x80,0x23,0x01,0x00,0x00]101 {nf} incq 291(%r8,%rax,4), %r9102