39 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc < %s -mtriple=i686-- -mcpu=penryn | FileCheck %s3; PR26474 5@0 = external dso_local global float, align 16 ; <ptr>:0 [#uses=2]6 7define internal void @a() nounwind {8; CHECK-LABEL: a:9; CHECK: # %bb.0:10; CHECK-NEXT: movss {{.*#+}} xmm0 = mem[0],zero,zero,zero11; CHECK-NEXT: rsqrtss %xmm0, %xmm012; CHECK-NEXT: movss %xmm0, __unnamed_113; CHECK-NEXT: retl14 load float, ptr @0, align 16 ; <float>:1 [#uses=1]15 insertelement <4 x float> undef, float %1, i32 0 ; <<4 x float>>:2 [#uses=1]16 call <4 x float> @llvm.x86.sse.rsqrt.ss( <4 x float> %2 ) ; <<4 x float>>:3 [#uses=1]17 extractelement <4 x float> %3, i32 0 ; <float>:4 [#uses=1]18 store float %4, ptr @0, align 1619 ret void20}21define internal void @b() nounwind {22; CHECK-LABEL: b:23; CHECK: # %bb.0:24; CHECK-NEXT: movss {{.*#+}} xmm0 = mem[0],zero,zero,zero25; CHECK-NEXT: movsldup {{.*#+}} xmm0 = xmm0[0,0,2,2]26; CHECK-NEXT: rsqrtss %xmm0, %xmm027; CHECK-NEXT: extractps $1, %xmm0, __unnamed_128; CHECK-NEXT: retl29 load float, ptr @0, align 16 ; <float>:1 [#uses=1]30 insertelement <4 x float> undef, float %1, i32 1 ; <<4 x float>>:2 [#uses=1]31 call <4 x float> @llvm.x86.sse.rsqrt.ss( <4 x float> %2 ) ; <<4 x float>>:3 [#uses=1]32 extractelement <4 x float> %3, i32 1 ; <float>:4 [#uses=1]33 store float %4, ptr @0, align 1634 ret void35}36 37declare <4 x float> @llvm.x86.sse.rsqrt.ss(<4 x float>) nounwind readnone38 39