mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
3a9c279a90
Along the lines of D77454 and D79968. Unlike loads and stores, the default alignment is getPrefTypeAlign, to match the existing handling in various places, including SelectionDAG and InstCombine. Differential Revision: https://reviews.llvm.org/D80044
13 lines
389 B
LLVM
13 lines
389 B
LLVM
; RUN: llvm-as -data-layout=A5 < %s | llvm-dis | FileCheck %s
|
|
; RUN: llc -mtriple amdgcn-amd-amdhsa < %s
|
|
; RUN: llvm-as -data-layout=A5 < %s | llc -mtriple amdgcn-amd-amdhsa
|
|
; RUN: opt -data-layout=A5 -S < %s
|
|
; RUN: llvm-as -data-layout=A5 < %s | opt -S
|
|
|
|
; CHECK: %tmp = alloca i32, align 4, addrspace(5)
|
|
define amdgpu_kernel void @test() {
|
|
%tmp = alloca i32, addrspace(5)
|
|
ret void
|
|
}
|
|
|