Files
Matt ArsenaultandClaude a2fc23854f AMDGPU: Migrate Analysis/Transforms tests to amdgpu subarch triple (3) (#208811)
Continue migrating command-line target spelling on RUN lines to the
folded amdgpu subarch triple form, covering more Transforms tests.

Co-Authored-By: Claude <noreply@anthropic.com> (Claude-Opus-4.8)
2026-07-10 22:27:44 +02:00

23 lines
666 B
LLVM

; RUN: opt -mtriple=amdgpu-amd-amdhsa -passes=load-store-vectorizer -S -o - %s | FileCheck %s
; CHECK-LABEL: @optnone(
; CHECK: store i32
; CHECK: store i32
define amdgpu_kernel void @optnone(ptr addrspace(1) %out) noinline optnone {
%out.gep.1 = getelementptr i32, ptr addrspace(1) %out, i32 1
store i32 123, ptr addrspace(1) %out.gep.1
store i32 456, ptr addrspace(1) %out
ret void
}
; CHECK-LABEL: @do_opt(
; CHECK: store <2 x i32>
define amdgpu_kernel void @do_opt(ptr addrspace(1) %out) {
%out.gep.1 = getelementptr i32, ptr addrspace(1) %out, i32 1
store i32 123, ptr addrspace(1) %out.gep.1
store i32 456, ptr addrspace(1) %out
ret void
}