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]+}} 7 8%struct.__va_list_tag = type { i8*, i8*, i8* } 9 10; Function Attrs: nounwind 11define void @PrintInts(i32 %first, ...) #0 { 12entry: 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) 19 ret void 20} 21 22; Function Attrs: nounwind 23declare void @llvm.va_start(i8*) #1 24 25; Function Attrs: nounwind 26declare void @llvm.va_copy(i8*, i8*) #1 27 28; Function Attrs: nounwind 29define i32 @main() #0 { 30entry: 31 tail call void (i32, ...) @PrintInts(i32 undef, i32 20, i32 30, i32 40, i32 50, i32 0) 32 ret i32 0 33} 34 35attributes #0 = { nounwind } 36 37!llvm.ident = !{!0} 38 39!0 = !{!"Clang 3.1"} 40