reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
    1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25
   26
   27
   28
   29
   30
; RUN: llc -march=hexagon < %s | FileCheck %s
;
; Check that the stack is aligned according to the outgoing function arguments.
; CHECK: r29 = and(r29,#-64)

target triple = "hexagon-unknown--elf"

@.str = private unnamed_addr constant [32 x i8] c"\0AMixed Vectors, Pairs, int flt\0A\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c"\0AVar args\0A\00", align 1
@gVec0 = common global <16 x i32> zeroinitializer, align 64
@gVec10 = common global <32 x i32> zeroinitializer, align 128
@gi1 = common global i32 0, align 4
@gf1 = common global float 0.000000e+00, align 4

define i32 @main() #0 {
b0:
  %v1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i32 0, i32 0)) #0
  %v2 = load <16 x i32>, <16 x i32>* @gVec0, align 64
  %v3 = load <32 x i32>, <32 x i32>* @gVec10, align 128
  %v4 = load i32, i32* @gi1, align 4
  %v5 = load float, float* @gf1, align 4
  %v6 = fpext float %v5 to double
  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)
  ret i32 0
}

declare i32 @printf(i8*, ...) #0
declare void @VarVec1(i8*, i32, ...) #0

attributes #0 = { nounwind "target-cpu"="hexagonv60" "target-features"="+hvxv60,+hvx-length64b" }