AMDGPU: Add missing runline to test
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 28 Apr 2021 23:36:09 +0000 (19:36 -0400)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 30 Apr 2021 00:59:22 +0000 (20:59 -0400)
There are checks for gfx908, but this wasn't actually running with it.

llvm/test/CodeGen/AMDGPU/agpr-csr.ll

index 708be53..57ab426 100644 (file)
@@ -1,4 +1,5 @@
 ; RUN: llc -march=amdgcn -mcpu=gfx90a -verify-machineinstrs < %s | FileCheck --check-prefixes=GCN,GFX90A %s
+; RUN: llc -march=amdgcn -mcpu=gfx908 -verify-machineinstrs < %s | FileCheck --check-prefixes=GCN,GFX908 %s
 
 ; GCN-LABEL: {{^}}func_empty:
 ; GCN-NOT: buffer_
@@ -33,11 +34,13 @@ define void @func_areg_32() #0 {
 }
 
 ; GCN-LABEL: {{^}}func_areg_33:
-; GFX908-NOT: buffer_
-; GCN-NOT:    v_accvgpr
+; GCN-NOT: a32
+; GFX90A: buffer_store_dword a32, off, s[0:3], s32 ; 4-byte Folded Spill
+; GCN-NOT: a32
 ; GCN:        use agpr32
-; GFX908-NOT: buffer_
-; GCN-NOT:    v_accvgpr
+; GCN-NOT: a32
+; GFX90A: buffer_load_dword a32, off, s[0:3], s32 ; 4-byte Folded Reload
+; GCN-NOT: a32
 ; GCN:        s_setpc_b64
 define void @func_areg_33() #0 {
   call void asm sideeffect "; use agpr32", "~{a32}" ()