+insn_rets : OP_RETS {
+ struct instruction *insn = xmalloc(sizeof(struct instruction));
+ struct operlist *ol = xmalloc(sizeof(struct operlist));
+ struct operand *oper_r0 = xmalloc(sizeof(struct operand));
+ struct operand *oper_zero = xmalloc(sizeof(struct operand));
+ struct registr *r0 = xmalloc(sizeof(struct registr));
+ oper_zero->type = OPER_RAW;
+ oper_zero->u.raw = 0;
+ r0->type = GPR;
+ r0->nr = 0;
+ oper_r0->type = OPER_REG;
+ oper_r0->u.reg = r0;
+ ol->oper[0] = oper_r0;
+ ol->oper[1] = oper_r0;
+ ol->oper[2] = oper_zero;
+ insn->op = OP_RETS;
+ insn->operands = ol;
+ $$ = insn;
+ }
+ ;
+