Sophie

Sophie

distrib > Mageia > 7 > x86_64 > by-pkgid > 08f7f62ad8debca71f444a3272b26be1 > files > 8

gcc3.3-3.3.6-16.mga7.src.rpm

2002-07-29  Gwenole Beauchesne  <gbeauchesne@mandrakesoft.com>

	PR target/7434
	* testsuite/gcc.dg/20020729-2.c: New test.

--- gcc-3.2/gcc/testsuite/gcc.dg/20020729-2.c.x86_64-split-long-moves	2002-08-13 11:19:27.000000000 +0200
+++ gcc-3.2/gcc/testsuite/gcc.dg/20020729-2.c	2002-08-13 11:19:08.000000000 +0200
@@ -0,0 +1,14 @@
+/* PR target/7434
+   This testcase ICE'd gcc on x86-64, because of confusion of modes in
+   64-bit splitting.  */
+/* { dg-do compile } */
+
+int main (void)
+{
+  static const int align_g[] = { 1, 2, 4, 8, 16 };
+  char * buf;
+  int i = 0;
+  volatile long double val = 0;
+  val = *((long double *)(buf + align_g[i]));
+  return 0;
+}