xref: /aosp_15_r20/external/llvm/test/CodeGen/Mips/br-jmp.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc -march=mipsel -relocation-model=pic < %s | FileCheck %s -check-prefix=CHECK-PIC
2*9880d681SAndroid Build Coastguard Worker; RUN: llc -march=mipsel -relocation-model=static < %s | FileCheck %s -check-prefix=CHECK-STATIC
3*9880d681SAndroid Build Coastguard Worker; RUN: llc -march=mipsel -mattr=mips16 -relocation-model=pic < %s | FileCheck %s -check-prefix=CHECK-PIC16
4*9880d681SAndroid Build Coastguard Worker; RUN: llc -march=mipsel -mattr=mips16 -relocation-model=static < %s | FileCheck %s -check-prefix=CHECK-STATIC16
5*9880d681SAndroid Build Coastguard Worker
6*9880d681SAndroid Build Coastguard Workerdefine void @count(i32 %x, i32 %y, i32 %z) noreturn nounwind readnone {
7*9880d681SAndroid Build Coastguard Workerentry:
8*9880d681SAndroid Build Coastguard Worker  br label %bosco
9*9880d681SAndroid Build Coastguard Worker
10*9880d681SAndroid Build Coastguard Workerbosco:                                            ; preds = %bosco, %entry
11*9880d681SAndroid Build Coastguard Worker  br label %bosco
12*9880d681SAndroid Build Coastguard Worker}
13*9880d681SAndroid Build Coastguard Worker
14*9880d681SAndroid Build Coastguard Worker; CHECK-PIC: b	$BB0_1
15*9880d681SAndroid Build Coastguard Worker; CHECK-STATIC: j	$BB0_1
16*9880d681SAndroid Build Coastguard Worker; CHECK-PIC16: b	$BB0_1
17*9880d681SAndroid Build Coastguard Worker; CHECK-STATIC16: b	$BB0_1
18*9880d681SAndroid Build Coastguard Worker
19