]> granicus.if.org Git - llvm/commitdiff
AMDGPU: Reduce number of registers in test
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 14 Aug 2019 19:09:48 +0000 (19:09 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 14 Aug 2019 19:09:48 +0000 (19:09 +0000)
Once the failure this is testing is fixed, this would fail due to
using too many registers.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368901 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/AMDGPU/branch-relax-spill.ll

index c81128646a8a53203711ab718d459187defea578..e4d3df91d59de7fad6558e40f9864b697c6b3128 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: not llc -march=amdgcn -verify-machineinstrs  -amdgpu-s-branch-bits=4 < %s 2>&1 | FileCheck -check-prefix=FAIL %s
+; RUN: not llc -march=amdgcn -mcpu=tahiti -verify-machineinstrs  -amdgpu-s-branch-bits=4 < %s 2>&1 | FileCheck -check-prefix=FAIL %s
 
 ; FIXME: This should be able to compile, but requires inserting an
 ; extra block to restore the scavenged register.
@@ -109,8 +109,6 @@ entry:
   %sgpr99 = tail call i32 asm sideeffect "s_mov_b32 s99, 0", "={s99}"() #0
   %sgpr100 = tail call i32 asm sideeffect "s_mov_b32 s100, 0", "={s100}"() #0
   %sgpr101 = tail call i32 asm sideeffect "s_mov_b32 s101, 0", "={s101}"() #0
-  %sgpr102 = tail call i32 asm sideeffect "s_mov_b32 s102, 0", "={s102}"() #0
-  %sgpr103 = tail call i32 asm sideeffect "s_mov_b32 s103, 0", "={s103}"() #0
   %vcc_lo = tail call i32 asm sideeffect "s_mov_b32 $0, 0", "={vcc_lo}"() #0
   %vcc_hi = tail call i32 asm sideeffect "s_mov_b32 $0, 0", "={vcc_hi}"() #0
   %cmp = icmp eq i32 %cnd, 0
@@ -228,8 +226,6 @@ bb3:
   tail call void asm sideeffect "; reg use $0", "{s99}"(i32 %sgpr99) #0
   tail call void asm sideeffect "; reg use $0", "{s100}"(i32 %sgpr100) #0
   tail call void asm sideeffect "; reg use $0", "{s101}"(i32 %sgpr101) #0
-  tail call void asm sideeffect "; reg use $0", "{s102}"(i32 %sgpr102) #0
-  tail call void asm sideeffect "; reg use $0", "{s103}"(i32 %sgpr103) #0
   tail call void asm sideeffect "; reg use $0", "{vcc_lo}"(i32 %vcc_lo) #0
   tail call void asm sideeffect "; reg use $0", "{vcc_hi}"(i32 %vcc_hi) #0
   ret void