brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · d494701 Raw
29 lines · plain
1;Check 5.5 Parameter Passing --> Stage C --> C.1.cp statement for VA functions.2;Note: There are no VFP CPRCs in a variadic procedure.3;Check that after %C was sent to stack, we set Next Core Register Number to R4.4 5;This test is simplified IR version of6;test-suite/SingleSource/UnitTests/2002-05-02-ManyArguments.c7 8;RUN: llc -mtriple=thumbv7-linux-gnueabihf -float-abi=hard < %s | FileCheck %s9 10@.str = private unnamed_addr constant [13 x i8] c"%d %d %f %i\0A\00", align 111 12;CHECK-LABEL: printfn:13define void @printfn(i32 %a, i16 signext %b, double %C, i8 signext %E) {14entry:15  %conv = sext i16 %b to i3216  %conv1 = sext i8 %E to i3217  %call = tail call i32 (ptr, ...) @printf(18	ptr @.str, ; --> R019        i32 %a,                                          ; --> R120        i32 %conv,                                       ; --> R221        double %C,                                       ; --> SP, NCRN := R422;CHECK:    str r2, [sp, #8]                                                                     23        i32 %conv1)                                      ; --> SP+824  ret void25}26 27declare i32 @printf(ptr nocapture, ...)28 29