annotate test/CodeGen/Hexagon/vec-vararg-align.ll @ 128:c347d3398279 default tip

fix
author mir3636
date Wed, 06 Dec 2017 14:37:17 +0900
parents 803732b1fca8
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
1 ; RUN: llc -march=hexagon < %s | FileCheck %s
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
2 ;
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
3 ; Check that the stack is aligned according to the outgoing function arguments.
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
4 ; CHECK: r29 = and(r29,#-128)
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
5
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
6 target triple = "hexagon-unknown--elf"
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
7
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
8 @.str = private unnamed_addr constant [32 x i8] c"\0AMixed Vectors, Pairs, int flt\0A\00", align 1
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
9 @.str.1 = private unnamed_addr constant [11 x i8] c"\0AVar args\0A\00", align 1
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
10 @gVec0 = common global <16 x i32> zeroinitializer, align 64
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
11 @gVec10 = common global <32 x i32> zeroinitializer, align 128
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
12 @gi1 = common global i32 0, align 4
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
13 @gf1 = common global float 0.000000e+00, align 4
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
14
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
15 define i32 @main() #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
16 b0:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
17 %v1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i32 0, i32 0)) #0
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
18 %v2 = load <16 x i32>, <16 x i32>* @gVec0, align 64
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
19 %v3 = load <32 x i32>, <32 x i32>* @gVec10, align 128
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
20 %v4 = load i32, i32* @gi1, align 4
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
21 %v5 = load float, float* @gf1, align 4
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
22 %v6 = fpext float %v5 to double
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
23 call void (i8*, i32, ...) @VarVec1(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i32 0, i32 0), i32 4, <16 x i32> %v2, <32 x i32> %v3, i32 %v4, double %v6)
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
24 ret i32 0
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
25 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
26
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
27 declare i32 @printf(i8*, ...) #0
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
28 declare void @VarVec1(i8*, i32, ...) #0
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
29
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
30 attributes #0 = { nounwind "target-cpu"="hexagonv60" "target-features"="+hvxv60,+hvx-length64b" }