[Bug target/35601] New: __m64 can't be initialized with 64bit constant
hjl dot tools at gmail dot com
gcc-bugzilla@gcc.gnu.org
Sat Mar 15 20:16:00 GMT 2008
[hjl@gnu-6 tmp]$ cat x.c
typedef int __m64 __attribute__ ((__vector_size__ (8), __may_alias__));
__m64 upper = {0x7eff7eff7eff7eff};
[hjl@gnu-6 tmp]$ /usr/gcc-4.4/bin/gcc -S x.c
x.c:3: warning: overflow in implicit constant conversion
[hjl@gnu-6 tmp]$ cat y.c
typedef long long __m64 __attribute__ ((__vector_size__ (8), __may_alias__));
__m64 upper = {0x7eff7eff7eff7eff};
[hjl@gnu-6 tmp]$ /usr/gcc-4.4/bin/gcc -S y.c
[hjl@gnu-6 tmp]$
In both cases, __m64 has the same size. Why doesn't
typedef int __m64 __attribute__ ((__vector_size__ (8), __may_alias__));
take 64bit constant?
--
Summary: __m64 can't be initialized with 64bit constant
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: hjl dot tools at gmail dot com
GCC target triplet: x86_64-unknown-linux-gnu i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35601
More information about the Gcc-bugs
mailing list