blob: 24e7995d372d6a731fe6d3145cee186454b3567b [file] [log] [blame]
Krzysztof Parzyszeka356bb72016-05-10 16:50:30 +00001; 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
Krzysztof Parzyszek18484de2018-03-06 19:15:58 +00008; CHECK: [[REG:r[0-9]+]] = memw
Krzysztof Parzyszeka356bb72016-05-10 16:50:30 +00009; CHECK: {
Krzysztof Parzyszek18484de2018-03-06 19:15:58 +000010; CHECK: callr [[REG]]
Krzysztof Parzyszeka356bb72016-05-10 16:50:30 +000011
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 }