[opaque pointer type] Add textual IR support for explicit type parameter to gep operator
[oota-llvm.git] / test / CodeGen / Mips / 2008-07-15-InternalConstant.ll
1 ; RUN: llc -march=mips -relocation-model=static  < %s | FileCheck %s
2
3 @.str = internal unnamed_addr constant [10 x i8] c"AAAAAAAAA\00"
4 @i0 = internal unnamed_addr constant [5 x i32] [ i32 0, i32 1, i32 2, i32 3, i32 4 ]
5
6 define i8* @foo() nounwind {
7 entry:
8 ; CHECK: foo
9 ; CHECK: %hi(.str)
10 ; CHECK: %lo(.str)
11         ret i8* getelementptr ([10 x i8], [10 x i8]* @.str, i32 0, i32 0)
12 }
13
14 define i32* @bar() nounwind  {
15 entry:
16 ; CHECK: bar
17 ; CHECK: %hi(i0)
18 ; CHECK: %lo(i0)
19   ret i32* getelementptr ([5 x i32], [5 x i32]* @i0, i32 0, i32 0)
20 }
21
22 ; CHECK: rodata.str1.4,"aMS",@progbits
23 ; CHECK: rodata,"a",@progbits