• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc -march=hexagon < %s | FileCheck %s
2; There should only be one packet:
3; {
4;   jump free
5;   r0 = memw(r0 + #-4)
6; }
7;
8; CHECK: {
9; CHECK-NOT: {
10
11define void @fred(i8* %p) nounwind {
12entry:
13  %arrayidx = getelementptr inbounds i8, i8* %p, i32 -4
14  %t0 = bitcast i8* %arrayidx to i8**
15  %t1 = load i8*, i8** %t0, align 4
16  tail call void @free(i8* %t1)
17  ret void
18}
19
20; Function Attrs: nounwind
21declare void @free(i8* nocapture) nounwind
22
23