brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.6 KiB · 71eaecd Raw
47 lines · plain
1; RUN: llc -mtriple=amdgcn -mattr=-promote-alloca < %s | FileCheck -check-prefix=SI -check-prefix=FUNC %s2; RUN: llc -mtriple=amdgcn -mcpu=tonga -mattr=-promote-alloca < %s | FileCheck -check-prefix=SI -check-prefix=FUNC %s3 4; FUNC-LABEL: {{^}}load_i8_sext_private:5; SI: buffer_load_sbyte v{{[0-9]+}}, off, s[{{[0-9]+:[0-9]+}}], 0{{$}}6define amdgpu_kernel void @load_i8_sext_private(ptr addrspace(1) %out) {7entry:8  %tmp0 = alloca i8, addrspace(5)9  %tmp1 = load i8, ptr addrspace(5) %tmp010  %tmp2 = sext i8 %tmp1 to i3211  store i32 %tmp2, ptr addrspace(1) %out12  ret void13}14 15; FUNC-LABEL: {{^}}load_i8_zext_private:16; SI: buffer_load_ubyte v{{[0-9]+}}, off, s[{{[0-9]+:[0-9]+}}], 0{{$}}17define amdgpu_kernel void @load_i8_zext_private(ptr addrspace(1) %out) {18entry:19  %tmp0 = alloca i8, addrspace(5)20  %tmp1 = load i8, ptr addrspace(5) %tmp021  %tmp2 = zext i8 %tmp1 to i3222  store i32 %tmp2, ptr addrspace(1) %out23  ret void24}25 26; FUNC-LABEL: {{^}}load_i16_sext_private:27; SI: buffer_load_sshort v{{[0-9]+}}, off, s[{{[0-9]+:[0-9]+}}], 0{{$}}28define amdgpu_kernel void @load_i16_sext_private(ptr addrspace(1) %out) {29entry:30  %tmp0 = alloca i16, addrspace(5)31  %tmp1 = load i16, ptr addrspace(5) %tmp032  %tmp2 = sext i16 %tmp1 to i3233  store i32 %tmp2, ptr addrspace(1) %out34  ret void35}36 37; FUNC-LABEL: {{^}}load_i16_zext_private:38; SI: buffer_load_ushort v{{[0-9]+}}, off, s[{{[0-9]+:[0-9]+}}], 0 glc{{$}}39define amdgpu_kernel void @load_i16_zext_private(ptr addrspace(1) %out) {40entry:41  %tmp0 = alloca i16, addrspace(5)42  %tmp1 = load volatile i16, ptr addrspace(5) %tmp043  %tmp2 = zext i16 %tmp1 to i3244  store i32 %tmp2, ptr addrspace(1) %out45  ret void46}47