[llvm] r277301 - [AVX512] Add X86::VR512RegClassID to X86RegisterInfo::getLargestLegalSuperClass.
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Sun Jul 31 13:19:50 PDT 2016
Author: ctopper
Date: Sun Jul 31 15:19:50 2016
New Revision: 277301
URL: http://llvm.org/viewvc/llvm-project?rev=277301&view=rev
Log:
[AVX512] Add X86::VR512RegClassID to X86RegisterInfo::getLargestLegalSuperClass.
Modified:
llvm/trunk/lib/Target/X86/X86RegisterInfo.cpp
llvm/trunk/test/CodeGen/X86/vector-compare-results.ll
Modified: llvm/trunk/lib/Target/X86/X86RegisterInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86RegisterInfo.cpp?rev=277301&r1=277300&r2=277301&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86RegisterInfo.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86RegisterInfo.cpp Sun Jul 31 15:19:50 2016
@@ -143,6 +143,7 @@ X86RegisterInfo::getLargestLegalSuperCla
case X86::RFP80RegClassID:
case X86::VR128RegClassID:
case X86::VR256RegClassID:
+ case X86::VR512RegClassID:
// Don't return a super-class that would shrink the spill size.
// That can happen with the vector and float classes.
if (Super->getSize() == RC->getSize())
Modified: llvm/trunk/test/CodeGen/X86/vector-compare-results.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/vector-compare-results.ll?rev=277301&r1=277300&r2=277301&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/vector-compare-results.ll (original)
+++ llvm/trunk/test/CodeGen/X86/vector-compare-results.ll Sun Jul 31 15:19:50 2016
@@ -7008,20 +7008,20 @@ define <32 x i1> @test_cmp_v32f64(<32 x
; AVX512-NEXT: vpunpcklqdq {{.*#+}} xmm2 = xmm4[0],xmm2[0]
; AVX512-NEXT: vinserti128 $1, %xmm1, %ymm2, %ymm1
; AVX512-NEXT: vinserti64x4 $1, %ymm0, %zmm1, %zmm0
-; AVX512-NEXT: vpmovqd %zmm0, %ymm1
-; AVX512-NEXT: vextractf32x4 $3, %zmm7, %xmm0
+; AVX512-NEXT: vpmovqd %zmm0, %ymm0
+; AVX512-NEXT: vextractf32x4 $3, %zmm7, %xmm1
; AVX512-NEXT: vextractf32x4 $3, %zmm3, %xmm2
-; AVX512-NEXT: vucomisd %xmm0, %xmm2
+; AVX512-NEXT: vucomisd %xmm1, %xmm2
; AVX512-NEXT: movl $0, %edx
; AVX512-NEXT: cmovaq %rcx, %rdx
; AVX512-NEXT: vmovq %rdx, %xmm4
-; AVX512-NEXT: vpermilpd {{.*#+}} xmm0 = xmm0[1,0]
+; AVX512-NEXT: vpermilpd {{.*#+}} xmm1 = xmm1[1,0]
; AVX512-NEXT: vpermilpd {{.*#+}} xmm2 = xmm2[1,0]
-; AVX512-NEXT: vucomisd %xmm0, %xmm2
+; AVX512-NEXT: vucomisd %xmm1, %xmm2
; AVX512-NEXT: movl $0, %edx
; AVX512-NEXT: cmovaq %rcx, %rdx
-; AVX512-NEXT: vmovq %rdx, %xmm0
-; AVX512-NEXT: vpunpcklqdq {{.*#+}} xmm0 = xmm4[0],xmm0[0]
+; AVX512-NEXT: vmovq %rdx, %xmm1
+; AVX512-NEXT: vpunpcklqdq {{.*#+}} xmm1 = xmm4[0],xmm1[0]
; AVX512-NEXT: vextractf32x4 $2, %zmm7, %xmm2
; AVX512-NEXT: vextractf32x4 $2, %zmm3, %xmm4
; AVX512-NEXT: vucomisd %xmm2, %xmm4
@@ -7035,7 +7035,7 @@ define <32 x i1> @test_cmp_v32f64(<32 x
; AVX512-NEXT: cmovaq %rcx, %rdx
; AVX512-NEXT: vmovq %rdx, %xmm2
; AVX512-NEXT: vpunpcklqdq {{.*#+}} xmm2 = xmm5[0],xmm2[0]
-; AVX512-NEXT: vinserti128 $1, %xmm0, %ymm2, %ymm0
+; AVX512-NEXT: vinserti128 $1, %xmm1, %ymm2, %ymm1
; AVX512-NEXT: vextractf32x4 $1, %zmm7, %xmm2
; AVX512-NEXT: vextractf32x4 $1, %zmm3, %xmm4
; AVX512-NEXT: vucomisd %xmm2, %xmm4
@@ -7060,9 +7060,9 @@ define <32 x i1> @test_cmp_v32f64(<32 x
; AVX512-NEXT: vmovq %rax, %xmm3
; AVX512-NEXT: vpunpcklqdq {{.*#+}} xmm3 = xmm4[0],xmm3[0]
; AVX512-NEXT: vinserti128 $1, %xmm2, %ymm3, %ymm2
-; AVX512-NEXT: vinserti64x4 $1, %ymm0, %zmm2, %zmm0
-; AVX512-NEXT: vpmovqd %zmm0, %ymm0
-; AVX512-NEXT: vinserti64x4 $1, %ymm0, %zmm1, %zmm0
+; AVX512-NEXT: vinserti64x4 $1, %ymm1, %zmm2, %zmm1
+; AVX512-NEXT: vpmovqd %zmm1, %ymm1
+; AVX512-NEXT: vinserti64x4 $1, %ymm1, %zmm0, %zmm0
; AVX512-NEXT: vpmovdb %zmm0, %xmm0
; AVX512-NEXT: vinserti128 $1, %xmm0, %ymm8, %ymm0
; AVX512-NEXT: retq
More information about the llvm-commits
mailing list