[llvm] [SPIR-V][NFC] Require asserts on 2 tests (PR #75087)

via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 11 11:00:55 PST 2023


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

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

Author: Natalie Chouinard (sudonatalie)

<details>
<summary>Changes</summary>

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
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

``````````

</details>


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


More information about the llvm-commits mailing list