[PATCH] D107107: [flang] Fix all/any scalar unit tests
Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 29 15:08:32 PDT 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rG2ca8295c860f: Fix unit test checks for the scalar cases of all/any intrinsics. I (authored by Mark Leair <leairmark at gmail.com>).
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D107107/new/
https://reviews.llvm.org/D107107
Files:
flang/unittests/RuntimeGTest/Reduction.cpp
Index: flang/unittests/RuntimeGTest/Reduction.cpp
===================================================================
--- flang/unittests/RuntimeGTest/Reduction.cpp
+++ flang/unittests/RuntimeGTest/Reduction.cpp
@@ -306,7 +306,7 @@
Descriptor &scalarResult{statDesc0.descriptor()};
RTNAME(AllDim)(scalarResult, *array1, /*DIM=*/1, __FILE__, __LINE__);
EXPECT_EQ(scalarResult.rank(), 0);
- EXPECT_EQ(*scalarResult.ZeroBasedIndexedElement<std::int64_t>(0), 0);
+ EXPECT_EQ(*scalarResult.ZeroBasedIndexedElement<std::int32_t>(0), 0);
scalarResult.Destroy();
RTNAME(AnyDim)(res, *array, /*DIM=*/1, __FILE__, __LINE__);
EXPECT_EQ(res.rank(), 1);
@@ -328,7 +328,7 @@
// A scalar result occurs when you have a rank 1 array.
RTNAME(AnyDim)(scalarResult, *array1, /*DIM=*/1, __FILE__, __LINE__);
EXPECT_EQ(scalarResult.rank(), 0);
- EXPECT_EQ(*scalarResult.ZeroBasedIndexedElement<std::int64_t>(0), 1);
+ EXPECT_EQ(*scalarResult.ZeroBasedIndexedElement<std::int32_t>(0), 1);
scalarResult.Destroy();
RTNAME(ParityDim)(res, *array, /*DIM=*/1, __FILE__, __LINE__);
EXPECT_EQ(res.rank(), 1);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D107107.362896.patch
Type: text/x-patch
Size: 1119 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210729/1b004c9a/attachment.bin>
More information about the llvm-commits
mailing list