2011-09-22 01:36:30 +08:00
|
|
|
; RUN: llc -march=mips -relocation-model=static < %s | FileCheck %s
|
2011-09-14 04:00:35 +08:00
|
|
|
|
2011-01-17 02:02:57 +08:00
|
|
|
@.str = internal unnamed_addr constant [10 x i8] c"AAAAAAAAA\00"
|
2011-09-22 01:36:30 +08:00
|
|
|
@i0 = internal unnamed_addr constant [5 x i32] [ i32 0, i32 1, i32 2, i32 3, i32 4 ]
|
2008-08-08 12:05:51 +08:00
|
|
|
|
|
|
|
define i8* @foo() nounwind {
|
|
|
|
entry:
|
2011-09-22 01:36:30 +08:00
|
|
|
; CHECK: foo
|
|
|
|
; CHECK: %hi(.str)
|
|
|
|
; CHECK: %lo(.str)
|
2008-08-08 12:05:51 +08:00
|
|
|
ret i8* getelementptr ([10 x i8]* @.str, i32 0, i32 0)
|
|
|
|
}
|
|
|
|
|
|
|
|
define i32* @bar() nounwind {
|
|
|
|
entry:
|
2011-09-22 01:36:30 +08:00
|
|
|
; CHECK: bar
|
|
|
|
; CHECK: %hi(i0)
|
|
|
|
; CHECK: %lo(i0)
|
2008-08-08 12:05:51 +08:00
|
|
|
ret i32* getelementptr ([5 x i32]* @i0, i32 0, i32 0)
|
|
|
|
}
|
|
|
|
|
2011-09-22 01:36:30 +08:00
|
|
|
; CHECK: rodata.str1.4,"aMS",@progbits
|
|
|
|
; CHECK: rodata,"a",@progbits
|