public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/26445] New: SSE byte-by-byte load instruction fails to compile
@ 2006-02-23 16:05 gchernis11 at msn dot com
2006-02-24 13:15 ` [Bug target/26445] " pinskia at gcc dot gnu dot org
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: gchernis11 at msn dot com @ 2006-02-23 16:05 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2680 bytes --]
Call to the following function ...
/*inline */ void ConvertFloatSSE(void *inBuff, void *outBuff, int len)
{
unsigned char* inByteBuffer = reinterpret_cast<unsigned char *>(inBuff);
float* outFloatBuffer = reinterpret_cast<float *>(outBuff);
for(int i = 0; i<len/4; i++)
{
__m128i register1 = _mm_set_epi8(
*inByteBuffer , *(inByteBuffer+ 1),
*(inByteBuffer+ 2), 0,
*(inByteBuffer+3), *(inByteBuffer+ 4),
*(inByteBuffer+ 5), 0,
*(inByteBuffer+6), *(inByteBuffer+ 7),
*(inByteBuffer+ 8), 0,
*(inByteBuffer+9), *(inByteBuffer+10),
*(inByteBuffer+11), 0
);
__m128i register2 = _mm_srai_epi32 (register1, 8);
__m128 register3 = _mm_cvtepi32_ps (register2);
_mm_store_ps (outFloatBuffer, register3);
outFloatBuffer += 4;
inByteBuffer += 12;
}
}
generates...
************************************************************************************************************************************
if g++ -DHAVE_CONFIG_H -I. -I/home/gchernis/tryswap/src -I.. -O1 -g0 -Wall
-march=opteron -MT tryswap.o -MD -MP -MF ".deps/tryswap.Tpo" -c -o tryswap.o
/home/gchernis/tryswap/src/tryswap.cpp; then mv -f ".deps/tryswap.Tpo"
".deps/tryswap.Po"; else rm -f ".deps/tryswap.Tpo"; exit 1; fi
/home/gchernis/tryswap/src/tryswap.cpp: In function void
ConvertFloatSSE(void*, void*, int):
/home/gchernis/tryswap/src/tryswap.cpp:189: error: unable to find a register to
spill in class GENERAL_REGS
/home/gchernis/tryswap/src/tryswap.cpp:189: error: this is the insn:
(insn 90 89 91 2 (parallel [
(set (subreg:DI (reg:V16QI 21 xmm0 [102]) 0)
(ashift:DI (reg:DI 1 dx [90])
(const_int 8 [0x8])))
(clobber (reg:CC 17 flags))
]) 394 {*ashldi3_1_rex64} (insn_list:REG_DEP_TRUE 66 (nil))
(expr_list:REG_UNUSED (reg:CC 17 flags)
(expr_list:REG_UNUSED (reg:CC 17 flags)
(expr_list:REG_DEAD (reg:DI 1 dx [90])
(nil)))))
/home/gchernis/tryswap/src/tryswap.cpp:189: confused by earlier errors, bailing
out
gmake[2]: *** [tryswap.o] Error 1
gmake[1]: *** [all-recursive] Error 1
gmake: *** [all] Error 2
*** Exited with status: 2 ***
--
Summary: SSE byte-by-byte load instruction fails to compile
Product: gcc
Version: 4.0.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: gchernis11 at msn dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26445
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/26445] SSE byte-by-byte load instruction fails to compile
2006-02-23 16:05 [Bug c++/26445] New: SSE byte-by-byte load instruction fails to compile gchernis11 at msn dot com
@ 2006-02-24 13:15 ` pinskia at gcc dot gnu dot org
2006-02-25 17:07 ` pinskia at gcc dot gnu dot org
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-02-24 13:15 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-02-24 13:11 -------
can you give the full output of gcc -v?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26445
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/26445] SSE byte-by-byte load instruction fails to compile
2006-02-23 16:05 [Bug c++/26445] New: SSE byte-by-byte load instruction fails to compile gchernis11 at msn dot com
2006-02-24 13:15 ` [Bug target/26445] " pinskia at gcc dot gnu dot org
@ 2006-02-25 17:07 ` pinskia at gcc dot gnu dot org
2006-03-03 20:45 ` gchernis11 at msn dot com
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-02-25 17:07 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pinskia at gcc dot gnu dot org 2006-02-25 16:05 -------
Also can you follow the instructions on http://gcc.gnu.org/bugs.html and attach
the preprocessed source?
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26445
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/26445] SSE byte-by-byte load instruction fails to compile
2006-02-23 16:05 [Bug c++/26445] New: SSE byte-by-byte load instruction fails to compile gchernis11 at msn dot com
2006-02-24 13:15 ` [Bug target/26445] " pinskia at gcc dot gnu dot org
2006-02-25 17:07 ` pinskia at gcc dot gnu dot org
@ 2006-03-03 20:45 ` gchernis11 at msn dot com
2006-03-03 20:48 ` gchernis11 at msn dot com
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: gchernis11 at msn dot com @ 2006-03-03 20:45 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from gchernis11 at msn dot com 2006-03-03 20:45 -------
Created an attachment (id=10965)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10965&action=view)
Preprocessed source that fails
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26445
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/26445] SSE byte-by-byte load instruction fails to compile
2006-02-23 16:05 [Bug c++/26445] New: SSE byte-by-byte load instruction fails to compile gchernis11 at msn dot com
` (2 preceding siblings ...)
2006-03-03 20:45 ` gchernis11 at msn dot com
@ 2006-03-03 20:48 ` gchernis11 at msn dot com
2006-03-03 20:54 ` pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: gchernis11 at msn dot com @ 2006-03-03 20:48 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from gchernis11 at msn dot com 2006-03-03 20:48 -------
Created an attachment (id=10966)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10966&action=view)
gcc /v
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26445
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/26445] SSE byte-by-byte load instruction fails to compile
2006-02-23 16:05 [Bug c++/26445] New: SSE byte-by-byte load instruction fails to compile gchernis11 at msn dot com
` (3 preceding siblings ...)
2006-03-03 20:48 ` gchernis11 at msn dot com
@ 2006-03-03 20:54 ` pinskia at gcc dot gnu dot org
2006-03-07 22:33 ` gchernis11 at msn dot com
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-03-03 20:54 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from pinskia at gcc dot gnu dot org 2006-03-03 20:54 -------
Reducing.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pinskia at gcc dot gnu dot
| |org
Keywords| |ice-on-valid-code
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26445
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/26445] SSE byte-by-byte load instruction fails to compile
2006-02-23 16:05 [Bug c++/26445] New: SSE byte-by-byte load instruction fails to compile gchernis11 at msn dot com
` (4 preceding siblings ...)
2006-03-03 20:54 ` pinskia at gcc dot gnu dot org
@ 2006-03-07 22:33 ` gchernis11 at msn dot com
2006-03-13 16:43 ` gchernis11 at msn dot com
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: gchernis11 at msn dot com @ 2006-03-07 22:33 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from gchernis11 at msn dot com 2006-03-07 22:33 -------
(In reply to comment #5)
> Reducing.
What does it mean? How do i change status to active?
--
gchernis11 at msn dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |UNCONFIRMED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26445
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/26445] SSE byte-by-byte load instruction fails to compile
2006-02-23 16:05 [Bug c++/26445] New: SSE byte-by-byte load instruction fails to compile gchernis11 at msn dot com
` (5 preceding siblings ...)
2006-03-07 22:33 ` gchernis11 at msn dot com
@ 2006-03-13 16:43 ` gchernis11 at msn dot com
2008-04-21 18:42 ` uros at gcc dot gnu dot org
2008-04-21 18:44 ` ubizjak at gmail dot com
8 siblings, 0 replies; 10+ messages in thread
From: gchernis11 at msn dot com @ 2006-03-13 16:43 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from gchernis11 at msn dot com 2006-03-13 16:43 -------
Subject: RE: SSE byte-by-byte load instruction fails to compile
Please let me know what is the status of this bug
Please reply,
Greg Chernis
>From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
>Reply-To: gcc-bugzilla@gcc.gnu.org
>To: gchernis11@msn.com
>Subject: [Bug target/26445] SSE byte-by-byte load instruction fails to
>compile
>Date: 3 Mar 2006 20:54:42 -0000
>
>------- Comment #5 from pinskia at gcc dot gnu dot org 2006-03-03 20:54
>-------
>Reducing.
>
>
>--
>
>pinskia at gcc dot gnu dot org changed:
>
> What |Removed |Added
>----------------------------------------------------------------------------
> CC| |pinskia at gcc dot gnu
>dot
> | |org
> Keywords| |ice-on-valid-code
>
>
>http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26445
>
>------- You are receiving this mail because: -------
>You reported the bug, or are watching the reporter.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26445
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/26445] SSE byte-by-byte load instruction fails to compile
2006-02-23 16:05 [Bug c++/26445] New: SSE byte-by-byte load instruction fails to compile gchernis11 at msn dot com
` (6 preceding siblings ...)
2006-03-13 16:43 ` gchernis11 at msn dot com
@ 2008-04-21 18:42 ` uros at gcc dot gnu dot org
2008-04-21 18:44 ` ubizjak at gmail dot com
8 siblings, 0 replies; 10+ messages in thread
From: uros at gcc dot gnu dot org @ 2008-04-21 18:42 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from uros at gcc dot gnu dot org 2008-04-21 18:41 -------
Subject: Bug 26445
Author: uros
Date: Mon Apr 21 18:41:04 2008
New Revision: 134522
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=134522
Log:
PR target/26445
* g++.dg/other/i386-4.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/other/i386-4.C
Modified:
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26445
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/26445] SSE byte-by-byte load instruction fails to compile
2006-02-23 16:05 [Bug c++/26445] New: SSE byte-by-byte load instruction fails to compile gchernis11 at msn dot com
` (7 preceding siblings ...)
2008-04-21 18:42 ` uros at gcc dot gnu dot org
@ 2008-04-21 18:44 ` ubizjak at gmail dot com
8 siblings, 0 replies; 10+ messages in thread
From: ubizjak at gmail dot com @ 2008-04-21 18:44 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from ubizjak at gmail dot com 2008-04-21 18:43 -------
This is fixed in mainline (and probably for 4.3.0 too).
--
ubizjak at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Known to fail|4.2.0 4.0.3 |4.2.0 4.0.3 4.1.2
Known to work| |4.3.0
Resolution| |FIXED
Target Milestone|--- |4.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26445
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2008-04-21 18:44 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-23 16:05 [Bug c++/26445] New: SSE byte-by-byte load instruction fails to compile gchernis11 at msn dot com
2006-02-24 13:15 ` [Bug target/26445] " pinskia at gcc dot gnu dot org
2006-02-25 17:07 ` pinskia at gcc dot gnu dot org
2006-03-03 20:45 ` gchernis11 at msn dot com
2006-03-03 20:48 ` gchernis11 at msn dot com
2006-03-03 20:54 ` pinskia at gcc dot gnu dot org
2006-03-07 22:33 ` gchernis11 at msn dot com
2006-03-13 16:43 ` gchernis11 at msn dot com
2008-04-21 18:42 ` uros at gcc dot gnu dot org
2008-04-21 18:44 ` ubizjak at gmail dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).