1; RUN: llc -march=amdgcn -mattr=-promote-alloca -amdgpu-sroa=0 -verify-machineinstrs < %s | FileCheck -check-prefix=SI -check-prefix=FUNC %s 2; RUN: llc -march=amdgcn -mcpu=tonga -mattr=-promote-alloca -amdgpu-sroa=0 -verify-machineinstrs < %s | FileCheck -check-prefix=SI -check-prefix=FUNC %s 3 4; FUNC-LABEL: {{^}}load_i8_sext_private: 5; SI: buffer_load_sbyte v{{[0-9]+}}, v{{[0-9]+}}, s[{{[0-9]+:[0-9]+}}], s{{[0-9]+}} offen 6define void @load_i8_sext_private(i32 addrspace(1)* %out) { 7entry: 8 %tmp0 = alloca i8 9 %tmp1 = load i8, i8* %tmp0 10 %tmp2 = sext i8 %tmp1 to i32 11 store i32 %tmp2, i32 addrspace(1)* %out 12 ret void 13} 14 15; FUNC-LABEL: {{^}}load_i8_zext_private: 16; SI: buffer_load_ubyte v{{[0-9]+}}, v{{[0-9]+}}, s[{{[0-9]+:[0-9]+}}], s{{[0-9]+}} offen 17define void @load_i8_zext_private(i32 addrspace(1)* %out) { 18entry: 19 %tmp0 = alloca i8 20 %tmp1 = load i8, i8* %tmp0 21 %tmp2 = zext i8 %tmp1 to i32 22 store i32 %tmp2, i32 addrspace(1)* %out 23 ret void 24} 25 26; FUNC-LABEL: {{^}}load_i16_sext_private: 27; SI: buffer_load_sshort v{{[0-9]+}}, v{{[0-9]+}}, s[{{[0-9]+:[0-9]+}}], s{{[0-9]+}} offen 28define void @load_i16_sext_private(i32 addrspace(1)* %out) { 29entry: 30 %tmp0 = alloca i16 31 %tmp1 = load i16, i16* %tmp0 32 %tmp2 = sext i16 %tmp1 to i32 33 store i32 %tmp2, i32 addrspace(1)* %out 34 ret void 35} 36 37; FUNC-LABEL: {{^}}load_i16_zext_private: 38; SI: buffer_load_ushort v{{[0-9]+}}, v{{[0-9]+}}, s[{{[0-9]+:[0-9]+}}], s{{[0-9]+}} offen 39define void @load_i16_zext_private(i32 addrspace(1)* %out) { 40entry: 41 %tmp0 = alloca i16 42 %tmp1 = load volatile i16, i16* %tmp0 43 %tmp2 = zext i16 %tmp1 to i32 44 store i32 %tmp2, i32 addrspace(1)* %out 45 ret void 46} 47