1; RUN: llc -O0 -march=hexagon < %s | FileCheck %s
2; CHECK: sub(r29,r[[REG:[0-9]+]])
3; CHECK: r29 = r[[REG]]
4
5target triple = "hexagon-unknown-unknown"
6
7; Function Attrs: nounwind uwtable
8define void @foo(i32 %n) #0 {
9entry:
10  %x = alloca i32, i32 %n
11  %0 = bitcast i32* %x to i8*
12  call void @bar(i8* %0)
13  ret void
14}
15
16declare void @bar(i8*) #0
17
18attributes #0 = { nounwind }
19