22 lines · plain
1; RUN: llc -mtriple=mipsel < %s | FileCheck %s2 3@foo12.d4 = internal unnamed_addr global double 0.000000e+00, align 84 5define double @foo12(i32 %a, i32, i64 %b) nounwind {6entry:7; check that this transformation doesn't happen:8; (sint_to_fp (setcc x, y, cc)) -> (select_cc x, y, -1.0, 0.0,, cc)9;10; CHECK-NOT: # double -111 12 %tobool1 = icmp ne i32 %a, 013 %not.tobool = icmp ne i64 %b, 014 %tobool1. = or i1 %tobool1, %not.tobool15 %lor.ext = zext i1 %tobool1. to i3216 %conv = sitofp i32 %lor.ext to double17 %1 = load double, ptr @foo12.d4, align 818 %add = fadd double %conv, %119 store double %add, ptr @foo12.d4, align 820 ret double %add21}22