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