Use the llvm-upgrade program to upgrade llvm assembly.
[oota-llvm.git] / test / CodeGen / PowerPC / stfiwx.ll
1 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mattr=stfiwx | grep stfiwx &&
2 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mattr=stfiwx | not grep r1 &&
3 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mattr=-stfiwx | not grep stfiwx &&
4 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mattr=-stfiwx | grep r1
5
6 void %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
12 void %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