Re: SSE (Pentium 3) - Is this correct?

2007-01-07 Thread Ian Lance Taylor
"mal content" <[EMAIL PROTECTED]> writes: > Apologies if this is the wrong list. It's the wrong list. This should go to [EMAIL PROTECTED] Please send any followups there. Thanks. > float *vector_add4f(float va[4], const float vb[4]) > { > va[0] += vb[0]; > va[1] += vb[1]; > va[2] += vb[

Re: SSE (Pentium 3) - Is this correct?

2007-01-07 Thread mal content
On 08/01/07, Revital1 Eres <[EMAIL PROTECTED]> wrote: -ftree-vectorize flag is missing. (see http://gcc.gnu.org/projects/tree-ssa/vectorization.html for more info about the flags you should use) Ah, didn't know about that. I don't have that flag on my main dev machine (still using 3.4 branch)

Re: SSE (Pentium 3) - Is this correct?

2007-01-07 Thread Revital1 Eres
> The C code: > > float *vector_add4f(float va[4], const float vb[4]) > { > va[0] += vb[0]; > va[1] += vb[1]; > va[2] += vb[2]; > va[3] += vb[3]; > return va; > } > Now, uh, isn't that four additions? Do I need to do something gcc-specific > to get it to use the 'add-packed-single' ins

SSE (Pentium 3) - Is this correct?

2007-01-07 Thread mal content
Apologies if this is the wrong list. I'm afraid I'm not much of an assembly programmer, but I was just wondering if this generated code was 'correct', because from descriptions of SSE that I've read, it looks like it's inefficient. The C code: float *vector_add4f(float va[4], const float vb[4])

Re: passing arguments in emit_libraray_call

2007-01-07 Thread 吴曦
sorry for that~, I am using gcc3.4.0. thanks for the hints on passing format string argument~ 在 07 Jan 2007 20:25:29 -0800,Ian Lance Taylor<[EMAIL PROTECTED]> 写道: "吴曦" <[EMAIL PROTECTED]> writes: > I want to use emit_library_call to output a library call to "printf". > The question is how to pa

Re: passing arguments in emit_libraray_call

2007-01-07 Thread Ian Lance Taylor
"吴曦" <[EMAIL PROTECTED]> writes: > I want to use emit_library_call to output a library call to "printf". > The question is how to pass a format string argument? See, e.g., how STRING_CST is handled in expand_expr_real_1. > Also, in the comment of emit_library_call mentions: > > "The rtx values

passing arguments in emit_libraray_call

2007-01-07 Thread 吴曦
Hi, I want to use emit_library_call to output a library call to "printf". The question is how to pass a format string argument? Also, in the comment of emit_library_call mentions: "The rtx values should have been passed through protect_from_queue already." then, what should I do to pass the rt

gcc-4.0-20070107 is now available

2007-01-07 Thread gccadmin
Snapshot gcc-4.0-20070107 is now available on ftp://gcc.gnu.org/pub/gcc/snapshots/4.0-20070107/ and on various mirrors, see http://gcc.gnu.org/mirrors.html for details. This snapshot has been generated from the GCC 4.0 SVN branch with the following options: svn://gcc.gnu.org/svn/gcc/branches

Re: Top level libgcc checked in

2007-01-07 Thread Rask Ingemann Lambertsen
On Wed, Jan 03, 2007 at 11:28:29PM -0500, Daniel Jacobowitz wrote: > Hopefully, this will not have any great impact on much of anyone. It does. It fixed PR target/30370 (libgcc failing to build on powerpc-unknown-eabispe) on mainline. -- Rask Ingemann Lambertsen