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-12: error: 5# ERROR-NOT: error: 6# CHECK: {nf} bzhil %ecx, %edx, %r10d 7# CHECK: encoding: [0x62,0x72,0x74,0x0c,0xf5,0xd2] 8 {nf} bzhil %ecx, %edx, %r10d 9 10# CHECK: {evex} bzhil %ecx, %edx, %r10d 11# CHECK: encoding: [0x62,0x72,0x74,0x08,0xf5,0xd2] 12 {evex} bzhil %ecx, %edx, %r10d 13 14# CHECK: {nf} bzhil %ecx, 123(%rax,%rbx,4), %edx 15# CHECK: encoding: [0x62,0xf2,0x74,0x0c,0xf5,0x54,0x98,0x7b] 16 {nf} bzhil %ecx, 123(%rax,%rbx,4), %edx 17 18# CHECK: {evex} bzhil %ecx, 123(%rax,%rbx,4), %edx 19# CHECK: encoding: [0x62,0xf2,0x74,0x08,0xf5,0x54,0x98,0x7b] 20 {evex} bzhil %ecx, 123(%rax,%rbx,4), %edx 21 22# CHECK: {nf} bzhiq %r9, %r15, %r11 23# CHECK: encoding: [0x62,0x52,0xb4,0x0c,0xf5,0xdf] 24 {nf} bzhiq %r9, %r15, %r11 25 26# CHECK: {evex} bzhiq %r9, %r15, %r11 27# CHECK: encoding: [0x62,0x52,0xb4,0x08,0xf5,0xdf] 28 {evex} bzhiq %r9, %r15, %r11 29 30# CHECK: {nf} bzhiq %r9, 123(%rax,%rbx,4), %r15 31# CHECK: encoding: [0x62,0x72,0xb4,0x0c,0xf5,0x7c,0x98,0x7b] 32 {nf} bzhiq %r9, 123(%rax,%rbx,4), %r15 33 34# CHECK: {evex} bzhiq %r9, 123(%rax,%rbx,4), %r15 35# CHECK: encoding: [0x62,0x72,0xb4,0x08,0xf5,0x7c,0x98,0x7b] 36 {evex} bzhiq %r9, 123(%rax,%rbx,4), %r15 37 38# CHECK: bzhil %r18d, %r22d, %r26d 39# CHECK: encoding: [0x62,0x6a,0x6c,0x00,0xf5,0xd6] 40 bzhil %r18d, %r22d, %r26d 41 42# CHECK: bzhil %r18d, 291(%r28,%r29,4), %r22d 43# CHECK: encoding: [0x62,0x8a,0x68,0x00,0xf5,0xb4,0xac,0x23,0x01,0x00,0x00] 44 bzhil %r18d, 291(%r28,%r29,4), %r22d 45 46# CHECK: bzhiq %r19, %r23, %r27 47# CHECK: encoding: [0x62,0x6a,0xe4,0x00,0xf5,0xdf] 48 bzhiq %r19, %r23, %r27 49 50# CHECK: bzhiq %r19, 291(%r28,%r29,4), %r23 51# CHECK: encoding: [0x62,0x8a,0xe0,0x00,0xf5,0xbc,0xac,0x23,0x01,0x00,0x00] 52 bzhiq %r19, 291(%r28,%r29,4), %r23 53