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