diff options
author | Kyrylo Tkachov <kyrylo.tkachov@arm.com> | 2015-12-16 10:01:48 +0000 |
---|---|---|
committer | Kyrylo Tkachov <ktkachov@gcc.gnu.org> | 2015-12-16 10:01:48 +0000 |
commit | 1408479363d5f34b306c75f60a6dfbdeb5be0544 (patch) | |
tree | dba267cf5d95099eab31b0951cf42f4c2cf58f14 /gcc/testsuite/gcc.c-torture | |
parent | 8155f4d8cfd834e7cf1151a41fe0773477504f48 (diff) | |
download | gcc-1408479363d5f34b306c75f60a6dfbdeb5be0544.tar.gz |
[ARM] PR target/68648: Fold NOT of CONST_INT in andsi_iorsi3_notsi splitter
PR target/68648
* config/arm/arm.md (*andsi_iorsi3_notsi): Try to simplify
the complement of operands[3] during splitting.
* gcc.c-torture/execute/pr68648.c: New test.
From-SVN: r231675
Diffstat (limited to 'gcc/testsuite/gcc.c-torture')
-rw-r--r-- | gcc/testsuite/gcc.c-torture/execute/pr68648.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/execute/pr68648.c b/gcc/testsuite/gcc.c-torture/execute/pr68648.c new file mode 100644 index 00000000000..fc66806a99a --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/execute/pr68648.c @@ -0,0 +1,20 @@ +int __attribute__ ((noinline)) +foo (void) +{ + return 123; +} + +int __attribute__ ((noinline)) +bar (void) +{ + int c = 1; + c |= 4294967295 ^ (foo () | 4073709551608); + return c; +} + +int +main () +{ + if (bar () != 0x83fd4005) + __builtin_abort (); +} |