This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Testsuite: add simple vector divide test


The attached test case matches a failure we were seeing on the Apple gcc
compiler which has been fixed in FSF gcc since 4.0.2 (as a result of the
patch for PR c++/10611).  Since the failure behavior (ICE) had no
corresponding test in the suite, it was suggested that I submit this to
mainline.  Geoff Keating approved this off-line, so unless there are any
concerns raised in the next 24 hours, I'll go ahead and check it in.

FWIW, I verified this test against mainline gcc on these targets:
  powerpc-apple-darwin
  i386-apple-darwin
  i686-pc-linux-gnu

Thanks -

Josh

2007-05-21  Josh Conner  <jconner@apple.com>

	* g++.dg/ext/vector8.C: New test.
/* { dg-do compile } */
/* { dg-options "" } */
/* { dg-options "-msse" { target i?86-*-* x86_64-*-* } } */
/* Verify that a vector divide operation works.  */
typedef float __attribute__((vector_size (16))) vFloat;

vFloat vFloat_recip(vFloat fp) {
  vFloat fpone = (vFloat) {1.0f, 1.0f, 1.0f, 1.0f};
  return fpone / fp;
}

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]