From: Matt Arsenault Date: Fri, 3 Feb 2017 20:49:48 +0000 (+0000) Subject: AMDGPU: Cleanup scalar_to_vector test X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ee8a0f044d4f4ed0d153f4bf5b92b421716951df;p=llvm AMDGPU: Cleanup scalar_to_vector test git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@294038 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGen/AMDGPU/scalar_to_vector.ll b/test/CodeGen/AMDGPU/scalar_to_vector.ll index 32df16778a9..f8f21af5bda 100644 --- a/test/CodeGen/AMDGPU/scalar_to_vector.ll +++ b/test/CodeGen/AMDGPU/scalar_to_vector.ll @@ -1,14 +1,14 @@ -; RUN: llc -march=amdgcn -verify-machineinstrs < %s | FileCheck -check-prefix=SI -check-prefix=FUNC %s -; RUN: llc -march=amdgcn -mcpu=tonga -mattr=-flat-for-global -verify-machineinstrs < %s | FileCheck -check-prefix=SI -check-prefix=FUNC %s +; RUN: llc -march=amdgcn -mattr=-flat-for-global -verify-machineinstrs < %s | FileCheck -check-prefix=GCN -check-prefix=SI %s +; RUN: llc -march=amdgcn -mcpu=tonga -mattr=-flat-for-global -verify-machineinstrs < %s | FileCheck -check-prefix=GCN -check-prefix=VI %s ; XXX - Why the packing? -; FUNC-LABEL: {{^}}scalar_to_vector_v2i32: -; SI: buffer_load_dword [[VAL:v[0-9]+]], -; SI: v_lshrrev_b32_e32 [[SHR:v[0-9]+]], 16, [[VAL]] -; SI: v_lshlrev_b32_e32 [[SHL:v[0-9]+]], 16, [[SHR]] -; SI: v_or_b32_e32 v[[OR:[0-9]+]], [[SHL]], [[SHR]] -; SI: v_mov_b32_e32 v[[COPY:[0-9]+]], v[[OR]] -; SI: buffer_store_dwordx2 v{{\[}}[[OR]]:[[COPY]]{{\]}} +; GCN-LABEL: {{^}}scalar_to_vector_v2i32: +; GCN: buffer_load_dword [[VAL:v[0-9]+]], +; GCN: v_lshrrev_b32_e32 [[SHR:v[0-9]+]], 16, [[VAL]] +; GCN: v_lshlrev_b32_e32 [[SHL:v[0-9]+]], 16, [[SHR]] +; GCN: v_or_b32_e32 v[[OR:[0-9]+]], [[SHL]], [[SHR]] +; GCN: v_mov_b32_e32 v[[COPY:[0-9]+]], v[[OR]] +; GCN: buffer_store_dwordx2 v{{\[}}[[OR]]:[[COPY]]{{\]}} define void @scalar_to_vector_v2i32(<4 x i16> addrspace(1)* %out, i32 addrspace(1)* %in) nounwind { %tmp1 = load i32, i32 addrspace(1)* %in, align 4 %bc = bitcast i32 %tmp1 to <2 x i16> @@ -17,10 +17,10 @@ define void @scalar_to_vector_v2i32(<4 x i16> addrspace(1)* %out, i32 addrspace( ret void } -; FUNC-LABEL: {{^}}scalar_to_vector_v2f32: -; SI: buffer_load_dword [[VAL:v[0-9]+]], -; SI: v_lshrrev_b32_e32 [[RESULT:v[0-9]+]], 16, [[VAL]] -; SI: buffer_store_dwordx2 +; GCN-LABEL: {{^}}scalar_to_vector_v2f32: +; GCN: buffer_load_dword [[VAL:v[0-9]+]], +; GCN: v_lshrrev_b32_e32 [[RESULT:v[0-9]+]], 16, [[VAL]] +; GCN: buffer_store_dwordx2 define void @scalar_to_vector_v2f32(<4 x i16> addrspace(1)* %out, float addrspace(1)* %in) nounwind { %tmp1 = load float, float addrspace(1)* %in, align 4 %bc = bitcast float %tmp1 to <2 x i16>