Skip to content

Commit 97567ea

Browse files
committed
[flang] Adjust DSECNDS test to HLFIR and update FileCheck patterns
1 parent e5bc137 commit 97567ea

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

flang/test/Lower/Intrinsics/dsecnds.f90

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s
1+
! RUN: bbc -emit-hlfir %s -o - | FileCheck %s
22

33
! CHECK-LABEL: func.func @_QPuse_dsecnds(
44
! CHECK-SAME: %[[arg0:.*]]: !fir.ref<f64>
@@ -13,11 +13,10 @@ function use_dsecnds(refTime) result(elapsed)
1313
! CHECK: %[[FNAME8:.*]] = fir.convert %[[STRADDR]] : (!fir.ref<!fir.char<1,{{.*}}>>) -> !fir.ref<i8>
1414

1515
! Call the runtime DSECNDS with (refTime, file, line)
16-
! CHECK: %[[CALL:.*]] = fir.call @_FortranADsecnds(%[[arg0]], %[[FNAME8]], %[[LINE]]) {{.*}} : (!fir.ref<f64>, !fir.ref<i8>, i32) -> f64
16+
! CHECK: %[[CALL:.*]] = fir.call @_FortranADsecnds(%{{.*}}, %{{.*}}, %{{.*}}) {{.*}} : (!fir.ref<f64>, !fir.ref<i8>, i32) -> f64
1717

1818
! Guard: no illegal ref conversion
1919
! CHECK-NOT: fir.convert {{.*}} : (f64) -> !fir.ref<f64>
2020

2121
! Function returns f64
2222
! CHECK: return {{.*}} : f64
23-

0 commit comments

Comments
 (0)