Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

[SYCL][InvokeSIMD] Delete ret size mismatch test #1679

Merged
merged 3 commits into from
Mar 25, 2023

Conversation

sarnex
Copy link

@sarnex sarnex commented Mar 22, 2023

It's moved to the compiler repo.

Signed-off-by: Sarnie, Nick <nick.sarnie@intel.com>
@sarnex
Copy link
Author

sarnex commented Mar 22, 2023

Compiler PR: intel/llvm#8741

Signed-off-by: Sarnie, Nick <nick.sarnie@intel.com>
@sarnex
Copy link
Author

sarnex commented Mar 23, 2023

/verify with intel/llvm#8741

@sarnex sarnex marked this pull request as ready for review March 23, 2023 17:02
@sarnex sarnex requested a review from a team as a code owner March 23, 2023 17:02
// Check that full compilation works:
// RUN: %clangxx -fsycl -fno-sycl-device-code-split-esimd -Xclang -fsycl-allow-func-ptr %s -o %t.out | FileCheck %s
// RUN: !%clangxx -fsycl -fno-sycl-device-code-split-esimd -Xclang -fsycl-allow-func-ptr %s -o %t.out 2>&1 | FileCheck %s

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does this "!" mean here?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Usually if clang errors, the test will fail because it expects exit code 0. Here an error is thrown, so the exit code is non-0, so the test would fail. '!' makes the non-zero exit code a zero, similar to !bool in cpp.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I thought that ! was added to negate the status returned by clang++, but doubted and decided to ask as it is not typical solution.
Typical solution is to use -fsyntax-only and -verify options like here:
https://github.com/intel/llvm/blob/sycl/clang/test/SemaSYCL/esimd-globals-in-sycl-context.cpp#L1
https://github.com/intel/llvm/blob/sycl/clang/test/SemaSYCL/esimd-globals-in-sycl-context.cpp#L18

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah good point, i didnt originally write this test so i didn't consider doing compile only. i responded more in my other comment.

Signed-off-by: Sarnie, Nick <nick.sarnie@intel.com>
@sarnex sarnex changed the title [SYCL][InvokeSIMD] Enable ret size mismatch test [SYCL][InvokeSIMD] Delete ret size mismatch test Mar 24, 2023
sarnex added a commit to sarnex/llvm that referenced this pull request Mar 24, 2023
Based on intel/llvm-test-suite#1679

Signed-off-by: Sarnie, Nick <nick.sarnie@intel.com>
v-klochkov pushed a commit to intel/llvm that referenced this pull request Mar 25, 2023
@v-klochkov
Copy link

The tests failed in CI are unrelated to the test being deleted in this PR:
[2023-03-24T22:42:01.744Z] SYCL :: Basic/accessor/accessor.cpp
[2023-03-24T22:42:01.744Z] SYCL :: Plugin/level_zero_imm_cmdlist_per_thread.cpp

@v-klochkov v-klochkov merged commit 8e02984 into intel:intel Mar 25, 2023
aelovikov-intel pushed a commit to aelovikov-intel/llvm that referenced this pull request Mar 27, 2023
…te#1679)

Signed-off-by: Sarnie, Nick <nick.sarnie@intel.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants