AMDGPU: Fix register name format in tests
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 27 Mar 2018 18:39:42 +0000 (18:39 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 27 Mar 2018 18:39:42 +0000 (18:39 +0000)
These were changed to match the asm output name a long time ago,
although I think the old tablegenerated names still work.

llvm-svn: 328651

llvm/test/CodeGen/AMDGPU/basic-call-return.ll
llvm/test/CodeGen/AMDGPU/spill-alloc-sgpr-init-bug.ll

index 1f2f92f..e47e4c1 100644 (file)
@@ -13,7 +13,7 @@ define amdgpu_kernel void @test_call_void_func_void() {
 }
 
 define void @void_func_void_clobber_s40_s41() #2 {
-  call void asm sideeffect "", "~{SGPR40_SGPR41}"() #0
+  call void asm sideeffect "", "~{s[40:41]}"() #0
   ret void
 }
 
index 63ea21b..ce9232f 100644 (file)
@@ -16,9 +16,9 @@ entry:
 
 ; mark 128-bit SGPR registers as used so they are unavailable for the
 ; scratch resource descriptor
-  call void asm sideeffect "", "~{SGPR4},~{SGPR8},~{SGPR12},~{SGPR16},~{SGPR20},~{SGPR24},~{SGPR28}" ()
-  call void asm sideeffect "", "~{SGPR32},~{SGPR36},~{SGPR40},~{SGPR44},~{SGPR48},~{SGPR52},~{SGPR56}" ()
-  call void asm sideeffect "", "~{SGPR60},~{SGPR64},~{SGPR68}" ()
+  call void asm sideeffect "", "~{s4},~{s8},~{s12},~{s16},~{s20},~{s24},~{s28}" ()
+  call void asm sideeffect "", "~{s32},~{s36},~{s40},~{s44},~{s48},~{s52},~{s56}" ()
+  call void asm sideeffect "", "~{s60},~{s64},~{s68}" ()
   ret void
 }