summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/binop-notand6a.c
diff options
context:
space:
mode:
authorktietz <ktietz@138bc75d-0d04-0410-961f-82ee72b054a4>2011-07-07 14:16:44 +0000
committerktietz <ktietz@138bc75d-0d04-0410-961f-82ee72b054a4>2011-07-07 14:16:44 +0000
commit41913fa9873451f9aa78193d3273334e1a48d276 (patch)
tree7bc664a5934aa6a5a337a99baf2ba93884b114ec /gcc/testsuite/gcc.dg/binop-notand6a.c
parent88483769c00e09df10767bf8c381150e8fec8739 (diff)
downloadgcc-41913fa9873451f9aa78193d3273334e1a48d276.tar.gz
2011-07-07 Kai Tietz <ktietz@redhat.com>
* tree-ssa-forwprop.c (truth_valued_ssa_name): New function. (lookup_logical_inverted_value): Likewise. (simplify_bitwise_binary_1): Likewise. (simplify_bitwise_binary): Use simplify_bitwise_binary_1. 2011-07-07 Kai Tietz <ktietz@redhat.com> * gcc.dg/binop-notxor1.c: New test. * gcc.dg/binop-notand4a.c: New test. * gcc.dg/binop-notxor2.c: New test. * gcc.dg/binop-notand3a.c: New test. * gcc.dg/binop-notand2a.c: New test. * gcc.dg/binop-notand6a.c: New test. * gcc.dg/binop-notor1.c: New test. * gcc.dg/binop-notand1a.c: New test. * gcc.dg/binop-notand5a.c: New test. * gcc.dg/binop-notor2.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@175974 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/binop-notand6a.c')
-rw-r--r--gcc/testsuite/gcc.dg/binop-notand6a.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/binop-notand6a.c b/gcc/testsuite/gcc.dg/binop-notand6a.c
new file mode 100644
index 00000000000..b9fe4052d58
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/binop-notand6a.c
@@ -0,0 +1,11 @@
+/* { dg-do compile } */
+/* { dg-options "-O2 -fdump-tree-optimized" } */
+
+int
+foo (unsigned long a, long b)
+{
+ return (a & !a) | (b & (b == 0));
+}
+
+/* { dg-final { scan-tree-dump-times "return 0" 1 "optimized" } } */
+/* { dg-final { cleanup-tree-dump "optimized" } } */