blob: dccf21e1720e91c08443340ef8883e6e4660f39a [file] [log] [blame]
Tanya Lattnercfab3da2008-02-19 08:07:33 +00001; RUN: llvm-as < %s | llc -march=ppc32 | not grep or
Chris Lattner65026a72005-10-30 19:42:18 +00002
Tanya Lattnercfab3da2008-02-19 08:07:33 +00003%struct.foo = type { i32, i32, [0 x i8] }
Chris Lattner65026a72005-10-30 19:42:18 +00004
Tanya Lattnercfab3da2008-02-19 08:07:33 +00005define i32 @test(%struct.foo* %X) {
6 %tmp1 = getelementptr %struct.foo* %X, i32 0, i32 2, i32 100 ; <i8*> [#uses=1]
7 %tmp = load i8* %tmp1 ; <i8> [#uses=1]
8 %tmp2 = zext i8 %tmp to i32 ; <i32> [#uses=1]
9 ret i32 %tmp2
10}
Chris Lattner65026a72005-10-30 19:42:18 +000011
12