Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPIR-V][NFC] Require asserts on 2 tests #75087

Merged
merged 1 commit into from
Dec 14, 2023

Conversation

sudonatalie
Copy link
Member

These tests currently fail on asserts, so adding a REQUIRES to make sure they're skipped on builds with asserts disabled.

Follow-up from #74849

These tests currently fail on asserts, so adding a REQUIRES to make sure
they're skipped on builds with asserts disabled.

Follow-up from llvm#74849
@llvmbot
Copy link
Collaborator

llvmbot commented Dec 11, 2023

@llvm/pr-subscribers-backend-spir-v

Author: Natalie Chouinard (sudonatalie)

Changes

These tests currently fail on asserts, so adding a REQUIRES to make sure they're skipped on builds with asserts disabled.

Follow-up from #74849


Full diff: https://github.com/llvm/llvm-project/pull/75087.diff

2 Files Affected:

  • (modified) llvm/test/CodeGen/SPIRV/opencl/device_execution/execute_block.ll (+1)
  • (modified) llvm/test/CodeGen/SPIRV/transcoding/BuildNDRange_2.ll (+1)
diff --git a/llvm/test/CodeGen/SPIRV/opencl/device_execution/execute_block.ll b/llvm/test/CodeGen/SPIRV/opencl/device_execution/execute_block.ll
index b001ce09f5679..1df72dc734dbd 100644
--- a/llvm/test/CodeGen/SPIRV/opencl/device_execution/execute_block.ll
+++ b/llvm/test/CodeGen/SPIRV/opencl/device_execution/execute_block.ll
@@ -2,6 +2,7 @@
 
 ; TODO(#60133): Requires updates following opaque pointer migration.
 ; XFAIL: *
+; REQUIRES: asserts
 
 ; CHECK: %[[#bool:]] = OpTypeBool
 ; CHECK: %[[#true:]] = OpConstantTrue %[[#bool]]
diff --git a/llvm/test/CodeGen/SPIRV/transcoding/BuildNDRange_2.ll b/llvm/test/CodeGen/SPIRV/transcoding/BuildNDRange_2.ll
index 75aa87f958d47..a2ae808259a32 100644
--- a/llvm/test/CodeGen/SPIRV/transcoding/BuildNDRange_2.ll
+++ b/llvm/test/CodeGen/SPIRV/transcoding/BuildNDRange_2.ll
@@ -22,6 +22,7 @@
 
 ; TODO(#60133): Requires updates following opaque pointer migration.
 ; XFAIL: *
+; REQUIRES: asserts
 
 ; CHECK-SPIRV-DAG:     %[[#LEN2_ID:]] = OpConstant %[[#]] 2
 ; CHECK-SPIRV-DAG:     %[[#LEN3_ID:]] = OpConstant %[[#]] 3

@sudonatalie
Copy link
Member Author

Since we merged #74849 , the SPIR-V Tests buildbot should pass now with or without this change, but adding this quick follow-up to make the test requirements more explicit anyways.

@sudonatalie sudonatalie merged commit e75f37f into llvm:main Dec 14, 2023
6 checks passed
@sudonatalie sudonatalie deleted the require-asserts branch December 14, 2023 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants