Hexagon: add support for predicate-GPR copies.
[oota-llvm.git] / test / CodeGen / Hexagon / simpletailcall.ll
1 ; RUN: llc -march=hexagon -mcpu=hexagonv4 < %s | FileCheck %s
2 ; CHECK: foo_empty
3 ; CHECK-NOT: allocframe
4 ; CHECK-NOT: memd(r29
5 ; CHECK: jump bar_empty
6
7 define void @foo_empty(i32 %h) nounwind {
8 entry:
9   %add = add nsw i32 %h, 3
10   %call = tail call i32 bitcast (i32 (...)* @bar_empty to i32 (i32)*)(i32 %add) nounwind
11   ret void
12 }
13
14 declare i32 @bar_empty(...)