1 ; RUN: llc --march=cellspu %s -o - | FileCheck %s
3 ; Exercise the floating point comparison operators for f32:
5 declare double @fabs(double)
6 declare float @fabsf(float)
8 define i1 @fcmp_eq(float %arg1, float %arg2) {
11 %A = fcmp oeq float %arg1, %arg2
15 define i1 @fcmp_mag_eq(float %arg1, float %arg2) {
18 %1 = call float @fabsf(float %arg1)
19 %2 = call float @fabsf(float %arg2)
20 %3 = fcmp oeq float %1, %2
24 define i1 @test_ogt(float %a, float %b) {
27 %cmp = fcmp ogt float %a, %b
31 define i1 @test_ugt(float %a, float %b) {
34 %cmp = fcmp ugt float %a, %b