1// REQUIRES: asserts 2// RUN: llvm-mc -triple x86_64-unknown-unknown -debug-only=asm-matcher %s 2>&1 | FileCheck %s 3 4// CHECK: AsmMatcher: found 4 encodings with mnemonic 'pshufb' 5// CHECK: Trying to match opcode MMX_PSHUFBrr 6// CHECK: Matching formal operand class MCK_VR64 against actual operand at index 1 (Memory: ModeSize=64,BaseReg=rip,Scale=1,Disp=CPI1_0): Opcode result: multiple operand mismatches, ignoring this opcode 7// CHECK: Trying to match opcode PSHUFBrr 8// CHECK: Matching formal operand class MCK_FR16 against actual operand at index 1 (Memory: ModeSize=64,BaseReg=rip,Scale=1,Disp=CPI1_0): Opcode result: multiple operand mismatches, ignoring this opcode 9// CHECK: Trying to match opcode PSHUFBrm 10// CHECK: Matching formal operand class MCK_Mem128 against actual operand at index 1 (Memory: ModeSize=64,BaseReg=rip,Scale=1,Disp=CPI1_0): match success using generic matcher 11// CHECK: Matching formal operand class MCK_FR16 against actual operand at index 2 (Reg:xmm1): match success using generic matcher 12// CHECK: Matching formal operand class InvalidMatchClass against actual operand at index 3: actual operand index out of range 13// CHECK: Opcode result: complete match, selecting this opcode 14// CHECK: AsmMatcher: found 2 encodings with mnemonic 'sha1rnds4' 15// CHECK: Trying to match opcode SHA1RNDS4rri 16// CHECK: Matching formal operand class MCK_ImmUnsignedi8 against actual operand at index 1 (Imm:1): match success using generic matcher 17// CHECK: Matching formal operand class MCK_FR16 against actual operand at index 2 (Reg:xmm1): match success using generic matcher 18// CHECK: Matching formal operand class MCK_FR16 against actual operand at index 3 (Reg:xmm2): match success using generic matcher 19// CHECK: Matching formal operand class InvalidMatchClass against actual operand at index 4: actual operand index out of range 20// CHECK: Opcode result: complete match, selecting this opcode 21// CHECK: AsmMatcher: found 4 encodings with mnemonic 'pinsrw' 22// CHECK: Trying to match opcode MMX_PINSRWrr 23// CHECK: Matching formal operand class MCK_ImmUnsignedi8 against actual operand at index 1 (Imm:3): match success using generic matcher 24// CHECK: Matching formal operand class MCK_GR32orGR64 against actual operand at index 2 (Reg:ecx): match success using generic matcher 25// CHECK: Matching formal operand class MCK_VR64 against actual operand at index 3 (Reg:xmm5): Opcode result: multiple operand mismatches, ignoring this opcode 26// CHECK: Trying to match opcode PINSRWrr 27// CHECK: Matching formal operand class MCK_ImmUnsignedi8 against actual operand at index 1 (Imm:3): match success using generic matcher 28// CHECK: Matching formal operand class MCK_GR32orGR64 against actual operand at index 2 (Reg:ecx): match success using generic matcher 29// CHECK: Matching formal operand class MCK_FR16 against actual operand at index 3 (Reg:xmm5): match success using generic matcher 30// CHECK: Matching formal operand class InvalidMatchClass against actual operand at index 4: actual operand index out of range 31// CHECK: Opcode result: complete match, selecting this opcode 32// CHECK: AsmMatcher: found 4 encodings with mnemonic 'crc32l' 33// CHECK: Trying to match opcode CRC32r32r32 34// CHECK: Matching formal operand class MCK_GR32 against actual operand at index 1 (Memory: ModeSize=64,BaseReg=rbx,IndexReg=rcx,Scale=8,Disp=2125315823,SegReg=gs): Opcode result: multiple operand mismatches, ignoring this opcode 35// CHECK: Trying to match opcode CRC32r32m32 36// CHECK: Matching formal operand class MCK_Mem32 against actual operand at index 1 (Memory: ModeSize=64,BaseReg=rbx,IndexReg=rcx,Scale=8,Disp=2125315823,SegReg=gs): match success using generic matcher 37// CHECK: Matching formal operand class MCK_GR32 against actual operand at index 2 (Reg:ecx): match success using generic matcher 38// CHECK: Matching formal operand class InvalidMatchClass against actual operand at index 3: actual operand index out of range 39// CHECK: Opcode result: complete match, selecting this opcode 40// CHECK: AsmMatcher: found 2 encodings with mnemonic 'maskmovdqu' 41// CHECK: Trying to match opcode MASKMOVDQU64 42// CHECK: Matching formal operand class MCK_FR16 against actual operand at index 1 (Reg:xmm0): match success using generic matcher 43// CHECK: Matching formal operand class MCK_FR16 against actual operand at index 2 (Reg:xmm1): match success using generic matcher 44// CHECK: Matching formal operand class InvalidMatchClass against actual operand at index 3: actual operand index out of range 45// CHECK: Opcode result: complete match, selecting this opcode 46// CHECK: AsmMatcher: found 2 encodings with mnemonic 'vmaskmovdqu' 47// CHECK: Trying to match opcode VMASKMOVDQU64 48// CHECK: Matching formal operand class MCK_FR16 against actual operand at index 1 (Reg:xmm0): match success using generic matcher 49// CHECK: Matching formal operand class MCK_FR16 against actual operand at index 2 (Reg:xmm1): match success using generic matcher 50// CHECK: Matching formal operand class InvalidMatchClass against actual operand at index 3: actual operand index out of range 51// CHECK: Opcode result: complete match, selecting this opcode 52// CHECK: AsmMatcher: found 4 encodings with mnemonic 'punpcklbw' 53// CHECK: Trying to match opcode MMX_PUNPCKLBWrr 54// CHECK: Matching formal operand class MCK_VR64 against actual operand at index 1 (Reg:mm0): match success using generic matcher 55// CHECK: Matching formal operand class MCK_VR64 against actual operand at index 2 (Memory: ModeSize=64,Size=32,BaseReg=rsp,Scale=1): Opcode result: multiple operand mismatches, ignoring this opcode 56// CHECK: Trying to match opcode MMX_PUNPCKLBWrm 57// CHECK: Matching formal operand class MCK_VR64 against actual operand at index 1 (Reg:mm0): match success using generic matcher 58// CHECK: Matching formal operand class MCK_Mem32 against actual operand at index 2 (Memory: ModeSize=64,Size=32,BaseReg=rsp,Scale=1): match success using generic matcher 59// CHECK: Matching formal operand class InvalidMatchClass against actual operand at index 3: actual operand index out of range 60// CHECK: Opcode result: complete match, selecting this opcode 61 62pshufb CPI1_0(%rip), %xmm1 63sha1rnds4 $1, %xmm1, %xmm2 64pinsrw $3, %ecx, %xmm5 65crc32l %gs:0x7eadbeef(%rbx,%rcx,8),%ecx 66maskmovdqu %xmm0, %xmm1 67vmaskmovdqu %xmm0, %xmm1 68 69.intel_syntax 70punpcklbw mm0, dword ptr [rsp] 71