aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorH.J. Lu <hongjiu.lu@intel.com>2015-08-24 15:31:02 +0000
committerH.J. Lu <hjl@gcc.gnu.org>2015-08-24 08:31:02 -0700
commit76eed9d920fedf44e7c3738acd5e434d3a00a972 (patch)
tree530faee9b73f772d9dbcbd49a2a2aead33f678f6 /gcc
parent03541b0d44b3a91357612de33229e31999e94f84 (diff)
downloadgcc-76eed9d920fedf44e7c3738acd5e434d3a00a972.zip
gcc-76eed9d920fedf44e7c3738acd5e434d3a00a972.tar.gz
gcc-76eed9d920fedf44e7c3738acd5e434d3a00a972.tar.bz2
Add a testcase for PR target/66821
PR target/66821 * gcc.target/i386/pr66821.c: New test. From-SVN: r227133
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gcc.target/i386/pr66821.c15
2 files changed, 20 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 9161ce4..0cb8082 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,5 +1,10 @@
2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
+ PR target/66821
+ * gcc.target/i386/pr66821.c: New test.
+
+2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
+
PR target/67329
* gcc.target/i386/pr67329.c: New test.
diff --git a/gcc/testsuite/gcc.target/i386/pr66821.c b/gcc/testsuite/gcc.target/i386/pr66821.c
new file mode 100644
index 0000000..d32f03d
--- /dev/null
+++ b/gcc/testsuite/gcc.target/i386/pr66821.c
@@ -0,0 +1,15 @@
+/* { dg-do compile { target ia32 } } */
+/* { dg-options "-O2 -fdump-tree-optimized -mtune=iamcu" } */
+
+void bar (void);
+
+void
+foo (int x)
+{
+ if (x != 2 && x != 3 && x != 10 && x != 11 && x != 17 && x != 18 && x != 23)
+ bar ();
+}
+
+/* Check if the tests have been folded into a bit test. */
+/* { dg-final { scan-tree-dump "(8784908|0x0*860c0c)" "optimized" } } */
+/* { dg-final { scan-tree-dump "(<<|>>)" "optimized" } } */