forked from llir/testdata
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* enable extractps test case related with llir/llvm#118 * fix golden
- Loading branch information
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |