Chris Lattner | c607fa8 | 2006-03-01 05:49:05 +0000 | [diff] [blame] | 1 | ; 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 | |
| 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 | |