1 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -mattr=stfiwx | grep stfiwx &&
2 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -mattr=stfiwx | not grep r1 &&
3 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -mattr=-stfiwx | not grep stfiwx &&
4 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -mattr=-stfiwx | grep r1
6 void %test(float %a, int* %b) {
7 %tmp.2 = cast float %a to int
8 store int %tmp.2, int* %b
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