My guess is that there's a barrel shifter that takes on the order of a cycle regardless of the shift amount.
-- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 ________________________________________ From: IBM Mainframe Assembler List [ASSEMBLER-LIST@LISTSERV.UGA.EDU] on behalf of Paul Gilmartin [00000014e0e4a59b-dmarc-requ...@listserv.uga.edu] Sent: Friday, April 15, 2022 2:59 PM To: ASSEMBLER-LIST@LISTSERV.UGA.EDU Subject: Re: Signed/unsigned operations On Apr 15, 2022, at 12:47:40, Tony Harminc wrote: > > ... it's obvious that if you want > to rotate right, say 5 bits, you can instead rotate left 59 bits ... > Performance? Does the timing depend on the distance shifted? Maybe model-dependedent. How much does it matter? -- gil