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 { ptr, ptr, ptr }
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 call void @llvm.va_start(ptr %vl)
16 call void @llvm.va_copy(ptr %vl_count, ptr %vl)
20 ; Function Attrs: nounwind
21 declare void @llvm.va_start(ptr) #1
23 ; Function Attrs: nounwind
24 declare void @llvm.va_copy(ptr, ptr) #1
26 ; Function Attrs: nounwind
27 define i32 @main() #0 {
29 tail call void (i32, ...) @PrintInts(i32 undef, i32 20, i32 30, i32 40, i32 50, i32 0)
33 attributes #0 = { nounwind }