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 5 6 ; Check for register information sections. 7 ; 8 9 @str = private unnamed_addr constant [12 x i8] c"hello world\00" 10 11 define i32 @main() nounwind { 12 entry: 13 ; Check that the appropriate relocations were created. 14 15 ; check for .MIPS.options 16 ; CHECK_64: Sections [ 17 ; CHECK_64: Section { 18 ; CHECK_64: Name: .MIPS.options 19 ; CHECK_64-NEXT: Type: SHT_MIPS_OPTIONS 20 ; CHECK_64-NEXT: Flags [ (0x8000002) 21 22 ; check for .reginfo 23 ; CHECK_32: Sections [ 24 ; CHECK_32: Section { 25 ; CHECK_32: Name: .reginfo 26 ; CHECK_32-NEXT: Type: SHT_MIPS_REGINFO 27 ; CHECK_32-NEXT: Flags [ (0x2) 28 29 30 %puts = tail call i32 @puts(i8* getelementptr inbounds ([12 x i8]* @str, i64 0, i64 0)) 31 ret i32 0 32 33 } 34 declare i32 @puts(i8* nocapture) nounwind 35