This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [tree-ssa-lno] vectorizer patch.


On Thu, Jan 01, 2004 at 06:35:10PM +0200, Dorit Naishlos wrote:
> Test cases will follow shortly; The attached test file, if compiled with
> "-O2 -ftree-vectorize -fno-inline -maltivec", should emit:
> "
> vectorized 0 loops in function.
> vectorized 0 loops in function.
> vectorized 0 loops in function.
> vectorized 5 loops in function.
> vectorized 0 loops in function.
> vectorized 0 loops in function.
> vectorized 0 loops in function.
> "
> and it should run correctly, at least on powerpc-apple-darwin6.4 (where
> it's bootstrapping now).

FYI, adding the obvious 

+#define UNITS_PER_SIMD_WORD \
+    (TARGET_SSE ? 16 : TARGET_MMX || TARGET_3DNOW ? 8 : 0)

to i386.h, and using -msse2 instead of -maltivec, results in some sort
of memory corruption with that test case (symptom is segv in free).  I
didn't track it down beyond noting that valgrind complains a LOT before
it finally dies.


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]