diff options
author | Dominik Vogt <vogt@linux.vnet.ibm.com> | 2016-12-19 09:53:56 +0000 |
---|---|---|
committer | Andreas Krebbel <krebbel@gcc.gnu.org> | 2016-12-19 09:53:56 +0000 |
commit | ad7ab32ed443d716f45ed315aa5349981954aa6c (patch) | |
tree | a4b329f398660e47d560b530217bffa6e84d055f /gcc/testsuite/gcc.c-torture | |
parent | e01f223f28d94ececee29b8048434361de5cd40c (diff) | |
download | gcc-ad7ab32ed443d716f45ed315aa5349981954aa6c.zip gcc-ad7ab32ed443d716f45ed315aa5349981954aa6c.tar.gz gcc-ad7ab32ed443d716f45ed315aa5349981954aa6c.tar.bz2 |
PR target/78748: S/390: Fix ICE with ANDC splitter.
gcc/ChangeLog:
2016-12-19 Dominik Vogt <vogt@linux.vnet.ibm.com>
PR target/78748
* config/s390/s390.md ("*andc_split_<mode>"): Allow memory destination
only if it coincides with operand 2.
gcc/testsuite/ChangeLog:
2016-12-19 Dominik Vogt <vogt@linux.vnet.ibm.com>
PR target/78748
* gcc.c-torture/compile/pr78748.c: New test.
From-SVN: r243793
Diffstat (limited to 'gcc/testsuite/gcc.c-torture')
-rw-r--r-- | gcc/testsuite/gcc.c-torture/compile/pr78748.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/compile/pr78748.c b/gcc/testsuite/gcc.c-torture/compile/pr78748.c new file mode 100644 index 0000000..032e78d --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/pr78748.c @@ -0,0 +1,14 @@ +/* PR target/78748 */ +/* { dg-options "-march=zEC12" { target { s390*-*-* } } } */ + +void +foo (int *p, int *q) +{ + *q = *p & ~*q; +} + +void +bar (int *p, int *q) +{ + *q = ~*p & *q; +} |