blob: bc14a2d86c41dd1c1135b6146bdfc9163c1e0d82 [file] [log] [blame]
Chris Lattner65026a72005-10-30 19:42:18 +00001; RUN: llvm-as < %s | llc -march=ppc32 &&
2; RUN: llvm-as < %s | llc -march=ppc32 | not grep or
3
4%struct.foo = type { int, int, [0 x ubyte] }
5int %test(%struct.foo* %X) {
6 %tmp1 = getelementptr %struct.foo* %X, int 0, uint 2, int 100
7 %tmp = load ubyte* %tmp1 ; <ubyte> [#uses=1]
8 %tmp2 = cast ubyte %tmp to int ; <int> [#uses=1]
9 ret int %tmp2}
10
11
12