srsra_advsimd.xml */
| 23585 | |
| 23586 | /* srsra_advsimd.xml */ |
| 23587 | int SRSRA_advsimd(context *ctx, Instruction *instr) |
| 23588 | { |
| 23589 | int rc = DECODE_STATUS_UNMATCHED; |
| 23590 | /* class iclass_sisd */ |
| 23591 | /* 01|U=0|111110|immh!=0000|immb=xxx|opcode[4:3]=00|o1=1|o0=1|opcode[0]=0|1|Rn=xxxxx|Rd=xxxxx */ |
| 23592 | if((INSWORD & 0xFF80FC00)==0x5F003400 && (INSWORD & 0x780000)!=0x0) { |
| 23593 | decode_fields32(ENC_SRSRA_ASISDSHF_R, ctx, instr); |
| 23594 | ctx->d = UINT(ctx->Rd); |
| 23595 | ctx->n = UINT(ctx->Rn); |
| 23596 | if(SLICE(ctx->immh,3,3)!=1) { |
| 23597 | UNDEFINED; |
| 23598 | } |
| 23599 | ctx->esize = (8) << (3); |
| 23600 | ctx->datasize = ctx->esize; |
| 23601 | ctx->elements = 1; |
| 23602 | ctx->shift = ((ctx->esize) * (2))-UINT(((ctx->immh<<3)|ctx->immb)); |
| 23603 | ctx->unsigned_ = (ctx->U==1); |
| 23604 | ctx->round = (ctx->o1==1); |
| 23605 | ctx->accumulate = (ctx->o0==1); |
| 23606 | OK(ENC_SRSRA_ASISDSHF_R); |
| 23607 | } |
| 23608 | /* class iclass_simd */ |
| 23609 | /* 0|Q=x|U=0|011110|immh!=0000|immb=xxx|opcode[4:3]=00|o1=1|o0=1|opcode[0]=0|1|Rn=xxxxx|Rd=xxxxx */ |
| 23610 | if((INSWORD & 0xBF80FC00)==0xF003400 && (INSWORD & 0x780000)!=0x0) { |
| 23611 | decode_fields32(ENC_SRSRA_ASIMDSHF_R, ctx, instr); |
| 23612 | ctx->d = UINT(ctx->Rd); |
| 23613 | ctx->n = UINT(ctx->Rn); |
| 23614 | if(ctx->immh==0) { |
| 23615 | SEE /* asimdimm */; |
| 23616 | } |
| 23617 | if(((SLICE(ctx->immh,3,3)<<1)|ctx->Q)==2) { |
| 23618 | UNDEFINED; |
| 23619 | } |
| 23620 | ctx->esize = (8) << (HighestSetBit(ctx->immh)); |
| 23621 | ctx->datasize = (ctx->Q==1) ? 0x80 : 0x40; |
| 23622 | ctx->elements = ((ctx->esize) ? ((ctx->datasize) / (ctx->esize)) : 0); |
| 23623 | ctx->shift = ((ctx->esize) * (2))-UINT(((ctx->immh<<3)|ctx->immb)); |
| 23624 | ctx->unsigned_ = (ctx->U==1); |
| 23625 | ctx->round = (ctx->o1==1); |
| 23626 | ctx->accumulate = (ctx->o0==1); |
| 23627 | OK(ENC_SRSRA_ASIMDSHF_R); |
| 23628 | } |
| 23629 | return rc; |
| 23630 | } |
| 23631 | |
| 23632 | /* ssbb_dsb.xml */ |
| 23633 | int SSBB_DSB(context *ctx, Instruction *instr) |
no test coverage detected