Related articles |
---|
Rotate Left from C da5id65536@yahoo.com (David Sexton) (2002-10-18) |
Re: Rotate Left from C f91-men@nada.kth.se (Mattias Engdegård) (2002-10-20) |
Re: Rotate Left from C mal@wyrd.be (Lieven Marchand) (2002-10-20) |
Re: Rotate Left from C torbenm@diku.dk (Torben Ægidius Mogensen) (2002-10-24) |
From: | "Torben Ægidius Mogensen" <torbenm@diku.dk> |
Newsgroups: | comp.compilers |
Date: | 24 Oct 2002 23:57:31 -0400 |
Organization: | Department of Computer Science, University of Copenhagen |
References: | 02-10-065 |
Keywords: | architecture |
Posted-Date: | 24 Oct 2002 23:57:30 EDT |
The moderator inquires:
> [How many machines still have rotate instructions? I thought they had
> gone out of fashion. Yes, I know the Pentium does, but its instruction
> set dates from the 1970s. -John]
ARM has rotates: 32-bit rotates by any amount and a 33-bit rotate
right by 1 (using the carry flag as the 33rd bit). The standard ARM
compiler will (or would, I haven't checked the latest versions)
generate a rotate instruction from a specific combination of shifts
and OR.
Torben Mogensen (torbenm@diku.dk)
Return to the
comp.compilers page.
Search the
comp.compilers archives again.