summaryrefslogtreecommitdiff
path: root/gcc/testsuite
diff options
context:
space:
mode:
authordougkwan <dougkwan@138bc75d-0d04-0410-961f-82ee72b054a4>2009-07-22 18:06:08 +0000
committerdougkwan <dougkwan@138bc75d-0d04-0410-961f-82ee72b054a4>2009-07-22 18:06:08 +0000
commit5aa8c5f0525b6822576e1e5266836c5f3bdf03d1 (patch)
treea8e0b8b796c1ea459f330f2840b89bc6d5f6d86c /gcc/testsuite
parenta9958373732b92aa3746e59b2ebd986b779d545d (diff)
downloadgcc-5aa8c5f0525b6822576e1e5266836c5f3bdf03d1.tar.gz
2009-07-22 Doug Kwan <dougkwan@google.com>
ChangeLog: * config/arm/arm.md (subdi3) Copy non-reg values to DImode registers. testsuite/ChangeLog: * gcc.c-torture/compile/20090721-1.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@149951 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite')
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20090721-1.c3
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index efad8ee55e6..2c065ffedd3 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2009-07-22 Doug Kwan <dougkwan@google.com>
+
+ * gcc.c-torture/compile/20090721-1.c: New test.
+
2009-07-22 Michael Matz <matz@suse.de>
PR tree-optimization/35229
diff --git a/gcc/testsuite/gcc.c-torture/compile/20090721-1.c b/gcc/testsuite/gcc.c-torture/compile/20090721-1.c
new file mode 100644
index 00000000000..2122b3405d6
--- /dev/null
+++ b/gcc/testsuite/gcc.c-torture/compile/20090721-1.c
@@ -0,0 +1,3 @@
+/* { dg-options "-fno-tree-sra" } */
+union u {double d;long long ll;};
+f(double x, int n){union u v;v.d=x;if(n>=0){v.ll<<=63;}else{v.ll-=1<<-n;v.ll>>=-n;}return v.ll;}