93 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-22: error:5# ERROR-NOT: error:6# CHECK: {evex} crc32b %al, %ebx7# CHECK: encoding: [0x62,0xf4,0x7c,0x08,0xf0,0xd8]8 {evex} crc32b %al, %ebx9 10# CHECK: {evex} crc32b %al, %rbx11# CHECK: encoding: [0x62,0xf4,0xfc,0x08,0xf0,0xd8]12 {evex} crc32b %al, %rbx13 14# CHECK: {evex} crc32w %ax, %ebx15# CHECK: encoding: [0x62,0xf4,0x7d,0x08,0xf1,0xd8]16 {evex} crc32w %ax, %ebx17 18# CHECK: {evex} crc32l %eax, %ebx19# CHECK: encoding: [0x62,0xf4,0x7c,0x08,0xf1,0xd8]20 {evex} crc32l %eax, %ebx21 22# CHECK: {evex} crc32q %rax, %rbx23# CHECK: encoding: [0x62,0xf4,0xfc,0x08,0xf1,0xd8]24 {evex} crc32q %rax, %rbx25 26# CHECK: {evex} crc32w 291(%rax,%rbx,4), %ecx27# CHECK: encoding: [0x62,0xf4,0x7d,0x08,0xf1,0x8c,0x98,0x23,0x01,0x00,0x00]28 {evex} crc32w 291(%rax,%rbx,4), %ecx29 30# CHECK: {evex} crc32l 291(%rax,%rbx,4), %ecx31# CHECK: encoding: [0x62,0xf4,0x7c,0x08,0xf1,0x8c,0x98,0x23,0x01,0x00,0x00]32 {evex} crc32l 291(%rax,%rbx,4), %ecx33 34# CHECK: {evex} crc32b 291(%rax,%rbx,4), %rcx35# CHECK: encoding: [0x62,0xf4,0xfc,0x08,0xf0,0x8c,0x98,0x23,0x01,0x00,0x00]36 {evex} crc32b 291(%rax,%rbx,4), %rcx37 38# CHECK: {evex} crc32q 291(%rax,%rbx,4), %rcx39# CHECK: encoding: [0x62,0xf4,0xfc,0x08,0xf1,0x8c,0x98,0x23,0x01,0x00,0x00]40 {evex} crc32q 291(%rax,%rbx,4), %rcx41 42# CHECK: crc32b %r16b, %r22d43# CHECK: encoding: [0x62,0xec,0x7c,0x08,0xf0,0xf0]44 crc32b %r16b, %r22d45 46# CHECK: crc32b %r16b, %r2347# CHECK: encoding: [0x62,0xec,0xfc,0x08,0xf0,0xf8]48 crc32b %r16b, %r2349 50# CHECK: crc32w %r17w, %r22d51# CHECK: encoding: [0x62,0xec,0x7d,0x08,0xf1,0xf1]52 crc32w %r17w, %r22d53 54# CHECK: crc32l %r18d, %r22d55# CHECK: encoding: [0x62,0xec,0x7c,0x08,0xf1,0xf2]56 crc32l %r18d, %r22d57 58# CHECK: crc32q %r19, %r2359# CHECK: encoding: [0x62,0xec,0xfc,0x08,0xf1,0xfb]60 crc32q %r19, %r2361 62# CHECK: crc32w 291(%r28,%r29,4), %r18d63# CHECK: encoding: [0x62,0x8c,0x79,0x08,0xf1,0x94,0xac,0x23,0x01,0x00,0x00]64 crc32w 291(%r28,%r29,4), %r18d65 66# CHECK: crc32l 291(%r28,%r29,4), %r18d67# CHECK: encoding: [0x62,0x8c,0x78,0x08,0xf1,0x94,0xac,0x23,0x01,0x00,0x00]68 crc32l 291(%r28,%r29,4), %r18d69 70# CHECK: crc32b 291(%r28,%r29,4), %r1971# CHECK: encoding: [0x62,0x8c,0xf8,0x08,0xf0,0x9c,0xac,0x23,0x01,0x00,0x00]72 crc32b 291(%r28,%r29,4), %r1973 74# CHECK: crc32q 291(%r28,%r29,4), %r1975# CHECK: encoding: [0x62,0x8c,0xf8,0x08,0xf1,0x9c,0xac,0x23,0x01,0x00,0x00]76 crc32q 291(%r28,%r29,4), %r1977 78# CHECK: crc32w 123(%r28,%r29,4), %r18d79# CHECK: encoding: [0x62,0x8c,0x79,0x08,0xf1,0x54,0xac,0x7b]80 crc32w 123(%r28,%r29,4), %r18d81 82# CHECK: crc32l 123(%r28,%r29,4), %r18d83# CHECK: encoding: [0x62,0x8c,0x78,0x08,0xf1,0x54,0xac,0x7b]84 crc32l 123(%r28,%r29,4), %r18d85 86# CHECK: crc32b 123(%r28,%r29,4), %r1987# CHECK: encoding: [0x62,0x8c,0xf8,0x08,0xf0,0x5c,0xac,0x7b]88 crc32b 123(%r28,%r29,4), %r1989 90# CHECK: crc32q 123(%r28,%r29,4), %r1991# CHECK: encoding: [0x62,0x8c,0xf8,0x08,0xf1,0x5c,0xac,0x7b]92 crc32q 123(%r28,%r29,4), %r1993