[llvm] 1a072b5 - Fix test that had a check embedded which depended on the current LLVM version number. (#209530)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 14 09:47:36 PDT 2026
Author: Douglas Yung
Date: 2026-07-14T12:47:31-04:00
New Revision: 1a072b5f008321f22e61f744b7474fe52f0ee48c
URL: https://github.com/llvm/llvm-project/commit/1a072b5f008321f22e61f744b7474fe52f0ee48c
DIFF: https://github.com/llvm/llvm-project/commit/1a072b5f008321f22e61f744b7474fe52f0ee48c.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.
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)
More information about the llvm-commits
mailing list