xref: /aosp_15_r20/external/llvm/test/CodeGen/Hexagon/callr-dep-edge.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1; RUN: llc -march=hexagon < %s | FileCheck %s
2; Check that the callr and the load into r0 are not packetized together.
3
4target triple = "hexagon"
5
6@fp = common global i32 (...)* null, align 4
7
8; CHECK: r0 = memw
9; CHECK: {
10; CHECK: callr r0
11
12; Function Attrs: nounwind
13define i32 @foo() #0 {
14entry:
15  %0 = load i32 ()*, i32 ()** bitcast (i32 (...)** @fp to i32 ()**), align 4
16  %call = tail call i32 %0() #0
17  ret i32 %call
18}
19
20attributes #0 = { nounwind }
21