Skip to content

Commit 91bddb9

Browse files
[SYCL][NFC] Move Regression/vec_logical_ops E2E test (#12434)
The test is way too simple to require execution on an actual device. Therefore, moved it to regular LIT tests and restricted it to `-fsyntax-only` mode. Moreover, the test lacked checks for `fp64` aspect which caused failures on devices that don't support it.
1 parent 4644e85 commit 91bddb9

File tree

2 files changed

+12
-17
lines changed

2 files changed

+12
-17
lines changed

sycl/test-e2e/Regression/vec_logical_ops.cpp

Lines changed: 0 additions & 17 deletions
This file was deleted.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// RUN: %clangxx -fsycl -fsyntax-only %s
2+
// RUN: %clangxx -fsycl -fpreview-breaking-changes -fsyntax-only %s
3+
4+
#include <sycl/sycl.hpp>
5+
6+
int main() {
7+
auto testVec1 = sycl::vec<double, 16>(static_cast<double>(1));
8+
auto testVec2 = sycl::vec<double, 16>(static_cast<double>(2));
9+
10+
sycl::vec<std::int64_t, 16> resVec1 = testVec1 || testVec2;
11+
sycl::vec<std::int64_t, 16> resVec2 = testVec1 && testVec2;
12+
}

0 commit comments

Comments
 (0)