The tests in this directory all depend on the AMDGPU target being present so we can let opt infer the data layout. Reviewed By: arsenm Pull Request: https://github.com/llvm/llvm-project/pull/137924
21 lines
1.1 KiB
LLVM
21 lines
1.1 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 2
|
|
; RUN: opt -mtriple=amdgcn-amd-amdhsa -passes=load-store-vectorizer -S -o - %s | FileCheck %s
|
|
; RUN: opt -mtriple=amdgcn-amd-amdhsa -aa-pipeline=basic-aa -passes='function(load-store-vectorizer)' -S -o - %s | FileCheck %s
|
|
|
|
define { float, float } @f() {
|
|
; CHECK-LABEL: define { float, float } @f() {
|
|
; CHECK-NEXT: bb:
|
|
; CHECK-NEXT: [[L1:%.*]] = load float, ptr addrspace(7) null, align 4
|
|
; CHECK-NEXT: [[L2:%.*]] = load float, ptr addrspace(7) getelementptr (i8, ptr addrspace(7) null, i64 24), align 4
|
|
; CHECK-NEXT: [[IV1:%.*]] = insertvalue { float, float } zeroinitializer, float [[L1]], 0
|
|
; CHECK-NEXT: [[IV2:%.*]] = insertvalue { float, float } [[IV1]], float [[L2]], 1
|
|
; CHECK-NEXT: ret { float, float } [[IV2]]
|
|
;
|
|
bb:
|
|
%l1 = load float, ptr addrspace(7) null
|
|
%l2 = load float, ptr addrspace(7) getelementptr (i8, ptr addrspace(7) null, i64 24)
|
|
%iv1 = insertvalue { float, float } zeroinitializer, float %l1, 0
|
|
%iv2 = insertvalue { float, float } %iv1, float %l2, 1
|
|
ret { float, float } %iv2
|
|
}
|