ARM: Adjust simplify rotate_imm slightly.
authorGabe Black <gblack@eecs.umich.edu>
Sun, 21 Jun 2009 16:38:54 +0000 (09:38 -0700)
committerGabe Black <gblack@eecs.umich.edu>
Sun, 21 Jun 2009 16:38:54 +0000 (09:38 -0700)
src/arch/arm/isa/formats/pred.isa

index 751c218169e4f8fec0f71a6b62ef88716693a81f..eccec58bd0550d0a05a06da7c05652e38a170ff0 100644 (file)
@@ -37,10 +37,10 @@ output header {{
 #include <iostream>
 
     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))));
     }
 
     /**