1 ; RUN: llc < %s -march=ppc32 -mtriple=powerpc-apple-darwin8 -mattr=stfiwx | FileCheck %s
2 ; RUN: llc < %s -march=ppc32 -mtriple=powerpc-apple-darwin8 -mattr=-stfiwx | FileCheck -check-prefix=CHECK-LS %s
4 define void @test1(float %a, i32* %b) nounwind {
6 ; CHECK-LS-LABEL: @test1
7 %tmp.2 = fptosi float %a to i32 ; <i32> [#uses=1]
8 store i32 %tmp.2, i32* %b
18 ; CHECK-LS-NOT: stfiwx
22 define void @test2(float %a, i32* %b, i32 %i) nounwind {
24 ; CHECK-LS-LABEL: @test2
25 %tmp.2 = getelementptr i32* %b, i32 1 ; <i32*> [#uses=1]
26 %tmp.5 = getelementptr i32* %b, i32 %i ; <i32*> [#uses=1]
27 %tmp.7 = fptosi float %a to i32 ; <i32> [#uses=3]
28 store i32 %tmp.7, i32* %tmp.5
29 store i32 %tmp.7, i32* %tmp.2
30 store i32 %tmp.7, i32* %b
40 ; CHECK-LS-NOT: stfiwx