22 lines · plain
1; RUN: llc < %s -O0 -fast-isel-abort=1 -verify-machineinstrs -relocation-model=dynamic-no-pic -mtriple=thumbv7-apple-ios | FileCheck %s --check-prefix=THUMB2 3; Target-specific selector can't properly handle the double because it isn't4; being passed via a register, so the materialized arguments become dead code.5 6define i32 @main(i32 %argc, ptr %argv) nounwind {7entry:8; THUMB: main9 call void @printArgsNoRet(i32 1, float 0x4000CCCCC0000000, i8 signext 99, double 4.100000e+00)10; THUMB: bl _printArgsNoRet11; THUMB-NOT: ldr12; THUMB-NOT: vldr13; THUMB-NOT: vmov14; THUMB-NOT: ldr15; THUMB-NOT: sxtb16; THUMB: movs r0, #017; THUMB: pop18 ret i32 019}20 21declare void @printArgsNoRet(i32 %a1, float %a2, i8 signext %a3, double %a4)22