[Bug target/35836] Wrong instruction generated for comparison with zero on PPC 64 bit

2008-05-21 Thread pinskia at gcc dot gnu dot org
--- Comment #12 from pinskia at gcc dot gnu dot org 2008-05-21 16:31 --- Your testcase here is invalid as you have two different return types for the same function. If Apple's libc does not fully implement the ABI correctly, that is their bug, please report it to them. -- pinski

[Bug target/35836] Wrong instruction generated for comparison with zero on PPC 64 bit

2008-05-21 Thread oder at eleks dot lviv dot ua
--- Comment #11 from oder at eleks dot lviv dot ua 2008-05-21 16:27 --- (In reply to comment #10) > OSAtomicIncrement32Barrier will return a 32bit signed extended value to a > 64bit > so using a 64bit compare is fine and ok according to the ABI. Yes, but it returns value in 64-bit regi

[Bug target/35836] Wrong instruction generated for comparison with zero on PPC 64 bit

2008-05-21 Thread pinskia at gcc dot gnu dot org
--- Comment #10 from pinskia at gcc dot gnu dot org 2008-05-21 15:45 --- OSAtomicIncrement32Barrier will return a 32bit signed extended value to a 64bit so using a 64bit compare is fine and ok according to the ABI. -- pinskia at gcc dot gnu dot org changed: What|Remo