[opaque pointer type] Add textual IR support for explicit type parameter to gep operator
[oota-llvm.git] / test / CodeGen / Mips / i32k.ll
1 ; RUN: llc -mtriple=mipsel-linux-gnu -march=mipsel -mcpu=mips16 -relocation-model=pic -mips16-constant-islands=false -O3 < %s | FileCheck %s -check-prefix=16
2
3 @.str = private unnamed_addr constant [4 x i8] c"%i\0A\00", align 1
4
5 define i32 @main() nounwind {
6 entry:
7   %call = tail call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), i32 1075344593) nounwind
8 ; 16:   lw      ${{[0-9]+}}, 1f
9 ; 16:   b       2f
10 ; 16:   .align  2
11 ; 16: 1:        .word   1075344593
12 ; 16: 2:
13
14   %call1 = tail call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), i32 -1075344593) nounwind
15
16 ; 16:   lw      ${{[0-9]+}}, 1f
17 ; 16:   b       2f
18 ; 16:   .align  2
19 ; 16: 1:        .word   -1075344593
20 ; 16: 2:
21   ret i32 0
22 }
23
24 declare i32 @printf(i8* nocapture, ...) nounwind