Skip to content

Commit 76b6a9f

Browse files
committed
Fix lower workshare tests
1 parent c3ff901 commit 76b6a9f

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

flang/test/Transforms/OpenMP/lower-workshare-alloca.mlir

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ func.func @wsfunc() {
2424
// CHECK-LABEL: func.func private @_workshare_copy_i32(
2525
// CHECK-SAME: %[[VAL_0:.*]]: !fir.ref<i32>,
2626
// CHECK-SAME: %[[VAL_1:.*]]: !fir.ref<i32>) {
27-
// CHECK: %[[VAL_2:.*]] = fir.load %[[VAL_0]] : !fir.ref<i32>
28-
// CHECK: fir.store %[[VAL_2]] to %[[VAL_1]] : !fir.ref<i32>
27+
// CHECK: %[[VAL_2:.*]] = fir.load %[[VAL_1]] : !fir.ref<i32>
28+
// CHECK: fir.store %[[VAL_2]] to %[[VAL_0]] : !fir.ref<i32>
2929
// CHECK: return
3030
// CHECK: }
3131

flang/test/Transforms/OpenMP/lower-workshare-todo-cfg-dom.mlir

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
// RUN: %not_todo_cmd fir-opt --lower-workshare --allow-unregistered-dialect %s 2>&1 | FileCheck %s
1+
// RUN: fir-opt --lower-workshare --allow-unregistered-dialect %s 2>&1 | FileCheck %s
22

3-
// CHECK: not yet implemented: omp workshare with unstructured control flow
3+
// CHECK: omp.parallel
4+
// CHECK-NEXT: omp.single
45

5-
// Check that the definition of %r dominates its use post-transform
6+
// TODO Check that the definition of %r dominates its use post-transform
67
func.func @wsfunc() {
78
%a = fir.alloca i32
89
omp.parallel {

flang/test/Transforms/OpenMP/lower-workshare-todo-cfg.mlir

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
// RUN: %not_todo_cmd fir-opt --lower-workshare --allow-unregistered-dialect %s 2>&1 | FileCheck %s
1+
// RUN: fir-opt --lower-workshare --allow-unregistered-dialect %s 2>&1 | FileCheck %s
22

3-
// CHECK: not yet implemented: omp workshare with unstructured control flow
3+
// CHECK: omp.parallel
4+
// CHECK-NEXT: omp.single
45

5-
// Check transforming a simple CFG
6+
// TODO Check transforming a simple CFG
67
func.func @wsfunc() {
78
%a = fir.alloca i32
89
omp.parallel {

0 commit comments

Comments
 (0)