From: Stefan Schulze Frielinghaus Date: Tue, 20 Apr 2021 07:51:16 +0000 (+0200) Subject: testsuite: Fix up gcc.target/s390/zero-scratch-regs-1.c X-Git-Tag: upstream/12.2.0~8698 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=250f234988b6231669a720c52101d3686d645072;p=platform%2Fupstream%2Fgcc.git testsuite: Fix up gcc.target/s390/zero-scratch-regs-1.c Depending on whether GCC is configured using --with-mode=zarch or not, for the 31bit target instructions are generated either for ESA or z/Architecture. For the sake of simplicity and robustness test only for the latter by adding manually option -mzarch. gcc/testsuite/ChangeLog: * gcc.target/s390/zero-scratch-regs-1.c: Force test to run for z/Architecture only. --- diff --git a/gcc/testsuite/gcc.target/s390/zero-scratch-regs-1.c b/gcc/testsuite/gcc.target/s390/zero-scratch-regs-1.c index c394c4b..1c02c0c 100644 --- a/gcc/testsuite/gcc.target/s390/zero-scratch-regs-1.c +++ b/gcc/testsuite/gcc.target/s390/zero-scratch-regs-1.c @@ -1,65 +1,50 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -fzero-call-used-regs=all -march=z13" } */ +/* { dg-options "-O2 -fzero-call-used-regs=all -march=z13 -mzarch" } */ /* Ensure that all call clobbered GPRs, FPRs, and VRs are zeroed and all call saved registers are kept. */ void foo (void) { } -/* { dg-final { scan-assembler-times "lhi\t" 6 { target { ! lp64 } } } } */ -/* { dg-final { scan-assembler "lhi\t%r0,0" { target { ! lp64 } } } } */ -/* { dg-final { scan-assembler "lhi\t%r1,0" { target { ! lp64 } } } } */ -/* { dg-final { scan-assembler "lhi\t%r2,0" { target { ! lp64 } } } } */ -/* { dg-final { scan-assembler "lhi\t%r3,0" { target { ! lp64 } } } } */ -/* { dg-final { scan-assembler "lhi\t%r4,0" { target { ! lp64 } } } } */ -/* { dg-final { scan-assembler "lhi\t%r5,0" { target { ! lp64 } } } } */ +/* { dg-final { scan-assembler-times "lghi\t" 6 } } */ +/* { dg-final { scan-assembler "lghi\t%r0,0" } } */ +/* { dg-final { scan-assembler "lghi\t%r1,0" } } */ +/* { dg-final { scan-assembler "lghi\t%r2,0" } } */ +/* { dg-final { scan-assembler "lghi\t%r3,0" } } */ +/* { dg-final { scan-assembler "lghi\t%r4,0" } } */ +/* { dg-final { scan-assembler "lghi\t%r5,0" } } */ -/* { dg-final { scan-assembler-times "lzdr\t" 14 { target { ! lp64 } } } } */ -/* { dg-final { scan-assembler "lzdr\t%f0" { target { ! lp64 } } } } */ -/* { dg-final { scan-assembler "lzdr\t%f1" { target { ! lp64 } } } } */ -/* { dg-final { scan-assembler "lzdr\t%f2" { target { ! lp64 } } } } */ -/* { dg-final { scan-assembler "lzdr\t%f3" { target { ! lp64 } } } } */ -/* { dg-final { scan-assembler "lzdr\t%f5" { target { ! lp64 } } } } */ -/* { dg-final { scan-assembler "lzdr\t%f7" { target { ! lp64 } } } } */ -/* { dg-final { scan-assembler "lzdr\t%f8" { target { ! lp64 } } } } */ -/* { dg-final { scan-assembler "lzdr\t%f9" { target { ! lp64 } } } } */ -/* { dg-final { scan-assembler "lzdr\t%f10" { target { ! lp64 } } } } */ -/* { dg-final { scan-assembler "lzdr\t%f11" { target { ! lp64 } } } } */ -/* { dg-final { scan-assembler "lzdr\t%f12" { target { ! lp64 } } } } */ -/* { dg-final { scan-assembler "lzdr\t%f13" { target { ! lp64 } } } } */ -/* { dg-final { scan-assembler "lzdr\t%f14" { target { ! lp64 } } } } */ -/* { dg-final { scan-assembler "lzdr\t%f15" { target { ! lp64 } } } } */ - -/* { dg-final { scan-assembler-times "lghi\t" 6 { target { lp64 } } } } */ -/* { dg-final { scan-assembler "lghi\t%r0,0" { target { lp64 } } } } */ -/* { dg-final { scan-assembler "lghi\t%r1,0" { target { lp64 } } } } */ -/* { dg-final { scan-assembler "lghi\t%r2,0" { target { lp64 } } } } */ -/* { dg-final { scan-assembler "lghi\t%r3,0" { target { lp64 } } } } */ -/* { dg-final { scan-assembler "lghi\t%r4,0" { target { lp64 } } } } */ -/* { dg-final { scan-assembler "lghi\t%r5,0" { target { lp64 } } } } */ - -/* { dg-final { scan-assembler-times "vzero\t" 24 { target { lp64 } } } } */ -/* { dg-final { scan-assembler "vzero\t%v0" { target { lp64 } } } } */ -/* { dg-final { scan-assembler "vzero\t%v1" { target { lp64 } } } } */ -/* { dg-final { scan-assembler "vzero\t%v2" { target { lp64 } } } } */ -/* { dg-final { scan-assembler "vzero\t%v3" { target { lp64 } } } } */ +/* { dg-final { scan-assembler-times "vzero\t" 30 { target { ! lp64 } } } } */ +/* { dg-final { scan-assembler-times "vzero\t" 24 { target { lp64 } } } } */ +/* { dg-final { scan-assembler "vzero\t%v0" } } */ +/* { dg-final { scan-assembler "vzero\t%v1" } } */ +/* { dg-final { scan-assembler "vzero\t%v2" } } */ +/* { dg-final { scan-assembler "vzero\t%v3" } } */ /* { dg-final { scan-assembler "vzero\t%v4" { target { lp64 } } } } */ -/* { dg-final { scan-assembler "vzero\t%v5" { target { lp64 } } } } */ +/* { dg-final { scan-assembler "vzero\t%v5" } } */ /* { dg-final { scan-assembler "vzero\t%v6" { target { lp64 } } } } */ -/* { dg-final { scan-assembler "vzero\t%v7" { target { lp64 } } } } */ -/* { dg-final { scan-assembler "vzero\t%v16" { target { lp64 } } } } */ -/* { dg-final { scan-assembler "vzero\t%v17" { target { lp64 } } } } */ -/* { dg-final { scan-assembler "vzero\t%v18" { target { lp64 } } } } */ -/* { dg-final { scan-assembler "vzero\t%v19" { target { lp64 } } } } */ -/* { dg-final { scan-assembler "vzero\t%v20" { target { lp64 } } } } */ -/* { dg-final { scan-assembler "vzero\t%v21" { target { lp64 } } } } */ -/* { dg-final { scan-assembler "vzero\t%v22" { target { lp64 } } } } */ -/* { dg-final { scan-assembler "vzero\t%v23" { target { lp64 } } } } */ -/* { dg-final { scan-assembler "vzero\t%v24" { target { lp64 } } } } */ -/* { dg-final { scan-assembler "vzero\t%v25" { target { lp64 } } } } */ -/* { dg-final { scan-assembler "vzero\t%v26" { target { lp64 } } } } */ -/* { dg-final { scan-assembler "vzero\t%v27" { target { lp64 } } } } */ -/* { dg-final { scan-assembler "vzero\t%v28" { target { lp64 } } } } */ -/* { dg-final { scan-assembler "vzero\t%v29" { target { lp64 } } } } */ -/* { dg-final { scan-assembler "vzero\t%v30" { target { lp64 } } } } */ -/* { dg-final { scan-assembler "vzero\t%v31" { target { lp64 } } } } */ +/* { dg-final { scan-assembler "vzero\t%v7" } } */ +/* { dg-final { scan-assembler "vzero\t%v8" { target { ! lp64 } } } } */ +/* { dg-final { scan-assembler "vzero\t%v9" { target { ! lp64 } } } } */ +/* { dg-final { scan-assembler "vzero\t%v10" { target { ! lp64 } } } } */ +/* { dg-final { scan-assembler "vzero\t%v11" { target { ! lp64 } } } } */ +/* { dg-final { scan-assembler "vzero\t%v12" { target { ! lp64 } } } } */ +/* { dg-final { scan-assembler "vzero\t%v13" { target { ! lp64 } } } } */ +/* { dg-final { scan-assembler "vzero\t%v14" { target { ! lp64 } } } } */ +/* { dg-final { scan-assembler "vzero\t%v15" { target { ! lp64 } } } } */ +/* { dg-final { scan-assembler "vzero\t%v16" } } */ +/* { dg-final { scan-assembler "vzero\t%v17" } } */ +/* { dg-final { scan-assembler "vzero\t%v18" } } */ +/* { dg-final { scan-assembler "vzero\t%v19" } } */ +/* { dg-final { scan-assembler "vzero\t%v20" } } */ +/* { dg-final { scan-assembler "vzero\t%v21" } } */ +/* { dg-final { scan-assembler "vzero\t%v22" } } */ +/* { dg-final { scan-assembler "vzero\t%v23" } } */ +/* { dg-final { scan-assembler "vzero\t%v24" } } */ +/* { dg-final { scan-assembler "vzero\t%v25" } } */ +/* { dg-final { scan-assembler "vzero\t%v26" } } */ +/* { dg-final { scan-assembler "vzero\t%v27" } } */ +/* { dg-final { scan-assembler "vzero\t%v28" } } */ +/* { dg-final { scan-assembler "vzero\t%v29" } } */ +/* { dg-final { scan-assembler "vzero\t%v30" } } */ +/* { dg-final { scan-assembler "vzero\t%v31" } } */