[llvm] [GlobalISel] Add a update_givaluetracking_test_checks.py script (PR #140296)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Mon May 19 12:06:46 PDT 2025


================
@@ -0,0 +1,20 @@
+# NOTE: Assertions have been autogenerated by utils/update_givaluetracking_test_checks.py UTC_ARGS: --version 5
+# RUN: llc -mtriple aarch64 -passes="print<gisel-value-tracking>" %s -filetype=null 2>&1 | FileCheck %s
+
+---
+name:            Cst
+body:             |
+  bb.1:
+    %0:_(s8) = G_CONSTANT i8 1
+    %1:_(s8) = COPY %0
+...
+---
+name:            CstWithClass
+body:             |
+  bb.1:
+  ; Note: This comment should not be removed, the check lines below should be updated
+  ; CHECK-LABEL: name: @CstWithClass
+  ; CHECK-NEXT: %1:_ KnownBits:???????????????????????????????? SignBits:1
+    %0:gpr32 = MOVi32imm 1
+    %1:_(s32) = COPY %0
----------------
arsenm wrote:

Probably should test multiple values 

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


More information about the llvm-commits mailing list