Re: Support for gcc vector attributes, SIMD builtins

2011-02-01 Thread Mike Farnsworth
Iain Buclaw Wrote: > == Quote from Jerry Quinn (jlqu...@optonline.net)'s article > > Iain Buclaw Wrote: > > > == Quote from Mike Farnsworth (mike.farnswo...@gmail.com)'s article > > > > I built gdc from tip on Fedora 13 (x86-64) and started playing around > > > > with creating a vector struct (x,y

Re: Support for gcc vector attributes, SIMD builtins

2011-02-01 Thread Iain Buclaw
== Quote from Mike Farnsworth (mike.farnswo...@gmail.com)'s article > Iain Buclaw Wrote: > > Interestingly enough, this particular example actually ICEs the compiler. It > > appears that while *explicit* casting is done in the code, DMDFE actually > > *ignores* this, which is terrible on DMD's part

Re: Support for gcc vector attributes, SIMD builtins

2011-02-01 Thread Iain Buclaw
== Quote from Jerry Quinn (jlqu...@optonline.net)'s article > Iain Buclaw Wrote: > > == Quote from Mike Farnsworth (mike.farnswo...@gmail.com)'s article > > > I built gdc from tip on Fedora 13 (x86-64) and started playing around > > > with creating a vector struct (x,y,z,w) to see what kind of opti

Re: Support for gcc vector attributes, SIMD builtins

2011-02-01 Thread Mike Farnsworth
Iain Buclaw Wrote: > == Quote from Mike Farnsworth (mike.farnswo...@gmail.com)'s article > > I built gdc from tip on Fedora 13 (x86-64) and started playing around > > with creating a vector struct (x,y,z,w) to see what kind of optimization > > the code generator did with it. It was able to partia

Re: Support for gcc vector attributes, SIMD builtins

2011-02-01 Thread Mike Farnsworth
Daniel Gibson Wrote: > I'm not sure if that'll help at all, but you may try something like > alias float[4] vec4; // or whatever type you're using > /Maybe/ SSE optimizations work better on arrays than on structs. > Of course, such a type isn't as handy because it'll be vec4[0] instead > of vec4.x

Re: Support for gcc vector attributes, SIMD builtins

2011-02-01 Thread Jerry Quinn
Iain Buclaw Wrote: > == Quote from Mike Farnsworth (mike.farnswo...@gmail.com)'s article > > I built gdc from tip on Fedora 13 (x86-64) and started playing around > > with creating a vector struct (x,y,z,w) to see what kind of optimization > > the code generator did with it. It was able to partia

Re: Support for gcc vector attributes, SIMD builtins

2011-02-01 Thread Iain Buclaw
== Quote from Mike Farnsworth (mike.farnswo...@gmail.com)'s article > I built gdc from tip on Fedora 13 (x86-64) and started playing around > with creating a vector struct (x,y,z,w) to see what kind of optimization > the code generator did with it. It was able to partially drop into SSE > register

Re: Support for gcc vector attributes, SIMD builtins

2011-02-01 Thread Daniel Gibson
Am 01.02.2011 09:10, schrieb Mike Farnsworth: I built gdc from tip on Fedora 13 (x86-64) and started playing around with creating a vector struct (x,y,z,w) to see what kind of optimization the code generator did with it. It was able to partially drop into SSE registers and instructions, but not

Support for gcc vector attributes, SIMD builtins

2011-02-01 Thread Mike Farnsworth
I built gdc from tip on Fedora 13 (x86-64) and started playing around with creating a vector struct (x,y,z,w) to see what kind of optimization the code generator did with it. It was able to partially drop into SSE registers and instructions, but not as well as I had hoped from writing "regular" D