Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > 3fb7fc3c8133ebd39bfc19f3a89a1dcb > files > 6

gcc-4.3.2-3.1mnb2.src.rpm

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

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

--- /dev/null	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;
+}