1 ; RUN: llc -march=mipsel -mcpu=mips32 -relocation-model=pic < %s
2 ; RUN: llc -march=mipsel -mcpu=mips32 -pre-RA-sched=source -relocation-model=pic < %s | FileCheck %s --check-prefix=SOURCE-SCHED
3 ; RUN: llc -march=mipsel -mcpu=mips32r2 -relocation-model=pic < %s
4 ; RUN: llc -march=mipsel -mcpu=mips32r2 -pre-RA-sched=source -relocation-model=pic < %s | FileCheck %s --check-prefix=SOURCE-SCHED
6 @gf0 = external global float
7 @gf1 = external global float
8 @gd0 = external global double
9 @gd1 = external global double
11 define float @select_cc_f32(float %a, float %b) nounwind {
24 ; SOURCE-SCHED: c.olt.s
26 store float 0.000000e+00, float* @gf0, align 4
27 store float 1.000000e+00, float* @gf1, align 4
28 %cmp = fcmp olt float %a, %b
29 %conv = zext i1 %cmp to i32
30 %conv1 = sitofp i32 %conv to float
34 define double @select_cc_f64(double %a, double %b) nounwind {
36 store double 0.000000e+00, double* @gd0, align 8
37 store double 1.000000e+00, double* @gd1, align 8
38 %cmp = fcmp olt double %a, %b
39 %conv = zext i1 %cmp to i32
40 %conv1 = sitofp i32 %conv to double