ssra_advsimd.xml */
| 23762 | |
| 23763 | /* ssra_advsimd.xml */ |
| 23764 | int SSRA_advsimd(context *ctx, Instruction *instr) |
| 23765 | { |
| 23766 | int rc = DECODE_STATUS_UNMATCHED; |
| 23767 | /* class iclass_sisd */ |
| 23768 | /* 01|U=0|111110|immh!=0000|immb=xxx|opcode[4:3]=00|o1=0|o0=1|opcode[0]=0|1|Rn=xxxxx|Rd=xxxxx */ |
| 23769 | if((INSWORD & 0xFF80FC00)==0x5F001400 && (INSWORD & 0x780000)!=0x0) { |
| 23770 | decode_fields32(ENC_SSRA_ASISDSHF_R, ctx, instr); |
| 23771 | ctx->d = UINT(ctx->Rd); |
| 23772 | ctx->n = UINT(ctx->Rn); |
| 23773 | if(SLICE(ctx->immh,3,3)!=1) { |
| 23774 | UNDEFINED; |
| 23775 | } |
| 23776 | ctx->esize = (8) << (3); |
| 23777 | ctx->datasize = ctx->esize; |
| 23778 | ctx->elements = 1; |
| 23779 | ctx->shift = ((ctx->esize) * (2))-UINT(((ctx->immh<<3)|ctx->immb)); |
| 23780 | ctx->unsigned_ = (ctx->U==1); |
| 23781 | ctx->round = (ctx->o1==1); |
| 23782 | ctx->accumulate = (ctx->o0==1); |
| 23783 | OK(ENC_SSRA_ASISDSHF_R); |
| 23784 | } |
| 23785 | /* class iclass_simd */ |
| 23786 | /* 0|Q=x|U=0|011110|immh!=0000|immb=xxx|opcode[4:3]=00|o1=0|o0=1|opcode[0]=0|1|Rn=xxxxx|Rd=xxxxx */ |
| 23787 | if((INSWORD & 0xBF80FC00)==0xF001400 && (INSWORD & 0x780000)!=0x0) { |
| 23788 | decode_fields32(ENC_SSRA_ASIMDSHF_R, ctx, instr); |
| 23789 | ctx->d = UINT(ctx->Rd); |
| 23790 | ctx->n = UINT(ctx->Rn); |
| 23791 | if(ctx->immh==0) { |
| 23792 | SEE /* asimdimm */; |
| 23793 | } |
| 23794 | if(((SLICE(ctx->immh,3,3)<<1)|ctx->Q)==2) { |
| 23795 | UNDEFINED; |
| 23796 | } |
| 23797 | ctx->esize = (8) << (HighestSetBit(ctx->immh)); |
| 23798 | ctx->datasize = (ctx->Q==1) ? 0x80 : 0x40; |
| 23799 | ctx->elements = ((ctx->esize) ? ((ctx->datasize) / (ctx->esize)) : 0); |
| 23800 | ctx->shift = ((ctx->esize) * (2))-UINT(((ctx->immh<<3)|ctx->immb)); |
| 23801 | ctx->unsigned_ = (ctx->U==1); |
| 23802 | ctx->round = (ctx->o1==1); |
| 23803 | ctx->accumulate = (ctx->o0==1); |
| 23804 | OK(ENC_SSRA_ASIMDSHF_R); |
| 23805 | } |
| 23806 | return rc; |
| 23807 | } |
| 23808 | |
| 23809 | /* ssubl_advsimd.xml */ |
| 23810 | int SSUBL_advsimd(context *ctx, Instruction *instr) |
no test coverage detected