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, #-128) |
| 3 | ; CHECK-DAG: add(r29, #0) |
| 4 | ; CHECK-DAG: add(r29, #64) |
| 5 | ; CHECK-DAG: add(r29, #96) |
| 6 | ; CHECK-DAG: add(r29, #124) |
| 7 | |
| 8 | target triple = "hexagon-unknown-unknown" |
| 9 | |
| 10 | ; Function Attrs: nounwind uwtable |
| 11 | define void @foo() #0 { |
| 12 | entry: |
| 13 | %x = alloca i32, align 4 |
| 14 | %y = alloca i32, align 32 |
| 15 | %z = alloca i32, align 64 |
| 16 | %w = alloca i32, align 128 |
| 17 | %0 = bitcast i32* %x to i8* |
| 18 | %1 = bitcast i32* %y to i8* |
| 19 | %2 = bitcast i32* %z to i8* |
| 20 | %3 = bitcast i32* %w to i8* |
| 21 | call void @bar(i8* %0, i8* %1, i8* %2, i8* %3) |
| 22 | ret void |
| 23 | } |
| 24 | |
| 25 | declare void @bar(i8*, i8*, i8*, i8*) #0 |
| 26 | |
| 27 | attributes #0 = { nounwind } |