]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gcc/testsuite/ChangeLog:
authorkugan <kugan@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 27 Jul 2016 23:02:44 +0000 (23:02 +0000)
committerkugan <kugan@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 27 Jul 2016 23:02:44 +0000 (23:02 +0000)
2016-07-28  Kugan Vivekanandarajah  <kuganv@linaro.org>

PR middle-end/71994
* gcc.dg/torture/pr71994.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@238803 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/gcc.dg/torture/pr71994.c [new file with mode: 0644]

diff --git a/gcc/testsuite/gcc.dg/torture/pr71994.c b/gcc/testsuite/gcc.dg/torture/pr71994.c
new file mode 100644 (file)
index 0000000..8f5e92c
--- /dev/null
@@ -0,0 +1,14 @@
+/* PR tree-optimization/71994 */
+/* { dg-do compile } */
+int om, h6;
+
+void eo (void)
+{
+  const int tl = 1;
+  int ln;
+
+  h6 = (om + tl) > 0;
+  ln = om && (om & h6);
+  h6 = om;
+  om = ln < h6;
+}