Author: Douglas Yung
Date: 2026-07-15T08:22:52Z
New Revision: 38e1487f6b61e326330aa0467ec37b1287deaf69

URL: 
https://github.com/llvm/llvm-project/commit/38e1487f6b61e326330aa0467ec37b1287deaf69
DIFF: 
https://github.com/llvm/llvm-project/commit/38e1487f6b61e326330aa0467ec37b1287deaf69.diff

LOG: Fix test that had a check embedded which depended on the current LLVM 
version number. (#209530)

When the test was refactored, it embedded the current LLVM version
number in one of the check strings so that when I bumped the LLVM
version to 24, the test failed since it was expecting 23 but the
compiler was now generating 23.

Fix this issue by changing the check to a regex so it doesn't need
updating after every LLVM version change.

(cherry picked from commit 1a072b5f008321f22e61f744b7474fe52f0ee48c)

Added: 
    

Modified: 
    llvm/test/CodeGen/SystemZ/zos-ppa2.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/CodeGen/SystemZ/zos-ppa2.ll 
b/llvm/test/CodeGen/SystemZ/zos-ppa2.ll
index a4c1d50df5543..b1d8d47356b97 100644
--- a/llvm/test/CodeGen/SystemZ/zos-ppa2.ll
+++ b/llvm/test/CodeGen/SystemZ/zos-ppa2.ll
@@ -21,9 +21,10 @@
 ; CHECK:  DC XL2'0000'
 ; CHECK: L#DVS DS 0H
 ; CHECK:  DC XL14'F1F9F7F0F0F1F0F1F0F0F0F0F0F0'
-; CHECK:  DC XL6'F2F3F0F0F0F0'
+; CHECK:  DC XL6'{{((F[[:digit:]]){6})}}'
 ; CHECK:  DC XL2'0000'
 
+
 ; CHECK: C_@@QPPA2 CATTR 
ALIGN(3),FILL(0),NOTEXECUTABLE,READONLY,RMODE(64),PART(.
 ; CHECK:                .&ppa2)
 ; CHECK: .&ppa2 XATTR LINKAGE(OS),REFERENCE(DATA),SCOPE(SECTION)


        
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to