Skip to content

Commit 6beef90

Browse files
committed
new testcase
llvm-svn: 24112
1 parent dd5663d commit 6beef90

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
; 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] }
5+
int %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+

0 commit comments

Comments
 (0)