This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug regression/47385] New: Test gcc.target/powerpc/pr37168.c fails if compiled using a compiled configured with --with-cpu=power7
- From: "meissner at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 20 Jan 2011 20:42:27 +0000
- Subject: [Bug regression/47385] New: Test gcc.target/powerpc/pr37168.c fails if compiled using a compiled configured with --with-cpu=power7
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47385
Summary: Test gcc.target/powerpc/pr37168.c fails if compiled
using a compiled configured with --with-cpu=power7
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: regression
AssignedTo: meissner@gcc.gnu.org
ReportedBy: meissner@gcc.gnu.org
Host: powerpc64-linux
Target: powerpc64-linux
Build: powerpc64-linux
The test case pr37168 fails if VSX instructions are enabled. This is due to
the fact that the vector constant used has 4 single precision floating point
values, and the compiler thinks it can create this via Altivec integer
instructions (the bit value is 26, and the compiler wants to load 13 into each
word and then double it to get 26). The case fails because in this case, V4SF
uses the VSX vector unit and not the Altivec vector unit. The fix is to allow
either VSX or Altivec vector units.