From: Gabe Black Date: Sun, 21 Jun 2009 16:38:54 +0000 (-0700) Subject: ARM: Adjust simplify rotate_imm slightly. X-Git-Tag: Calvin_Submission~273 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=39647097111575c57f4e8eb528059d300fd99df0;p=gem5.git ARM: Adjust simplify rotate_imm slightly. --- diff --git a/src/arch/arm/isa/formats/pred.isa b/src/arch/arm/isa/formats/pred.isa index 751c21816..eccec58bd 100644 --- a/src/arch/arm/isa/formats/pred.isa +++ b/src/arch/arm/isa/formats/pred.isa @@ -37,10 +37,10 @@ output header {{ #include inline uint32_t - rotate_imm(uint32_t immValue, uint32_t rotateValue) + rotate_imm(uint32_t immValue, int rotateValue) { - return ((immValue >> (int)(rotateValue & 31)) | - (immValue << (32 - (int)(rotateValue & 31)))); + return ((immValue >> (rotateValue & 31)) | + (immValue << (32 - (rotateValue & 31)))); } /**