xref: /aosp_15_r20/external/llvm/test/CodeGen/Hexagon/simpletailcall.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc -march=hexagon -mcpu=hexagonv4 < %s | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker; CHECK: foo_empty
3*9880d681SAndroid Build Coastguard Worker; CHECK-NOT: allocframe
4*9880d681SAndroid Build Coastguard Worker; CHECK-NOT: memd(r29
5*9880d681SAndroid Build Coastguard Worker; CHECK: jump bar_empty
6*9880d681SAndroid Build Coastguard Worker
7*9880d681SAndroid Build Coastguard Workerdefine void @foo_empty(i32 %h) nounwind {
8*9880d681SAndroid Build Coastguard Workerentry:
9*9880d681SAndroid Build Coastguard Worker  %add = add nsw i32 %h, 3
10*9880d681SAndroid Build Coastguard Worker  %call = tail call i32 bitcast (i32 (...)* @bar_empty to i32 (i32)*)(i32 %add) nounwind
11*9880d681SAndroid Build Coastguard Worker  ret void
12*9880d681SAndroid Build Coastguard Worker}
13*9880d681SAndroid Build Coastguard Worker
14*9880d681SAndroid Build Coastguard Workerdeclare i32 @bar_empty(...)
15