From 50b76399edf48dcbf36e73ef13e9049bf6b0c981 Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Mon, 18 Jul 2016 23:09:51 +0000 Subject: [PATCH] AMDGPU: Fix test name and broken CHECK-LABEL llvm-svn: 275928 --- ...amdgcn.groupstaticgroup.ll => llvm.amdgcn.groupstaticsize.ll} | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) rename llvm/test/CodeGen/AMDGPU/{llvm.amdgcn.groupstaticgroup.ll => llvm.amdgcn.groupstaticsize.ll} (92%) diff --git a/llvm/test/CodeGen/AMDGPU/llvm.amdgcn.groupstaticgroup.ll b/llvm/test/CodeGen/AMDGPU/llvm.amdgcn.groupstaticsize.ll similarity index 92% rename from llvm/test/CodeGen/AMDGPU/llvm.amdgcn.groupstaticgroup.ll rename to llvm/test/CodeGen/AMDGPU/llvm.amdgcn.groupstaticsize.ll index cf6d1ab..9090b08 100644 --- a/llvm/test/CodeGen/AMDGPU/llvm.amdgcn.groupstaticgroup.ll +++ b/llvm/test/CodeGen/AMDGPU/llvm.amdgcn.groupstaticsize.ll @@ -2,13 +2,12 @@ ; RUN: llc -mtriple=amdgcn--amdhsa -mcpu=kaveri -verify-machineinstrs < %s | FileCheck %s ; RUN: llc -mtriple=amdgcn--amdhsa -mcpu=fiji -verify-machineinstrs < %s | FileCheck %s - @lds0 = addrspace(3) global [512 x float] undef, align 4 @lds1 = addrspace(3) global [256 x float] undef, align 4 -; FUNC-LABEL: {{^}}groupstaticsize_test0: +; CHECK-LABEL: {{^}}groupstaticsize_test0: ; CHECK: s_movk_i32 s{{[0-9]+}}, 0x800 -define void @get_groupstaticsize_test0(float addrspace(1)* %out, i32 addrspace(1)* %lds_size) #0 { +define void @groupstaticsize_test0(float addrspace(1)* %out, i32 addrspace(1)* %lds_size) #0 { %tid.x = tail call i32 @llvm.amdgcn.workitem.id.x() #1 %idx.0 = add nsw i32 %tid.x, 64 %static_lds_size = call i32 @llvm.amdgcn.groupstaticsize() #1 @@ -20,8 +19,7 @@ define void @get_groupstaticsize_test0(float addrspace(1)* %out, i32 addrspace(1 ret void } - -; FUNC-LABEL: {{^}}groupstaticsize_test1: +; CHECK-LABEL: {{^}}groupstaticsize_test1: ; CHECK: s_movk_i32 s{{[0-9]+}}, 0xc00 define void @groupstaticsize_test1(float addrspace(1)* %out, i32 %cond, i32 addrspace(1)* %lds_size) { entry: @@ -48,7 +46,6 @@ endif: ; preds = %else, %if ret void } - declare i32 @llvm.amdgcn.groupstaticsize() #1 declare i32 @llvm.amdgcn.workitem.id.x() #1 -- 2.7.4