Home | History | Annotate | Download | only in Mips
      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]* @.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]* @i0, i32 0, i32 0)
     20 }
     21 
     22 ; CHECK: rodata.str1.4,"aMS",@progbits
     23 ; CHECK: rodata,"a",@progbits
     24