1 ! RUN: bbc -emit-fir %s -o - | FileCheck %s
3 ! CHECK-LABEL: dprod_test
4 subroutine dprod_test (x
, y
, z
)
8 ! CHECK-DAG: %[[x:.*]] = fir.load %arg0
9 ! CHECK-DAG: %[[y:.*]] = fir.load %arg1
10 ! CHECK-DAG: %[[a:.*]] = fir.convert %[[x]] : (f32) -> f64
11 ! CHECK-DAG: %[[b:.*]] = fir.convert %[[y]] : (f32) -> f64
12 ! CHECK: %[[res:.*]] = arith.mulf %[[a]], %[[b]]
13 ! CHECK: fir.store %[[res]] to %arg2