blob: e0ddb4250fd2a1c30ea2926e381843feae9bb7fc [file] [log] [blame]
Dan Gohmanfce288f2009-09-09 00:09:15 +00001; RUN: llc < %s -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
Dale Johannesen1d3863f2008-03-31 23:20:09 +00005define i32 @test(%struct.foo* %X) nounwind {
Tanya Lattnercfab3da2008-02-19 08:07:33 +00006 %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