brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.5 KiB · ed3dcad Raw
50 lines · plain
1; RUN: llc < %s -mcpu=generic -mtriple=i686-- -mattr=+sse | FileCheck %s2 3define float @chainfail1(ptr nocapture %a, ptr nocapture %b, i32 %x, i32 %y, ptr nocapture %f) nounwind uwtable noinline ssp {4entry:5  %tmp1 = load i64, ptr %a, align 86; Insure x87 ops are properly chained, order preserved.7; CHECK: fildll8  %conv = sitofp i64 %tmp1 to float9; CHECK: fstps10  store float %conv, ptr %f, align 411; CHECK: idivl12  %div = sdiv i32 %x, %y13  %conv5 = sext i32 %div to i6414  store i64 %conv5, ptr %b, align 815  ret float %conv16}17 18define float @chainfail2(ptr nocapture %a, ptr nocapture %b, i32 %x, i32 %y, ptr nocapture %f) nounwind uwtable noinline ssp {19entry:20; CHECK: movl $0,21  store i64 0, ptr %b, align 822  %mul = mul nsw i32 %y, %x23  %sub = add nsw i32 %mul, -124  %idxprom = sext i32 %sub to i6425  %arrayidx = getelementptr inbounds i64, ptr %a, i64 %idxprom26  %tmp4 = load i64, ptr %arrayidx, align 827; CHECK: fildll28  %conv = sitofp i64 %tmp4 to float29  store float %conv, ptr %f, align 430  ret float %conv31}32 33define void @PR17495(i1 %arg) {34entry:35  br i1 %arg, label %while.end, label %while.body36 37while.body:                                       ; preds = %while.body, %entry38  %x.1.copyload = load i24, ptr undef, align 139  %conv = sitofp i24 %x.1.copyload to float40  %div = fmul float %conv, 0x3E8000000000000041  store float %div, ptr undef, align 442  br i1 false, label %while.end, label %while.body43 44while.end:                                        ; preds = %while.body, %entry45  ret void46 47; CHECK-LABEL: @PR1749548; CHECK-NOT: fildll49}50