1 ; RUN: llc < %s -march=ppc32 -enable-ppc-preinc | \
3 ; RUN: llc < %s -march=ppc64 -enable-ppc-preinc | \
8 define i32* @test0(i32* %X, i32* %dest) nounwind {
9 %Y = getelementptr i32* %X, i32 4
11 store i32 %A, i32* %dest
15 define i32* @test1(i32* %X, i32* %dest) nounwind {
16 %Y = getelementptr i32* %X, i32 4
18 store i32 %A, i32* %dest
22 define i16* @test2(i16* %X, i32* %dest) nounwind {
23 %Y = getelementptr i16* %X, i32 4
25 %B = sext i16 %A to i32
26 store i32 %B, i32* %dest
30 define i16* @test3(i16* %X, i32* %dest) nounwind {
31 %Y = getelementptr i16* %X, i32 4
33 %B = zext i16 %A to i32
34 store i32 %B, i32* %dest
38 define i16* @test3a(i16* %X, i64* %dest) nounwind {
39 %Y = getelementptr i16* %X, i32 4
41 %B = sext i16 %A to i64
42 store i64 %B, i64* %dest
46 define i64* @test4(i64* %X, i64* %dest) nounwind {
47 %Y = getelementptr i64* %X, i32 4
49 store i64 %A, i64* %dest
53 define i16* @test5(i16* %X) nounwind {
54 %Y = getelementptr i16* %X, i32 4
59 define i64* @test6(i64* %X, i64 %A) nounwind {
60 %Y = getelementptr i64* %X, i32 4
65 define i64* @test7(i64* %X, i64 %A) nounwind {
66 store i64 %A, i64* @Glob