[llvm] [NFC][AMDGPU] Pre-commit crash test for OR with VOPC SDWA operand (PR #217384)

Arseniy Obolenskiy via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 19 09:46:34 PDT 2026


================
@@ -0,0 +1,13 @@
+; RUN: not --crash llc -mtriple=amdgpu10.30 < %s
+
+; VOPC SDWA has no dst_sel, so SIPeepholeSDWA crashes when it tries to fold
+; an OR with a VOPC SDWA operand assuming one exists.
+
+define i32 @or_of_vopc_sdwa(i32 %a, i32 %b) {
+  %ah = lshr i32 %a, 16
+  %bh = lshr i32 %b, 16
+  %sum = add i32 %ah, %bh
+  %mask = call i32 @llvm.amdgcn.icmp.i32.i32(i32 %ah, i32 %bh, i32 32)
----------------
aobolensk wrote:

Hm, then we need to re-consider the fix itself, because the fix (https://github.com/llvm/llvm-project/pull/217084) is specifically for this intrinsic 

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


More information about the llvm-commits mailing list