[llvm-branch-commits] [LLVM] Make crashing tests with not use --crash (PR #174297)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Sat Jan 3 14:50:10 PST 2026
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-backend-spir-v
Author: Aiden Grossman (boomanaiden154)
<details>
<summary>Changes</summary>
This makes them compliant with the behavior from prior to the internal
shell. A future PR will fix the behavior with the internal shell so that
it behaves properly.
---
Full diff: https://github.com/llvm/llvm-project/pull/174297.diff
5 Files Affected:
- (modified) llvm/test/CodeGen/SPIRV/ga-interp-func-interp.ll (+2-1)
- (modified) llvm/test/CodeGen/SPIRV/ga-interp-func-noninterp.ll (+2-1)
- (modified) llvm/test/CodeGen/SPIRV/ga-inttoptr.ll (+1-1)
- (modified) llvm/test/CodeGen/SPIRV/ga-noninterp-func-interp.ll (+2-1)
- (modified) llvm/test/CodeGen/SPIRV/hlsl-resources/UniqueImplicitBindingNumber.ll (+2-1)
``````````diff
diff --git a/llvm/test/CodeGen/SPIRV/ga-interp-func-interp.ll b/llvm/test/CodeGen/SPIRV/ga-interp-func-interp.ll
index 6903cf9f87881..525c7dabf5f4a 100644
--- a/llvm/test/CodeGen/SPIRV/ga-interp-func-interp.ll
+++ b/llvm/test/CodeGen/SPIRV/ga-interp-func-interp.ll
@@ -1,4 +1,5 @@
-; RUN: not llc -O0 -mtriple=spirv64-unknown-unknown < %s 2>&1 | FileCheck %s
+; REQUIRES: asserts
+; RUN: not --crash llc -O0 -mtriple=spirv64-unknown-unknown < %s 2>&1 | FileCheck %s
; CHECK: unable to translate instruction: call (in function: kernel)
; Interposable aliases are not yet supported.
diff --git a/llvm/test/CodeGen/SPIRV/ga-interp-func-noninterp.ll b/llvm/test/CodeGen/SPIRV/ga-interp-func-noninterp.ll
index a7b5c061a6c4f..9487b0a551904 100644
--- a/llvm/test/CodeGen/SPIRV/ga-interp-func-noninterp.ll
+++ b/llvm/test/CodeGen/SPIRV/ga-interp-func-noninterp.ll
@@ -1,4 +1,5 @@
-; RUN: not llc -O0 -mtriple=spirv64-unknown-unknown < %s 2>&1 | FileCheck %s
+; REQUIRES: asserts
+; RUN: not --crash llc -O0 -mtriple=spirv64-unknown-unknown < %s 2>&1 | FileCheck %s
; CHECK: unable to translate instruction: call (in function: kernel)
; Interposable aliases are not yet supported.
diff --git a/llvm/test/CodeGen/SPIRV/ga-inttoptr.ll b/llvm/test/CodeGen/SPIRV/ga-inttoptr.ll
index c8cb82c2460fc..d3aa054512985 100644
--- a/llvm/test/CodeGen/SPIRV/ga-inttoptr.ll
+++ b/llvm/test/CodeGen/SPIRV/ga-inttoptr.ll
@@ -1,5 +1,5 @@
; REQUIRES: asserts
-; RUN: not llc -O0 -mtriple=spirv64-unknown-unknown < %s 2>&1 | FileCheck %s
+; RUN: not --crash llc -O0 -mtriple=spirv64-unknown-unknown < %s 2>&1 | FileCheck %s
; CHECK: argument of incompatible type!
; The BE does not support non-global-object aliases
diff --git a/llvm/test/CodeGen/SPIRV/ga-noninterp-func-interp.ll b/llvm/test/CodeGen/SPIRV/ga-noninterp-func-interp.ll
index 744f58b707a3a..17403806b19af 100644
--- a/llvm/test/CodeGen/SPIRV/ga-noninterp-func-interp.ll
+++ b/llvm/test/CodeGen/SPIRV/ga-noninterp-func-interp.ll
@@ -1,4 +1,5 @@
-; RUN: not llc -O0 -mtriple=spirv64-unknown-unknown < %s 2>&1 | FileCheck %s
+; REQUIRES: asserts
+; RUN: not --crash llc -O0 -mtriple=spirv64-unknown-unknown < %s 2>&1 | FileCheck %s
; CHECK: unable to translate instruction: call (in function: kernel)
@bar_alias = alias void (), ptr addrspace(4) @bar
diff --git a/llvm/test/CodeGen/SPIRV/hlsl-resources/UniqueImplicitBindingNumber.ll b/llvm/test/CodeGen/SPIRV/hlsl-resources/UniqueImplicitBindingNumber.ll
index c968c99e4d58a..53211a7704cf4 100644
--- a/llvm/test/CodeGen/SPIRV/hlsl-resources/UniqueImplicitBindingNumber.ll
+++ b/llvm/test/CodeGen/SPIRV/hlsl-resources/UniqueImplicitBindingNumber.ll
@@ -1,4 +1,5 @@
-; RUN: not llc -O0 -mtriple=spirv32-unknown-unknown %s -o %t.spvt 2>&1 | FileCheck %s --check-prefix=CHECK-ERROR
+; REQUIRES: asserts
+; RUN: not --crash llc -O0 -mtriple=spirv32-unknown-unknown %s -o %t.spvt 2>&1 | FileCheck %s --check-prefix=CHECK-ERROR
; CHECK-ERROR: LLVM ERROR: Implicit binding calls with the same order ID must have the same descriptor set
@.str = private unnamed_addr constant [2 x i8] c"b\00", align 1
``````````
</details>
https://github.com/llvm/llvm-project/pull/174297
More information about the llvm-branch-commits
mailing list