testsuite: Add testcase coverage for already fixed [PR96671]
authorJakub Jelinek <jakub@redhat.com>
Fri, 15 Jan 2021 18:26:01 +0000 (19:26 +0100)
committerJakub Jelinek <jakub@redhat.com>
Fri, 15 Jan 2021 18:27:53 +0000 (19:27 +0100)
commitaaec739250b1b148f7db5aa86719fe76645efc06
treeffe06c5160d1a256dfcd8bb939001dc6c6c2ae0a
parenta3128bf01289a243a9e0ebb4e34c23bcb04cb938
testsuite: Add testcase coverage for already fixed [PR96671]

The fix for this PR didn't come with any test coverage, I've added
tests that make sure we optimize it no matter what order of the x ^ y ^ z
operands is used.

2021-01-15  Jakub Jelinek  <jakub@redhat.com>

PR tree-optimization/96671
* gcc.dg/tree-ssa/pr96671-1.c: New test.
* gcc.dg/tree-ssa/pr96671-2.c: New test.
gcc/testsuite/gcc.dg/tree-ssa/pr96671-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/pr96671-2.c [new file with mode: 0644]