[llvm] r253777 - [X86][AVX512] Added AVX512 VMOVLHPS/VMOVHLPS shuffle decode comments.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Sat Nov 21 05:04:42 PST 2015
Author: rksimon
Date: Sat Nov 21 07:04:42 2015
New Revision: 253777
URL: http://llvm.org/viewvc/llvm-project?rev=253777&view=rev
Log:
[X86][AVX512] Added AVX512 VMOVLHPS/VMOVHLPS shuffle decode comments.
Modified:
llvm/trunk/lib/Target/X86/InstPrinter/X86InstComments.cpp
llvm/trunk/test/CodeGen/X86/vector-shuffle-128-v2.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=253777&r1=253776&r2=253777&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/InstPrinter/X86InstComments.cpp (original)
+++ llvm/trunk/lib/Target/X86/InstPrinter/X86InstComments.cpp Sat Nov 21 07:04:42 2015
@@ -292,6 +292,7 @@ bool llvm::EmitAnyX86InstComments(const
case X86::MOVLHPSrr:
case X86::VMOVLHPSrr:
+ case X86::VMOVLHPSZrr:
Src2Name = getRegName(MI->getOperand(2).getReg());
Src1Name = getRegName(MI->getOperand(1).getReg());
DestName = getRegName(MI->getOperand(0).getReg());
@@ -300,6 +301,7 @@ bool llvm::EmitAnyX86InstComments(const
case X86::MOVHLPSrr:
case X86::VMOVHLPSrr:
+ case X86::VMOVHLPSZrr:
Src2Name = getRegName(MI->getOperand(2).getReg());
Src1Name = getRegName(MI->getOperand(1).getReg());
DestName = getRegName(MI->getOperand(0).getReg());
@@ -657,6 +659,7 @@ bool llvm::EmitAnyX86InstComments(const
DecodeScalarMoveMask(MVT::v2f64, nullptr == Src2Name, ShuffleMask);
DestName = getRegName(MI->getOperand(0).getReg());
break;
+
case X86::MOVSSrr:
case X86::VMOVSSrr:
Src2Name = getRegName(MI->getOperand(2).getReg());
Modified: llvm/trunk/test/CodeGen/X86/vector-shuffle-128-v2.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/vector-shuffle-128-v2.ll?rev=253777&r1=253776&r2=253777&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/vector-shuffle-128-v2.ll (original)
+++ llvm/trunk/test/CodeGen/X86/vector-shuffle-128-v2.ll Sat Nov 21 07:04:42 2015
@@ -156,20 +156,10 @@ define <2 x double> @shuffle_v2f64_11(<2
; SSE-NEXT: movhlps {{.*#+}} xmm0 = xmm0[1,1]
; SSE-NEXT: retq
;
-; AVX1-LABEL: shuffle_v2f64_11:
-; AVX1: # BB#0:
-; AVX1-NEXT: vmovhlps {{.*#+}} xmm0 = xmm0[1,1]
-; AVX1-NEXT: retq
-;
-; AVX2-LABEL: shuffle_v2f64_11:
-; AVX2: # BB#0:
-; AVX2-NEXT: vmovhlps {{.*#+}} xmm0 = xmm0[1,1]
-; AVX2-NEXT: retq
-;
-; AVX512VL-LABEL: shuffle_v2f64_11:
-; AVX512VL: # BB#0:
-; AVX512VL-NEXT: vmovhlps %xmm0, %xmm0, %xmm0
-; AVX512VL-NEXT: retq
+; AVX-LABEL: shuffle_v2f64_11:
+; AVX: # BB#0:
+; AVX-NEXT: vmovhlps {{.*#+}} xmm0 = xmm0[1,1]
+; AVX-NEXT: retq
%shuffle = shufflevector <2 x double> %a, <2 x double> %b, <2 x i32> <i32 1, i32 1>
ret <2 x double> %shuffle
}
@@ -224,20 +214,10 @@ define <2 x double> @shuffle_v2f64_33(<2
; SSE-NEXT: movaps %xmm1, %xmm0
; SSE-NEXT: retq
;
-; AVX1-LABEL: shuffle_v2f64_33:
-; AVX1: # BB#0:
-; AVX1-NEXT: vmovhlps {{.*#+}} xmm0 = xmm1[1,1]
-; AVX1-NEXT: retq
-;
-; AVX2-LABEL: shuffle_v2f64_33:
-; AVX2: # BB#0:
-; AVX2-NEXT: vmovhlps {{.*#+}} xmm0 = xmm1[1,1]
-; AVX2-NEXT: retq
-;
-; AVX512VL-LABEL: shuffle_v2f64_33:
-; AVX512VL: # BB#0:
-; AVX512VL-NEXT: vmovhlps %xmm1, %xmm1, %xmm0
-; AVX512VL-NEXT: retq
+; AVX-LABEL: shuffle_v2f64_33:
+; AVX: # BB#0:
+; AVX-NEXT: vmovhlps {{.*#+}} xmm0 = xmm1[1,1]
+; AVX-NEXT: retq
%shuffle = shufflevector <2 x double> %a, <2 x double> %b, <2 x i32> <i32 3, i32 3>
ret <2 x double> %shuffle
}
More information about the llvm-commits
mailing list