28 lines · c
1// Please note the following:2// + we are checking that the first bytes of the PPA2 are 0x3 0x03// for C, and 0x3 0x1 for C++4// + the label for the PPA2 seems to vary on different versions.5// We try to cover all cases, and use substitution blocks to6// help write the tests. The contents of the PPA2 itself should7// not be different.8// + the [[:space:]] combines the two .byte lines into one pattern.9// This is necessary because if the lines were separated, the first10// .byte (i.e., the one for the 3) would, it seems, also match11// the .byte line below for the 34.12 13// REQUIRES: systemz-registered-target14 15// RUN: %clang_cc1 -triple s390x-ibm-zos -xc -S -o - %s | FileCheck %s --check-prefix CHECK-C16// CHECK-C: [[PPA2:(.L)|(L#)PPA2]]:17// CHECK-C-NEXT: .byte 3{{[[:space:]]*}}.byte 018// CHECK-C-NEXT: .byte 34{{$}}19// CHECK-C-NEXT: .byte {{4}}20// CHECK-C-NEXT: .long {{(CELQSTRT)}}-[[PPA2]]21 22// RUN: %clang_cc1 -triple s390x-ibm-zos -xc++ -S -o - %s | FileCheck %s --check-prefix CHECK-CXX23// CHECK-CXX: [[PPA2:(.L)|(L#)PPA2]]:24// CHECK-CXX-NEXT: .byte 3{{[[:space:]]*}}.byte 125// CHECK-CXX-NEXT: .byte 34{{$}}26// CHECK-CXX-NEXT: .byte {{4}}27// CHECK-CXX-NEXT: .long {{(CELQSTRT)}}-[[PPA2]]28