brintos

brintos / llvm-project-archived public Read only

0
0
Text · 641 B · 2bd00bb Raw
18 lines · plain
1// RUN: fir-opt %s | tco --target=x86_64-unknown-linux-gnu | FileCheck %s2 3// CHECK-LABEL: define i1 @cmp3(<2 x float> %0, <2 x float> %1)4func.func @cmp3(%a : complex<f32>, %b : complex<f32>) -> i1 {5  // CHECK: fcmp oeq float6  %1 = fir.cmpc "oeq", %a, %b : complex<f32>7  return %1 : i18}9 10// CHECK-LABEL: define { double, double } @neg3(double %0, double %1)11func.func @neg3(%a : complex<f64>) -> complex<f64> {12  // CHECK: %[[g2:.*]] = insertvalue { double, double } %13  // CHECK: %[[r3:.*]] = fneg double14  // CHECK: insertvalue { double, double } %[[g2]], double %[[r3]]15  %1 = fir.negc %a : complex<f64>16  return %1 : complex<f64>17}18