[Flang][OpenMP] Update test case to track an issue
authorKavitha Natarajan <kavitha.natarajan@amd.com>
Wed, 29 Mar 2023 18:40:16 +0000 (00:10 +0530)
committerKavitha Natarajan <kavitha.natarajan@amd.com>
Wed, 29 Mar 2023 18:46:11 +0000 (00:16 +0530)
Adding CHECK-NOT for the MAX intrinsic implementation for which
reduction operation is not generated. Issue #61808 created to
track the same.

flang/test/Lower/OpenMP/wsloop-reduction-max.f90

index 44ea054..433b1d6 100644 (file)
@@ -67,6 +67,7 @@ subroutine reduction_max_real(y)
   !$omp parallel
   !$omp do reduction(max:x)
   do i=1, 100
+    !CHECK-NOT: omp.reduction
     if (y(i) .gt. x) x = y(i)
   end do
   !$omp end do