1 ; RUN: llc -march=hexagon -mcpu=hexagonv62 -mtriple=hexagon-unknown-linux-musl < %s | FileCheck %s
2 ; CHECK-LABEL: PrintInts:
3 ; CHECK-DAG: memw{{.*}} = r{{[0-9]+}}
4 ; CHECK-DAG: memw{{.*}} = r{{[0-9]+}}
5 ; CHECK-DAG: r{{[0-9]+}}:{{[0-9]+}} = memd{{.*}}
6 ; CHECK-DAG: memd{{.*}} = r{{[0-9]+}}:{{[0-9]+}}
8 %struct.__va_list_tag = type { i8*, i8*, i8* }
10 ; Function Attrs: nounwind
11 define void @PrintInts(i32 %first, ...) #0 {
13 %vl = alloca [1 x %struct.__va_list_tag], align 8
14 %vl_count = alloca [1 x %struct.__va_list_tag], align 8
15 %arraydecay1 = bitcast [1 x %struct.__va_list_tag]* %vl to i8*
16 call void @llvm.va_start(i8* %arraydecay1)
17 %0 = bitcast [1 x %struct.__va_list_tag]* %vl_count to i8*
18 call void @llvm.va_copy(i8* %0, i8* %arraydecay1)
22 ; Function Attrs: nounwind
23 declare void @llvm.va_start(i8*) #1
25 ; Function Attrs: nounwind
26 declare void @llvm.va_copy(i8*, i8*) #1
28 ; Function Attrs: nounwind
29 define i32 @main() #0 {
31 tail call void (i32, ...) @PrintInts(i32 undef, i32 20, i32 30, i32 40, i32 50, i32 0)
35 attributes #0 = { nounwind }