Files
clang-p2996/llvm/test/CodeGen/X86/loadStore_vectorizer.ll
Nikita Popov 2f448bf509 [X86] Migrate tests to use opaque pointers (NFC)
Test updates were performed using:
https://gist.github.com/nikic/98357b71fd67756b0f064c9517b62a34

These are only the test updates where the test passed without
further modification (which is almost all of them, as the backend
is largely pointer-type agnostic).
2022-06-22 14:38:25 +02:00

25 lines
738 B
LLVM

; RUN: opt -mtriple x86_64-- -load-store-vectorizer < %s -S | FileCheck %s
%struct_render_pipeline_state = type opaque
define fastcc void @test1(ptr addrspace(1) %pso) unnamed_addr {
; CHECK-LABEL: @test1
; CHECK: load i16
; CHECK: load i16
entry:
%tmp1 = load i16, ptr addrspace(1) %pso, align 2
%sunkaddr51 = getelementptr i8, ptr addrspace(1) %pso, i64 6
%tmp4 = load i16, ptr addrspace(1) %sunkaddr51, align 2
ret void
}
define fastcc void @test2(ptr addrspace(1) %pso) unnamed_addr {
; CHECK-LABEL: @test2
; CHECK: load <2 x i16>
entry:
%tmp1 = load i16, ptr addrspace(1) %pso, align 2
%sunkaddr51 = getelementptr i8, ptr addrspace(1) %pso, i64 2
%tmp4 = load i16, ptr addrspace(1) %sunkaddr51, align 2
ret void
}