[llvm] [AMDGPU] Autogenerate VOP3 literal checks (PR #156038)

Brox Chen via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 2 08:40:51 PDT 2025


================
@@ -1,404 +1,405 @@
+// NOTE: Assertions have been autogenerated by utils/update_mc_test_checks.py UTC_ARGS: --version 5
+// RUN: not llvm-mc -triple=amdgcn -mcpu=gfx900  -mattr=+wavefrontsize64 -show-encoding %s | FileCheck -check-prefix=GFX9  %s
 // RUN: not llvm-mc -triple=amdgcn -mcpu=gfx1010 -mattr=+wavefrontsize64 -show-encoding %s | FileCheck -check-prefix=GFX10 %s
-// RUN: not llvm-mc -triple=amdgcn -mcpu=gfx900  -show-encoding %s | FileCheck -check-prefix=GFX9 %s
-// RUN: not llvm-mc -triple=amdgcn -mcpu=gfx1010 -mattr=+wavefrontsize64 %s 2>&1 | FileCheck -check-prefix=GFX10-ERR --implicit-check-not=error: %s
-// RUN: not llvm-mc -triple=amdgcn -mcpu=gfx900  %s 2>&1 | FileCheck -check-prefix=GFX9-ERR --implicit-check-not=error: %s
+// RUN: not llvm-mc -triple=amdgcn -mcpu=gfx900  -mattr=+wavefrontsize64 %s -filetype=null 2>&1 | grep -v warning: | FileCheck -check-prefix=GFX9-ERR  -implicit-check-not=error: %s
+// RUN: not llvm-mc -triple=amdgcn -mcpu=gfx1010 -mattr=+wavefrontsize64 %s -filetype=null 2>&1 | grep -v warning: | FileCheck -check-prefix=GFX10-ERR -implicit-check-not=error: %s
----------------
broxigarchen wrote:

I remembered I used grep before but it causes issues on some CI machines as they don't have grep on it, but sed is acceptable.

Btw, update_mc_test_checks only gets the first warning or error, https://github.com/llvm/llvm-project/blob/8dee9e465bac6f1f85d37820f8ee15b5bd2118a6/llvm/utils/update_mc_test_checks.py#L22. Maybe we should try to get all of them.

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


More information about the llvm-commits mailing list