38 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc -mtriple=mips64 -relocation-model=static < %s \3; RUN: | FileCheck %s --check-prefix STATIC4; RUN: llc -mtriple=mips64 -relocation-model=pic < %s \5; RUN: | FileCheck %s --check-prefix PIC6 7declare dso_local void @callee() noreturn nounwind8 9define dso_local void @caller() nounwind "frame-pointer"="non-leaf" {10; STATIC-LABEL: caller:11; STATIC: # %bb.0: # %entry12; STATIC-NEXT: daddiu $sp, $sp, -1613; STATIC-NEXT: sd $ra, 8($sp) # 8-byte Folded Spill14; STATIC-NEXT: sd $fp, 0($sp) # 8-byte Folded Spill15; STATIC-NEXT: move $fp, $sp16; STATIC-NEXT: jal callee17; STATIC-NEXT: nop18;19; PIC-LABEL: caller:20; PIC: # %bb.0: # %entry21; PIC-NEXT: daddiu $sp, $sp, -3222; PIC-NEXT: sd $ra, 24($sp) # 8-byte Folded Spill23; PIC-NEXT: sd $fp, 16($sp) # 8-byte Folded Spill24; PIC-NEXT: sd $gp, 8($sp) # 8-byte Folded Spill25; PIC-NEXT: move $fp, $sp26; PIC-NEXT: lui $1, %hi(%neg(%gp_rel(caller)))27; PIC-NEXT: daddu $1, $1, $2528; PIC-NEXT: daddiu $gp, $1, %lo(%neg(%gp_rel(caller)))29; PIC-NEXT: ld $25, %call16(callee)($gp)30; PIC-NEXT: .reloc .Ltmp0, R_MIPS_JALR, callee31; PIC-NEXT: .Ltmp0:32; PIC-NEXT: jalr $2533; PIC-NEXT: nop34entry:35 tail call void @callee()36 unreachable37}38