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