| Reid Spencer | d0e30dc | 2006-12-02 04:23:10 +0000 | [diff] [blame] | 1 | ; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | not grep or |
| Chris Lattner | 6beef90 | 2005-10-30 19:42:18 +0000 | [diff] [blame] | 2 | |
| 3 | %struct.foo = type { int, int, [0 x ubyte] } | ||||
| 4 | int %test(%struct.foo* %X) { | ||||
| 5 | %tmp1 = getelementptr %struct.foo* %X, int 0, uint 2, int 100 | ||||
| 6 | %tmp = load ubyte* %tmp1 ; <ubyte> [#uses=1] | ||||
| 7 | %tmp2 = cast ubyte %tmp to int ; <int> [#uses=1] | ||||
| 8 | ret int %tmp2} | ||||
| 9 | |||||
| 10 | |||||
| 11 | |||||