summaryrefslogtreecommitdiff
path: root/cgaas.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 /cgaas.c
parentuse #NO_APP to assemble faster, remove space after r8 and r9 (diff)
add rotl% and rotr% instructions
Diffstat (limited to 'cgaas.c')
-rw-r--r--cgaas.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/cgaas.c b/cgaas.c
index 6611607..0e95b8f 100644
--- a/cgaas.c
+++ b/cgaas.c
@@ -4397,6 +4397,18 @@ static void as_instructions (struct instruction *instruction)
case IDIVDU:
as_divdu_instruction (instruction);
break;
+ case IROTL:
+ as_shift_instruction (instruction,0);
+ break;
+ case IROTR:
+ as_shift_instruction (instruction,1);
+ break;
+ case IROTL_S:
+ as_shift_s_instruction (instruction,0);
+ break;
+ case IROTR_S:
+ as_shift_s_instruction (instruction,1);
+ break;
case IWORD:
store_c (instruction->instruction_parameters[0].parameter_data.i);
break;