This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/35601] New: __m64 can't be initialized with 64bit constant
- From: "hjl dot tools at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Mar 2008 20:16:07 -0000
- Subject: [Bug target/35601] New: __m64 can't be initialized with 64bit constant
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
[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