xref: /aosp_15_r20/external/llvm/test/CodeGen/SPARC/LeonFixCALLPassUT.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc %s -O0 -march=sparc -mcpu=at697e -o - | FileCheck %s -check-prefix=FIXCALL
2*9880d681SAndroid Build Coastguard Worker; RUN: llc %s -O0 -march=sparc -mcpu=leon2 -mattr=+fixcall -o - | FileCheck %s -check-prefix=FIXCALL
3*9880d681SAndroid Build Coastguard Worker
4*9880d681SAndroid Build Coastguard Worker; RUN: llc %s -O0 -march=sparc -mcpu=at697e -mattr=-fixcall -o - | FileCheck %s -check-prefix=NO_FIXCALL
5*9880d681SAndroid Build Coastguard Worker; RUN: llc %s -O0 -march=sparc -mcpu=leon2  -o - | FileCheck %s -check-prefix=NO_FIXCALL
6*9880d681SAndroid Build Coastguard Worker
7*9880d681SAndroid Build Coastguard Worker
8*9880d681SAndroid Build Coastguard Worker; FIXCALL-LABEL:       	immediate_call_test
9*9880d681SAndroid Build Coastguard Worker; FIXCALL:       	call 763288
10*9880d681SAndroid Build Coastguard Worker
11*9880d681SAndroid Build Coastguard Worker; NO_FIXCALL-LABEL:     immediate_call_test
12*9880d681SAndroid Build Coastguard Worker; NO_FIXCALL:       	call 2047583640
13*9880d681SAndroid Build Coastguard Workerdefine void @immediate_call_test() nounwind {
14*9880d681SAndroid Build Coastguard Workerentry:
15*9880d681SAndroid Build Coastguard Worker        call void asm sideeffect "call $0", "i"(i32 2047583640) nounwind
16*9880d681SAndroid Build Coastguard Worker        ret void
17*9880d681SAndroid Build Coastguard Worker}
18*9880d681SAndroid Build Coastguard Worker
19*9880d681SAndroid Build Coastguard Worker
20*9880d681SAndroid Build Coastguard Worker
21