[Bug c++/14425] New: vec_splat broken
tjw at omnigroup dot com
gcc-bugzilla@gcc.gnu.org
Thu Mar 4 03:55:00 GMT 2004
#include <altivec.h>
vector unsigned int splat0(vector unsigned int x)
{
return vec_splat(x, 0);
}
$PREFIX/bin/g++ -faltivec -S splat.c
/Volumes/Space/Users/bungi/Source/GNU/gcc/gcc-tree-ssa/install/bin/../lib/gcc/powerpc-
apple-darwin7.2.0/3.5-tree-ssa/include/altivec.h: In function `__bool int __vector__
vec_splat(__bool int __vector__, int)':
/Volumes/Space/Users/bungi/Source/GNU/gcc/gcc-tree-ssa/install/bin/../lib/gcc/powerpc-
apple-darwin7.2.0/3.5-tree-ssa/include/altivec.h:4562: error: argument 2 must be a 5-bit
unsigned literal
/Volumes/Space/Users/bungi/Source/GNU/gcc/gcc-tree-ssa/install/bin/../lib/gcc/powerpc-
apple-darwin7.2.0/3.5-tree-ssa/include/altivec.h: In function `unsigned int __vector__
vec_splat(unsigned int __vector__, int)':
/Volumes/Space/Users/bungi/Source/GNU/gcc/gcc-tree-ssa/install/bin/../lib/gcc/powerpc-
apple-darwin7.2.0/3.5-tree-ssa/include/altivec.h:4556: error: argument 2 must be a 5-bit
unsigned literal
--
Summary: vec_splat broken
Product: gcc
Version: tree-ssa
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: tjw at omnigroup dot com
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: powerpc-apple-darwin7.2.0
GCC host triplet: powerpc-apple-darwin7.2.0
GCC target triplet: powerpc-apple-darwin7.2.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14425
More information about the Gcc-bugs
mailing list