blob: 1bbd57820325ed5b3fc4c0a121604d8ab8e578f2 [file] [log] [blame]
Krzysztof Parzyszeka17cebd2015-04-23 15:12:49 +00001; 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
8target triple = "hexagon-unknown-unknown"
9
10; Function Attrs: nounwind uwtable
11define void @foo() #0 {
12entry:
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
25declare void @bar(i8*, i8*, i8*, i8*) #0
26
27attributes #0 = { nounwind }