brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · 532fc00 Raw
44 lines · plain
1; RUN: llc -mtriple=mipsel -mcpu=mips32 -relocation-model=pic < %s2; RUN: llc -mtriple=mipsel -mcpu=mips32 -pre-RA-sched=source -relocation-model=pic < %s | FileCheck %s --check-prefix=SOURCE-SCHED3; RUN: llc -mtriple=mipsel -mcpu=mips32r2 -relocation-model=pic < %s4; RUN: llc -mtriple=mipsel -mcpu=mips32r2 -pre-RA-sched=source -relocation-model=pic < %s | FileCheck %s --check-prefix=SOURCE-SCHED5 6@gf0 = external global float7@gf1 = external global float8@gd0 = external global double9@gd1 = external global double10 11define float @select_cc_f32(float %a, float %b) nounwind {12entry:13; SOURCE-SCHED: lui14; SOURCE-SCHED: addiu15; SOURCE-SCHED: addu16; SOURCE-SCHED: lw17; SOURCE-SCHED: sw18; SOURCE-SCHED: lw19; SOURCE-SCHED: lui20; SOURCE-SCHED: sw21; SOURCE-SCHED: lw22; SOURCE-SCHED: lwc123; SOURCE-SCHED: mtc124; SOURCE-SCHED: c.olt.s25; SOURCE-SCHED: jr26  store float 0.000000e+00, ptr @gf0, align 427  store float 1.000000e+00, ptr @gf1, align 428  %cmp = fcmp olt float %a, %b29  %conv = zext i1 %cmp to i3230  %conv1 = sitofp i32 %conv to float31  ret float %conv132}33 34define double @select_cc_f64(double %a, double %b) nounwind {35entry:36  store double 0.000000e+00, ptr @gd0, align 837  store double 1.000000e+00, ptr @gd1, align 838  %cmp = fcmp olt double %a, %b39  %conv = zext i1 %cmp to i3240  %conv1 = sitofp i32 %conv to double41  ret double %conv142}43 44