summaryrefslogtreecommitdiff
path: root/cgawas.c
diff options
context:
space:
mode:
authorJohn van Groningen2011-04-19 09:43:10 +0000
committerJohn van Groningen2011-04-19 09:43:10 +0000
commit914651427fe8bf50616cb37951ab5d594874d285 (patch)
treeb9b45f4751a7fe679a06fc1c8d04b6a77b155852 /cgawas.c
parentuse #NO_APP to assemble faster, remove space after r8 and r9 (diff)
add rotl% and rotr% instructions
Diffstat (limited to 'cgawas.c')
-rw-r--r--cgawas.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/cgawas.c b/cgawas.c
index 4a0b336..f1522d6 100644
--- a/cgawas.c
+++ b/cgawas.c
@@ -3537,6 +3537,18 @@ static void w_as_instructions (register struct instruction *instruction)
case IDIVDU:
w_as_divdu_instruction (instruction);
break;
+ case IROTL:
+ w_as_shift_instruction (instruction,"rol");
+ break;
+ case IROTR:
+ w_as_shift_instruction (instruction,"ror");
+ break;
+ case IROTL_S:
+ w_as_shift_s_instruction (instruction,"rol");
+ break;
+ case IROTR_S:
+ w_as_shift_s_instruction (instruction,"ror");
+ break;
case IFMOVE:
w_as_fmove_instruction (instruction);
break;