This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH][ARM][1/4] PR target/65932: Add testcase
- From: Kyrill Tkachov <kyrylo dot tkachov at foss dot arm dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Cc: Ramana Radhakrishnan <ramana dot radhakrishnan at arm dot com>, Richard Earnshaw <Richard dot Earnshaw at arm dot com>, Jim Wilson <jim dot wilson at linaro dot org>
- Date: Fri, 22 Jan 2016 09:52:23 +0000
- Subject: [PATCH][ARM][1/4] PR target/65932: Add testcase
- Authentication-results: sourceware.org; auth=none
Hi all,
This patch adds an execute testcase that is fixed by the arm.h hunk of Jim Wilson's
patch that he posted at:
https://gcc.gnu.org/ml/gcc-patches/2015-06/msg02132.html
I propose this testsuite change instead of the testsuite changes in that patch since
the gcc.target/arm/wmul-[123].c regressions are dealt with in the other patches in this series.
Bootstrapped and tested on arm.
Ok for trunk?
Thanks,
Kyrill
2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
PR target/65932
PR target/67714
* gcc.c-torture/execute/pr67714.c: New test.
diff --git a/gcc/testsuite/gcc.c-torture/execute/pr67714.c b/gcc/testsuite/gcc.c-torture/execute/pr67714.c
new file mode 100644
index 0000000000000000000000000000000000000000..386c0dfad8dd786938127d5e45987e7dc113b564
--- /dev/null
+++ b/gcc/testsuite/gcc.c-torture/execute/pr67714.c
@@ -0,0 +1,26 @@
+unsigned int b;
+int c;
+
+signed char
+fn1 ()
+{
+ signed char d;
+ for (int i = 0; i < 1; i++)
+ d = -15;
+ return d;
+}
+
+int
+main (void)
+{
+ for (c = 0; c < 1; c++)
+ b = 0;
+ char e = fn1 ();
+ signed char f = e ^ b;
+ volatile int g = (int) f;
+
+ if (g != 0xfffffff1)
+ __builtin_abort ();
+
+ return 0;
+}