public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/36732] New: Internal compiller bug
@ 2008-07-04 20:30 msnkipa at mail dot ru
2008-08-11 1:35 ` [Bug target/36732] " pinskia at gcc dot gnu dot org
0 siblings, 1 reply; 2+ messages in thread
From: msnkipa at mail dot ru @ 2008-07-04 20:30 UTC (permalink / raw)
To: gcc-bugs
So When I try to compile such code
#include <iostream>
#include <time.h>
#include <stdlib.h>
#include <math.h>
#include <emmintrin.h>
int main()
{
double s_ptime = clock();
double d1 = 0;
double d2 = 1;
double d3 = 1;
__m128d pd, pd2;
pd = _mm_loadh_pd(pd, &d1);
pd = _mm_loadl_pd(pd, &d2);
pd2 = _mm_loadh_pd(pd2, &d3);
pd2 = _mm_loadl_pd(pd2, &d3);
for(long i=0; i<10000000000; i++){
pd = _mm_sub_pd(pd, pd2);
};
_mm_storeh_pd(&d1, pd);
_mm_storel_pd(&d2, pd);
double ptime = (clock() - s_ptime); //CLOCKS_PER_SEC;
std::cout << "\t cpu: " << ptime << " " << d1 <<" " << d2 << "
tics\n";
};
with command
g++43 -mfpmath=sse -msse -msse2 -o testsse testsse.cc -mstackrealign
I have such message
/usr/local/lib/gcc-4.3.2/include/c++//x86_64-portbld-freebsd7.0/bits/gthr-default.h:
In function 'void __gthread_trigger()':
/usr/local/lib/gcc-4.3.2/include/c++//x86_64-portbld-freebsd7.0/bits/gthr-default.h:174:
error: unrecognizable insn:
(insn 16 15 17
/usr/local/lib/gcc-4.3.2/include/c++//x86_64-portbld-freebsd7.0/bits/gthr-default.h:171
(parallel [
(set (reg/f:DI 7 sp)
(and:SI (reg/f:DI 7 sp)
(const_int -16 [0xfffffffffffffff0])))
(clobber (reg:CC 17 flags))
]) -1 (nil))
/usr/local/lib/gcc-4.3.2/include/c++//x86_64-portbld-freebsd7.0/bits/gthr-default.h:174:
internal compiler error: in insn_default_length, at insn-attrtab.c:1340
Please submit a full bug report,
with preprocessed source if appropriate.
--
Summary: Internal compiller bug
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: msnkipa at mail dot ru
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36732
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug target/36732] Internal compiller bug
2008-07-04 20:30 [Bug c++/36732] New: Internal compiller bug msnkipa at mail dot ru
@ 2008-08-11 1:35 ` pinskia at gcc dot gnu dot org
0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-08-11 1:35 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2008-08-11 01:33 -------
This works on the trunk on x86_64-darwin.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36732
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-08-11 1:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-04 20:30 [Bug c++/36732] New: Internal compiller bug msnkipa at mail dot ru
2008-08-11 1:35 ` [Bug target/36732] " pinskia at gcc dot gnu dot org
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).