[llvm] r277310 - [X86][SSE] Regenerate fpext tests
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Sun Jul 31 14:55:34 PDT 2016
Author: rksimon
Date: Sun Jul 31 16:55:33 2016
New Revision: 277310
URL: http://llvm.org/viewvc/llvm-project?rev=277310&view=rev
Log:
[X86][SSE] Regenerate fpext tests
Modified:
llvm/trunk/test/CodeGen/X86/pr11334.ll
Modified: llvm/trunk/test/CodeGen/X86/pr11334.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/pr11334.ll?rev=277310&r1=277309&r2=277310&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/pr11334.ll (original)
+++ llvm/trunk/test/CodeGen/X86/pr11334.ll Sun Jul 31 16:55:33 2016
@@ -1,61 +1,103 @@
-; RUN: llc < %s -mtriple=x86_64-pc-linux -mcpu=corei7 | FileCheck %s
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
+; RUN: llc < %s -mtriple=x86_64-pc-linux -mcpu=corei7 | FileCheck %s --check-prefix=SSE
; RUN: llc < %s -mtriple=x86_64-pc-linux -mcpu=core-avx-i | FileCheck %s --check-prefix=AVX
define <2 x double> @v2f2d_ext_vec(<2 x float> %v1) nounwind {
+; SSE-LABEL: v2f2d_ext_vec:
+; SSE: # BB#0: # %entry
+; SSE-NEXT: cvtps2pd %xmm0, %xmm0
+; SSE-NEXT: retq
+;
+; AVX-LABEL: v2f2d_ext_vec:
+; AVX: # BB#0: # %entry
+; AVX-NEXT: vcvtps2pd %xmm0, %xmm0
+; AVX-NEXT: retq
entry:
-; CHECK: v2f2d_ext_vec
-; CHECK: cvtps2pd
-; AVX: v2f2d_ext_vec
-; AVX: vcvtps2pd
%f1 = fpext <2 x float> %v1 to <2 x double>
ret <2 x double> %f1
}
define <3 x double> @v3f2d_ext_vec(<3 x float> %v1) nounwind {
+; SSE-LABEL: v3f2d_ext_vec:
+; SSE: # BB#0: # %entry
+; SSE-NEXT: cvtps2pd %xmm0, %xmm2
+; SSE-NEXT: shufpd {{.*#+}} xmm0 = xmm0[1,0]
+; SSE-NEXT: cvtps2pd %xmm0, %xmm0
+; SSE-NEXT: movlps %xmm0, -{{[0-9]+}}(%rsp)
+; SSE-NEXT: movapd %xmm2, %xmm1
+; SSE-NEXT: shufpd {{.*#+}} xmm1 = xmm1[1,0]
+; SSE-NEXT: fldl -{{[0-9]+}}(%rsp)
+; SSE-NEXT: movapd %xmm2, %xmm0
+; SSE-NEXT: retq
+;
+; AVX-LABEL: v3f2d_ext_vec:
+; AVX: # BB#0: # %entry
+; AVX-NEXT: vcvtps2pd %xmm0, %ymm0
+; AVX-NEXT: retq
entry:
-; CHECK: v3f2d_ext_vec
-; CHECK: cvtps2pd
-; CHECK: shufpd
-; CHECK: cvtps2pd
-; AVX: v3f2d_ext_vec
-; AVX: vcvtps2pd
-; AVX: ret
%f1 = fpext <3 x float> %v1 to <3 x double>
ret <3 x double> %f1
}
define <4 x double> @v4f2d_ext_vec(<4 x float> %v1) nounwind {
+; SSE-LABEL: v4f2d_ext_vec:
+; SSE: # BB#0: # %entry
+; SSE-NEXT: cvtps2pd %xmm0, %xmm2
+; SSE-NEXT: shufpd {{.*#+}} xmm0 = xmm0[1,0]
+; SSE-NEXT: cvtps2pd %xmm0, %xmm1
+; SSE-NEXT: movaps %xmm2, %xmm0
+; SSE-NEXT: retq
+;
+; AVX-LABEL: v4f2d_ext_vec:
+; AVX: # BB#0: # %entry
+; AVX-NEXT: vcvtps2pd %xmm0, %ymm0
+; AVX-NEXT: retq
entry:
-; CHECK: v4f2d_ext_vec
-; CHECK: cvtps2pd
-; CHECK: shufpd
-; CHECK: cvtps2pd
-; AVX: v4f2d_ext_vec
-; AVX: vcvtps2pd
-; AVX: ret
%f1 = fpext <4 x float> %v1 to <4 x double>
ret <4 x double> %f1
}
define <8 x double> @v8f2d_ext_vec(<8 x float> %v1) nounwind {
+; SSE-LABEL: v8f2d_ext_vec:
+; SSE: # BB#0: # %entry
+; SSE-NEXT: cvtps2pd %xmm0, %xmm5
+; SSE-NEXT: cvtps2pd %xmm1, %xmm2
+; SSE-NEXT: shufpd {{.*#+}} xmm0 = xmm0[1,0]
+; SSE-NEXT: cvtps2pd %xmm0, %xmm4
+; SSE-NEXT: shufpd {{.*#+}} xmm1 = xmm1[1,0]
+; SSE-NEXT: cvtps2pd %xmm1, %xmm3
+; SSE-NEXT: movaps %xmm5, %xmm0
+; SSE-NEXT: movaps %xmm4, %xmm1
+; SSE-NEXT: retq
+;
+; AVX-LABEL: v8f2d_ext_vec:
+; AVX: # BB#0: # %entry
+; AVX-NEXT: vcvtps2pd %xmm0, %ymm2
+; AVX-NEXT: vextractf128 $1, %ymm0, %xmm0
+; AVX-NEXT: vcvtps2pd %xmm0, %ymm1
+; AVX-NEXT: vmovaps %ymm2, %ymm0
+; AVX-NEXT: retq
entry:
-; CHECK: v8f2d_ext_vec
-; CHECK: cvtps2pd
-; CHECK: cvtps2pd
-; CHECK: shufpd
-; CHECK: cvtps2pd
-; CHECK: shufpd
-; CHECK: cvtps2pd
-; AVX: v8f2d_ext_vec
-; AVX: vcvtps2pd
-; AVX: vextractf128
-; AVX: vcvtps2pd
-; AVX: ret
%f1 = fpext <8 x float> %v1 to <8 x double>
ret <8 x double> %f1
}
define void @test_vector_creation() nounwind {
+; SSE-LABEL: test_vector_creation:
+; SSE: # BB#0:
+; SSE-NEXT: movsd {{.*#+}} xmm0 = mem[0],zero
+; SSE-NEXT: pslldq {{.*#+}} xmm0 = zero,zero,zero,zero,zero,zero,zero,zero,xmm0[0,1,2,3,4,5,6,7]
+; SSE-NEXT: movdqa %xmm0, (%rax)
+; SSE-NEXT: retq
+;
+; AVX-LABEL: test_vector_creation:
+; AVX: # BB#0:
+; AVX-NEXT: vmovsd {{.*#+}} xmm0 = mem[0],zero
+; AVX-NEXT: vpslldq {{.*#+}} xmm0 = zero,zero,zero,zero,zero,zero,zero,zero,xmm0[0,1,2,3,4,5,6,7]
+; AVX-NEXT: vinsertf128 $1, %xmm0, %ymm0, %ymm0
+; AVX-NEXT: vmovaps %ymm0, (%rax)
+; AVX-NEXT: vzeroupper
+; AVX-NEXT: retq
%1 = insertelement <4 x double> undef, double 0.000000e+00, i32 2
%2 = load double, double addrspace(1)* null
%3 = insertelement <4 x double> %1, double %2, i32 3
More information about the llvm-commits
mailing list