Skip to content

Commit

Permalink
enable extractps test case (llir#2)
Browse files Browse the repository at this point in the history
* enable extractps test case

related with llir/llvm#118

* fix golden
  • Loading branch information
dannypsnl authored and mewmew committed Jan 16, 2020
1 parent ffa831f commit f87b279
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions llvm/test/CodeGen/X86/extractps.ll.golden
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
@0 = external global float, align 16

define internal void @1() nounwind {
; <label>:0
%1 = load float, float* @0, align 16
%2 = insertelement <4 x float> undef, float %1, i32 0
%3 = call <4 x float> @llvm.x86.sse.rsqrt.ss(<4 x float> %2)
%4 = extractelement <4 x float> %3, i32 0
store float %4, float* @0, align 16
ret void
}

define internal void @2() nounwind {
; <label>:0
%1 = load float, float* @0, align 16
%2 = insertelement <4 x float> undef, float %1, i32 1
%3 = call <4 x float> @llvm.x86.sse.rsqrt.ss(<4 x float> %2)
%4 = extractelement <4 x float> %3, i32 1
store float %4, float* @0, align 16
ret void
}

declare <4 x float> @llvm.x86.sse.rsqrt.ss(<4 x float>) nounwind readnone

0 comments on commit f87b279

Please sign in to comment.