1; RUN: llc -O0 -stop-after=irtranslator -global-isel -verify-machineinstrs %s -o - 2>&1 | FileCheck %s 2 3target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128" 4target triple = "aarch64-apple-ios9.0" 5 6; CHECK-LABEL: name: test_varargs 7; CHECK: [[ANSWER:%[0-9]+]]:_(s32) = G_CONSTANT i32 42 8; CHECK: [[D_ONE:%[0-9]+]]:_(s64) = G_FCONSTANT double 1.000000e+00 9; CHECK: [[TWELVE:%[0-9]+]]:_(s64) = G_CONSTANT i64 12 10; CHECK: [[THREE:%[0-9]+]]:_(s8) = G_CONSTANT i8 3 11; CHECK: [[ONE:%[0-9]+]]:_(s16) = G_CONSTANT i16 1 12; CHECK: [[FOUR:%[0-9]+]]:_(s32) = G_CONSTANT i32 4 13; CHECK: [[F_ONE:%[0-9]+]]:_(s32) = G_FCONSTANT float 1.000000e+00 14; CHECK: [[TWO:%[0-9]+]]:_(s64) = G_FCONSTANT double 2.000000e+00 15 16; CHECK: $w0 = COPY [[ANSWER]] 17; CHECK: $d0 = COPY [[D_ONE]] 18; CHECK: $x1 = COPY [[TWELVE]] 19; CHECK: [[THREE_EXT:%[0-9]+]]:_(s64) = G_ANYEXT [[THREE]] 20; CHECK: G_STORE [[THREE_EXT]](s64), {{%[0-9]+}}(p0) :: (store 8 into stack, align 0) 21; CHECK: [[ONE_EXT:%[0-9]+]]:_(s64) = G_ANYEXT [[ONE]] 22; CHECK: G_STORE [[ONE_EXT]](s64), {{%[0-9]+}}(p0) :: (store 8 into stack + 8, align 0) 23; CHECK: [[FOUR_EXT:%[0-9]+]]:_(s64) = G_ANYEXT [[FOUR]] 24; CHECK: G_STORE [[FOUR_EXT]](s64), {{%[0-9]+}}(p0) :: (store 8 into stack + 16, align 0) 25; CHECK: G_STORE [[F_ONE]](s32), {{%[0-9]+}}(p0) :: (store 4 into stack + 24, align 0) 26; CHECK: G_STORE [[TWO]](s64), {{%[0-9]+}}(p0) :: (store 8 into stack + 32, align 0) 27declare void @varargs(i32, double, i64, ...) 28define void @test_varargs() { 29 call void(i32, double, i64, ...) @varargs(i32 42, double 1.0, i64 12, i8 3, i16 1, i32 4, float 1.0, double 2.0) 30 ret void 31} 32