Files
clang-p2996/llvm/test/CodeGen/SystemZ/zos-ppa2.ll
dyung 45f883ed06 Change check for embedded llvm version number to a regex to make test more flexible. (#79528)
This test started to fail when LLVM created the release/18.x branch and
the main branch subsequently had the version number increased from 18 to
19.

I investigated this failure (it was blocking our internal automation)
and discovered that the CHECK statement on line 27 seemed to have the
compiler version number (1800) encoded in octal that it was checking
for. I don't know if this is something that explicitly needs to be
checked, so I am leaving it in, but it should be more flexible so the
test doesn't fail anytime the version number is changed. To accomplish
that, I changed the check for the 4-digit version number to be a regex.

I originally updated this test for the 18->19 transition in
a01195ff5c. This change makes the CHECK
line more flexible so it doesn't need to be continually updated.
2024-01-26 09:36:20 -08:00

32 lines
1006 B
LLVM

; RUN: llc -mtriple s390x-ibm-zos -mcpu=z15 -asm-verbose=true < %s | FileCheck %s
; REQUIRES: systemz-registered-target
; CHECK: .section ".ppa2"
; CHECK: @@PPA2:
; CHECK: .byte 3
; CHECK: .byte 231
; CHECK: .byte 34
; CHECK: .byte 4
; CHECK: .long CELQSTRT-@@PPA2
; CHECK: .long 0
; CHECK: .long @@DVS-@@PPA2
; CHECK: .long 0
; CHECK: .byte 129
; CHECK: .byte 0
; CHECK: .short 0
; CHECK: @@DVS:
; CHECK: .ascii "\361\371\367\360\360\361\360\361\360\360\360\360\360\360"
; CHECK: .short 0
; CHECK: .quad @@PPA2-CELQSTRT * A(PPA2-CELQSTRT)
; CHECK: @@PPA1_void_test_0:
; CHECK: .long @@PPA2-@@PPA1_void_test_0 * Offset to PPA2
; CHECK: .section "B_IDRL"
; CHECK: .byte 0
; CHECK: .byte 3
; CHECK: .short 30
; CHECK: .ascii "\323\323\345\324@@@@@@{{((\\3[0-7]{2}){4})}}\361\371\367\360\360\361\360\361\360\360\360\360\360\360\360\360"
define void @void_test() {
entry:
ret void
}