[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Bug target/42542] Vectorizer produces incorrect results on max/min of unsigned intergers




------- Comment #22 from sje at cup dot hp dot com  2010-01-11 23:33 -------
I am looking at this on IA64 and fixing it for V2SI seems simple enough.  
I will attach a patch.  But I am not sure what to do for V4HI and V8QI. 
The current code uses an 'unsigned saturating subtraction' and that
seems to be what x86 is using for V16QI and V8HI.  But when I run
pr42542-2.c and pr42542-3.c (short and char) on IA64 they fail.  My
patch does make pr42542-1.c (int) work.  I tried handling V4HI and V8QI
in the same way as V2SI but that didn't seem to work either.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42542

------- You are receiving this mail because: -------
You reported the bug, or are watching the reporter.


Reply to: