[llvm] [AMDGPU] Add negative tests for register aignment for tensor load/store, NFC (PR #182358)

Changpeng Fang via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 19 12:23:15 PST 2026


================
@@ -1,85 +1,98 @@
+// NOTE: Assertions have been autogenerated by utils/update_mc_test_checks.py UTC_ARGS: --version 6
 ; RUN: not llvm-mc -triple=amdgcn -mcpu=gfx1250 -filetype=null %s 2>&1 | FileCheck --check-prefix=GFX1250-ERR --implicit-check-not=error: --strict-whitespace %s
 
 tensor_load_to_lds s[0:3], s[4:11] r128
-// GFX1250-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: instruction must set modifier r128=0
+// GFX1250-ERR: :[[@LINE-1]]:1: error: instruction must set modifier r128=0
 
 tensor_load_to_lds s[0:3], s[4:11] th:TH_STORE_BYPASS scope:SCOPE_SYS
-// GFX1250-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: invalid th value for load instructions
+// GFX1250-ERR: :[[@LINE-1]]:36: error: invalid th value for load instructions
 
 tensor_load_to_lds s[0:3], s[4:11], s[12:15], s[16:19] r128
-// GFX1250-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: instruction must set modifier r128=0
+// GFX1250-ERR: :[[@LINE-1]]:1: error: instruction must set modifier r128=0
 
 tensor_load_to_lds s[0:3], s[4:11], s[12:15], s[16:19] th:TH_STORE_NT_HT scope:SCOPE_DEV
-// GFX1250-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: invalid th value for load instructions
+// GFX1250-ERR: :[[@LINE-1]]:56: error: invalid th value for load instructions
 
 tensor_store_from_lds s[0:3], s[4:11] r128
-// GFX1250-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: instruction must set modifier r128=0
+// GFX1250-ERR: :[[@LINE-1]]:1: error: instruction must set modifier r128=0
 
 tensor_store_from_lds s[0:3], s[4:11] th:TH_LOAD_BYPASS scope:SCOPE_SYS
-// GFX1250-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: invalid th value for store instructions
+// GFX1250-ERR: :[[@LINE-1]]:39: error: invalid th value for store instructions
 
 tensor_store_from_lds s[0:3], s[4:11], s[12:15], s[16:19] r128
-// GFX1250-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: instruction must set modifier r128=0
+// GFX1250-ERR: :[[@LINE-1]]:1: error: instruction must set modifier r128=0
 
 tensor_store_from_lds s[0:3], s[4:11], s[12:15], s[16:19] th:TH_LOAD_NT_HT scope:SCOPE_DEV
-// GFX1250-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: invalid th value for store instructions
+// GFX1250-ERR: :[[@LINE-1]]:59: error: invalid th value for store instructions
 
 tensor_load_to_lds null, s[4:11]
-// GFX1250-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
-// GFX1250-ERR: tensor_load_to_lds null, s[4:11]
-// GFX1250-ERR:                    ^
+// GFX1250-ERR: :[[@LINE-1]]:20: error: invalid operand for instruction
 
 tensor_load_to_lds s[0:3], null
-// GFX1250-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
-// GFX1250-ERR: tensor_load_to_lds s[0:3], null
-// GFX1250-ERR:                            ^
----------------
changpeng wrote:

> Switching to generated checks should be done separately from anything else. THIs is changing the test, it's no longer matching the ^

Done! Removed auto generate for now.

https://github.com/llvm/llvm-project/pull/182358


More information about the llvm-commits mailing list