diff options
author | Ilya Leoshkevich <iii@gcc.gnu.org> | 2018-10-22 08:39:18 +0000 |
---|---|---|
committer | Ilya Leoshkevich <iii@gcc.gnu.org> | 2018-10-22 08:39:18 +0000 |
commit | 9470d3ecf371c72817599fe66fe97f469bf4627c (patch) | |
tree | b21e0117e2d7716cbde83950b88887ffc3704ae0 | |
parent | 36bbc05db8ef71811a7b925bbb862d0b1c3b5b89 (diff) | |
download | gcc-9470d3ecf371c72817599fe66fe97f469bf4627c.zip gcc-9470d3ecf371c72817599fe66fe97f469bf4627c.tar.gz gcc-9470d3ecf371c72817599fe66fe97f469bf4627c.tar.bz2 |
S/390: Add the forgotten test for r265371
The test is part of the originally posted change
(https://gcc.gnu.org/ml/gcc-patches/2018-10/msg01173.html), but was
forgotten during svn commit.
From-SVN: r265373
-rw-r--r-- | gcc/testsuite/gcc.target/s390/litpool-int.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/s390/litpool-int.c b/gcc/testsuite/gcc.target/s390/litpool-int.c new file mode 100644 index 0000000..a6bf0c0 --- /dev/null +++ b/gcc/testsuite/gcc.target/s390/litpool-int.c @@ -0,0 +1,12 @@ +/* Test that we do not generate useless LAs. */ + +/* { dg-do compile } */ +/* { dg-options "-march=z10 -O1" } */ + +int a; + +void b() +{ + a /= 100; + /* { dg-final { scan-assembler-not {(?n)\n\tla\t%r\d+,.+\(%r13\)\n} } } */ +} |