llvm.org GIT mirror llvm / e041e26
[AVX512] Add shuffle comment printing for masked VPERMPD/VPERMQ. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@272371 91177308-0d34-0410-b5e6-96231b3b80d8 Craig Topper 4 years ago
2 changed file(s) with 13 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
637637
638638 case X86::VPERMQYri:
639639 case X86::VPERMQZ256ri:
640 case X86::VPERMQZ256rik:
641 case X86::VPERMQZ256rikz:
640642 case X86::VPERMPDYri:
641643 case X86::VPERMPDZ256ri:
642 Src1Name = getRegName(MI->getOperand(1).getReg());
644 case X86::VPERMPDZ256rik:
645 case X86::VPERMPDZ256rikz:
646 Src1Name = getRegName(MI->getOperand(NumOperands - 2).getReg());
643647 // FALL THROUGH.
644648 case X86::VPERMQYmi:
645649 case X86::VPERMQZ256mi:
650 case X86::VPERMQZ256mik:
651 case X86::VPERMQZ256mikz:
646652 case X86::VPERMPDYmi:
647653 case X86::VPERMPDZ256mi:
654 case X86::VPERMPDZ256mik:
655 case X86::VPERMPDZ256mikz:
648656 if (MI->getOperand(NumOperands - 1).isImm())
649657 DecodeVPERMMask(MI->getOperand(NumOperands - 1).getImm(),
650658 ShuffleMask);
87868786 ; CHECK: ## BB#0:
87878787 ; CHECK-NEXT: kmovw %esi, %k1 ## encoding: [0xc5,0xf8,0x92,0xce]
87888788 ; CHECK-NEXT: vpermpd $3, %ymm0, %ymm1 {%k1} ## encoding: [0x62,0xf3,0xfd,0x29,0x01,0xc8,0x03]
8789 ; CHECK-NEXT: ## ymm1 = ymm0[3,0,0,0]
87898790 ; CHECK-NEXT: vpermpd $3, %ymm0, %ymm2 {%k1} {z} ## encoding: [0x62,0xf3,0xfd,0xa9,0x01,0xd0,0x03]
8791 ; CHECK-NEXT: ## ymm2 = ymm0[3,0,0,0]
87908792 ; CHECK-NEXT: vpermpd $3, %ymm0, %ymm0 ## encoding: [0x62,0xf3,0xfd,0x28,0x01,0xc0,0x03]
87918793 ; CHECK-NEXT: ## ymm0 = ymm0[3,0,0,0]
87928794 ; CHECK-NEXT: vaddpd %ymm2, %ymm1, %ymm1 ## encoding: [0x62,0xf1,0xf5,0x28,0x58,0xca]
88078809 ; CHECK: ## BB#0:
88088810 ; CHECK-NEXT: kmovw %esi, %k1 ## encoding: [0xc5,0xf8,0x92,0xce]
88098811 ; CHECK-NEXT: vpermq $3, %ymm0, %ymm1 {%k1} ## encoding: [0x62,0xf3,0xfd,0x29,0x00,0xc8,0x03]
8812 ; CHECK-NEXT: ## ymm1 = ymm0[3,0,0,0]
88108813 ; CHECK-NEXT: vpermq $3, %ymm0, %ymm2 {%k1} {z} ## encoding: [0x62,0xf3,0xfd,0xa9,0x00,0xd0,0x03]
8814 ; CHECK-NEXT: ## ymm2 = ymm0[3,0,0,0]
88118815 ; CHECK-NEXT: vpermq $3, %ymm0, %ymm0 ## encoding: [0x62,0xf3,0xfd,0x28,0x00,0xc0,0x03]
88128816 ; CHECK-NEXT: ## ymm0 = ymm0[3,0,0,0]
88138817 ; CHECK-NEXT: vpaddq %ymm2, %ymm1, %ymm1 ## encoding: [0x62,0xf1,0xf5,0x28,0xd4,0xca]