[COMMITTED,PR106970] New test for PR that has already been fixed.

Message ID 20220920142735.1961380-1-aldyh@redhat.com
State New, archived
Headers
Series [COMMITTED,PR106970] New test for PR that has already been fixed. |

Commit Message

Aldy Hernandez Sept. 20, 2022, 2:27 p.m. UTC
  PR tree-optimization/106970

gcc/testsuite/ChangeLog:

	* gcc.dg/tree-ssa/pr106970.c: New test.
---
 gcc/testsuite/gcc.dg/tree-ssa/pr106970.c | 9 +++++++++
 1 file changed, 9 insertions(+)
 create mode 100644 gcc/testsuite/gcc.dg/tree-ssa/pr106970.c
  

Patch

diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr106970.c b/gcc/testsuite/gcc.dg/tree-ssa/pr106970.c
new file mode 100644
index 00000000000..cda9bd46910
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/tree-ssa/pr106970.c
@@ -0,0 +1,9 @@ 
+// { dg-do compile }
+// { dg-options "-O1 -fno-signed-zeros" }
+
+void
+foo (double x, double y)
+{
+  if (!x == !y * -1.0)
+    __builtin_trap ();
+}