[llvm] [SandboxVec][BundleVec][NFC] Precommit test (PR #223880)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 15 16:50:59 PDT 2026
https://github.com/vporpo created https://github.com/llvm/llvm-project/pull/223880
None
>From 3b6aaa6f5d892611b6fb8489da42de84e471d644 Mon Sep 17 00:00:00 2001
From: Vasileios Porpodas <vasileios.porpodas at amd.com>
Date: Tue, 15 Sep 2026 20:29:13 +0000
Subject: [PATCH] [SandboxVec][BundleVec][NFC] Precommit test
---
.../Passes/BundleVec/unsupported_alignment.ll | 20 +++++++++++++++++++
1 file changed, 20 insertions(+)
create mode 100644 llvm/test/Transforms/SandboxVectorizer/Passes/BundleVec/unsupported_alignment.ll
diff --git a/llvm/test/Transforms/SandboxVectorizer/Passes/BundleVec/unsupported_alignment.ll b/llvm/test/Transforms/SandboxVectorizer/Passes/BundleVec/unsupported_alignment.ll
new file mode 100644
index 0000000000000..c6c1e0e2e0156
--- /dev/null
+++ b/llvm/test/Transforms/SandboxVectorizer/Passes/BundleVec/unsupported_alignment.ll
@@ -0,0 +1,20 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 6
+; RUN: opt -mattr=-unaligned-access-mode,+unaligned-scratch-access -mtriple=amdgpu7.01-- -passes=sandbox-vectorizer -sbvec-passes="seed-collection<bundle-vec(bottom-up)>" %s -S | FileCheck %s
+
+; We should not be vectorizing this code because a <2 x i8> store with align 1
+; is not supported by the target.
+define void @unsupported_alignment(ptr %ptr0, i32 %offset) {
+; CHECK-LABEL: define void @unsupported_alignment(
+; CHECK-SAME: ptr [[PTR0:%.*]], i32 [[OFFSET:%.*]]) #[[ATTR0:[0-9]+]] {
+; CHECK-NEXT: store <2 x i8> <i8 0, i8 1>, ptr [[PTR0]], align 1, !sandboxvec [[META0:![0-9]+]]
+; CHECK-NEXT: ret void
+;
+ %ptr1 = getelementptr i8, ptr %ptr0, i32 1
+ store i8 0, ptr %ptr0, align 1
+ store i8 1, ptr %ptr1, align 1
+ ret void
+}
+
+;.
+; CHECK: [[META0]] = distinct !{!"sandboxregion"}
+;.
More information about the llvm-commits
mailing list