[llvm] r272371 - [AVX512] Add shuffle comment printing for masked VPERMPD/VPERMQ.
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 9 22:12:41 PDT 2016
Author: ctopper
Date: Fri Jun 10 00:12:40 2016
New Revision: 272371
URL: http://llvm.org/viewvc/llvm-project?rev=272371&view=rev
Log:
[AVX512] Add shuffle comment printing for masked VPERMPD/VPERMQ.
Modified:
llvm/trunk/lib/Target/X86/InstPrinter/X86InstComments.cpp
llvm/trunk/test/CodeGen/X86/avx512vl-intrinsics.ll
Modified: llvm/trunk/lib/Target/X86/InstPrinter/X86InstComments.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/InstPrinter/X86InstComments.cpp?rev=272371&r1=272370&r2=272371&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/InstPrinter/X86InstComments.cpp (original)
+++ llvm/trunk/lib/Target/X86/InstPrinter/X86InstComments.cpp Fri Jun 10 00:12:40 2016
@@ -638,14 +638,22 @@ bool llvm::EmitAnyX86InstComments(const
case X86::VPERMQYri:
case X86::VPERMQZ256ri:
+ case X86::VPERMQZ256rik:
+ case X86::VPERMQZ256rikz:
case X86::VPERMPDYri:
case X86::VPERMPDZ256ri:
- Src1Name = getRegName(MI->getOperand(1).getReg());
+ case X86::VPERMPDZ256rik:
+ case X86::VPERMPDZ256rikz:
+ Src1Name = getRegName(MI->getOperand(NumOperands - 2).getReg());
// FALL THROUGH.
case X86::VPERMQYmi:
case X86::VPERMQZ256mi:
+ case X86::VPERMQZ256mik:
+ case X86::VPERMQZ256mikz:
case X86::VPERMPDYmi:
case X86::VPERMPDZ256mi:
+ case X86::VPERMPDZ256mik:
+ case X86::VPERMPDZ256mikz:
if (MI->getOperand(NumOperands - 1).isImm())
DecodeVPERMMask(MI->getOperand(NumOperands - 1).getImm(),
ShuffleMask);
Modified: llvm/trunk/test/CodeGen/X86/avx512vl-intrinsics.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/avx512vl-intrinsics.ll?rev=272371&r1=272370&r2=272371&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/avx512vl-intrinsics.ll (original)
+++ llvm/trunk/test/CodeGen/X86/avx512vl-intrinsics.ll Fri Jun 10 00:12:40 2016
@@ -8787,7 +8787,9 @@ define <4 x double>@test_int_x86_avx512_
; CHECK: ## BB#0:
; CHECK-NEXT: kmovw %esi, %k1 ## encoding: [0xc5,0xf8,0x92,0xce]
; CHECK-NEXT: vpermpd $3, %ymm0, %ymm1 {%k1} ## encoding: [0x62,0xf3,0xfd,0x29,0x01,0xc8,0x03]
+; CHECK-NEXT: ## ymm1 = ymm0[3,0,0,0]
; CHECK-NEXT: vpermpd $3, %ymm0, %ymm2 {%k1} {z} ## encoding: [0x62,0xf3,0xfd,0xa9,0x01,0xd0,0x03]
+; CHECK-NEXT: ## ymm2 = ymm0[3,0,0,0]
; CHECK-NEXT: vpermpd $3, %ymm0, %ymm0 ## encoding: [0x62,0xf3,0xfd,0x28,0x01,0xc0,0x03]
; CHECK-NEXT: ## ymm0 = ymm0[3,0,0,0]
; CHECK-NEXT: vaddpd %ymm2, %ymm1, %ymm1 ## encoding: [0x62,0xf1,0xf5,0x28,0x58,0xca]
@@ -8808,7 +8810,9 @@ define <4 x i64>@test_int_x86_avx512_mas
; CHECK: ## BB#0:
; CHECK-NEXT: kmovw %esi, %k1 ## encoding: [0xc5,0xf8,0x92,0xce]
; CHECK-NEXT: vpermq $3, %ymm0, %ymm1 {%k1} ## encoding: [0x62,0xf3,0xfd,0x29,0x00,0xc8,0x03]
+; CHECK-NEXT: ## ymm1 = ymm0[3,0,0,0]
; CHECK-NEXT: vpermq $3, %ymm0, %ymm2 {%k1} {z} ## encoding: [0x62,0xf3,0xfd,0xa9,0x00,0xd0,0x03]
+; CHECK-NEXT: ## ymm2 = ymm0[3,0,0,0]
; CHECK-NEXT: vpermq $3, %ymm0, %ymm0 ## encoding: [0x62,0xf3,0xfd,0x28,0x00,0xc0,0x03]
; CHECK-NEXT: ## ymm0 = ymm0[3,0,0,0]
; CHECK-NEXT: vpaddq %ymm2, %ymm1, %ymm1 ## encoding: [0x62,0xf1,0xf5,0x28,0xd4,0xca]
More information about the llvm-commits
mailing list