1 ; RUN: llc -filetype=obj -march=mips64el -mcpu=mips64 %s -o - \
2 ; RUN: | llvm-readobj -s | FileCheck --check-prefix=CHECK_64 %s
3 ; RUN: llc -filetype=obj -march=mipsel -mcpu=mips32 %s -o - \
4 ; RUN: | llvm-readobj -s | FileCheck --check-prefix=CHECK_32 %s
6 ; Check for register information sections.
9 @str = private unnamed_addr constant [12 x i8] c"hello world\00"
11 define i32 @main() nounwind {
13 ; Check that the appropriate relocations were created.
15 ; check for .MIPS.options
16 ; CHECK_64: Sections [
18 ; CHECK_64: Name: .MIPS.options
19 ; CHECK_64-NEXT: Type: SHT_MIPS_OPTIONS
20 ; CHECK_64-NEXT: Flags [ (0x8000002)
23 ; CHECK_32: Sections [
25 ; CHECK_32: Name: .reginfo
26 ; CHECK_32-NEXT: Type: SHT_MIPS_REGINFO
27 ; CHECK_32-NEXT: Flags [ (0x2)
30 %puts = tail call i32 @puts(i8* getelementptr inbounds ([12 x i8]* @str, i64 0, i64 0))
34 declare i32 @puts(i8* nocapture) nounwind