This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/36503] x86 can use x >> -y for x >> 32-y
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Jun 2008 00:05:06 -0000
- Subject: [Bug target/36503] x86 can use x >> -y for x >> 32-y
- References: <bug-36503-10175@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from pinskia at gcc dot gnu dot org 2008-06-12 00:05 -------
>I'd guess this applies to some other architectures;
Not really. It depends on the definition of the shift. Most targets have
undefined values are produced from negative shifts values.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36503