1 # RUN: not llc -mtriple=mips-mti-linux-gnu -mcpu=mips32r2 %s \
2 # RUN: -start-after=finalize-isel -stop-after=finalize-isel \
3 # RUN: -verify-machineinstrs -mattr=+use-indirect-jump-hazard -o - 2>&1 \
6 # That that tail calls are checked when using indirect jump guards (hazard variant).
8 # CHECK: Bad machine code: invalid instruction when using jump guards!
10 define i32 @fooTail(i32 (i32)* nocapture %f1) {
12 %0 = tail call i32 %f1(i32 14)
20 exposesReturnsTwice: false
22 regBankSelected: false
24 tracksRegLiveness: true
26 - { id: 0, class: gpr32, preferred-register: '' }
27 - { id: 1, class: gpr32, preferred-register: '' }
29 - { reg: '$a0', virtual-reg: '%0' }
31 isFrameAddressTaken: false
32 isReturnAddressTaken: false
41 maxCallFrameSize: 4294967295
42 hasOpaqueSPAdjustment: false
44 hasMustTailInVarArgFunc: false
55 %1:gpr32 = ADDiu $zero, 14
57 TAILCALLREG %0, csr_o32, implicit-def dead $at, implicit $a0