blob: acc9c67aaf585af989c0c2f1d2531a4e6105893d [file] [log] [blame]
Chris Lattnerc607fa82006-03-01 05:49:05 +00001; RUN: llvm-as < %s | llc -march=ppc32 -mattr=stfiwx | grep stfiwx &&
2; RUN: llvm-as < %s | llc -march=ppc32 -mattr=stfiwx | not grep r1 &&
3; RUN: llvm-as < %s | llc -march=ppc32 -mattr=-stfiwx | not grep stfiwx &&
4; RUN: llvm-as < %s | llc -march=ppc32 -mattr=-stfiwx | grep r1
5
6void %test(float %a, int* %b) {
7 %tmp.2 = cast float %a to int
8 store int %tmp.2, int* %b
9 ret void
10}
11
12void %test2(float %a, int* %b, int %i) {
13 %tmp.2 = getelementptr int* %b, int 1
14 %tmp.5 = getelementptr int* %b, int %i
15 %tmp.7 = cast float %a to int
16 store int %tmp.7, int* %tmp.5
17 store int %tmp.7, int* %tmp.2
18 store int %tmp.7, int* %b
19 ret void
20}
21