xref: /aosp_15_r20/external/llvm/test/MC/Mips/multi-64bit-func.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; There is no real check here. If the test doesn't
2*9880d681SAndroid Build Coastguard Worker; assert it passes.
3*9880d681SAndroid Build Coastguard Worker; RUN: llc -march=mips64el -filetype=obj -mcpu=mips64r2 -disable-mips-delay-filler < %s
4*9880d681SAndroid Build Coastguard Worker; Run it again without extra nop in delay slot
5*9880d681SAndroid Build Coastguard Worker; RUN: llc -march=mips64el -filetype=obj -mcpu=mips64r2 < %s
6*9880d681SAndroid Build Coastguard Worker
7*9880d681SAndroid Build Coastguard Workerdefine i32 @bosco1(i32 %x) nounwind readnone {
8*9880d681SAndroid Build Coastguard Workerentry:
9*9880d681SAndroid Build Coastguard Worker  %inc = add i32 %x, 1
10*9880d681SAndroid Build Coastguard Worker  ret i32 %inc
11*9880d681SAndroid Build Coastguard Worker}
12*9880d681SAndroid Build Coastguard Worker
13*9880d681SAndroid Build Coastguard Workerdefine i32 @bosco2(i32 %x) nounwind readnone {
14*9880d681SAndroid Build Coastguard Workerentry:
15*9880d681SAndroid Build Coastguard Worker  %inc = add i32 %x, 1
16*9880d681SAndroid Build Coastguard Worker  ret i32 %inc
17*9880d681SAndroid Build Coastguard Worker}
18*9880d681SAndroid Build Coastguard Worker
19*9880d681SAndroid Build Coastguard Workerdefine i32 @bosco3(i32 %x) nounwind readnone {
20*9880d681SAndroid Build Coastguard Workerentry:
21*9880d681SAndroid Build Coastguard Worker  %inc = add i32 %x, 1
22*9880d681SAndroid Build Coastguard Worker  ret i32 %inc
23*9880d681SAndroid Build Coastguard Worker}
24