urshr_advsimd.xml */
| 29520 | |
| 29521 | /* urshr_advsimd.xml */ |
| 29522 | int URSHR_advsimd(context *ctx, Instruction *instr) |
| 29523 | { |
| 29524 | int rc = DECODE_STATUS_UNMATCHED; |
| 29525 | /* class iclass_sisd */ |
| 29526 | /* 01|U=1|111110|immh!=0000|immb=xxx|opcode[4:3]=00|o1=1|o0=0|opcode[0]=0|1|Rn=xxxxx|Rd=xxxxx */ |
| 29527 | if((INSWORD & 0xFF80FC00)==0x7F002400 && (INSWORD & 0x780000)!=0x0) { |
| 29528 | decode_fields32(ENC_URSHR_ASISDSHF_R, ctx, instr); |
| 29529 | ctx->d = UINT(ctx->Rd); |
| 29530 | ctx->n = UINT(ctx->Rn); |
| 29531 | if(SLICE(ctx->immh,3,3)!=1) { |
| 29532 | UNDEFINED; |
| 29533 | } |
| 29534 | ctx->esize = (8) << (3); |
| 29535 | ctx->datasize = ctx->esize; |
| 29536 | ctx->elements = 1; |
| 29537 | ctx->shift = ((ctx->esize) * (2))-UINT(((ctx->immh<<3)|ctx->immb)); |
| 29538 | ctx->unsigned_ = (ctx->U==1); |
| 29539 | ctx->round = (ctx->o1==1); |
| 29540 | ctx->accumulate = (ctx->o0==1); |
| 29541 | OK(ENC_URSHR_ASISDSHF_R); |
| 29542 | } |
| 29543 | /* class iclass_simd */ |
| 29544 | /* 0|Q=x|U=1|011110|immh!=0000|immb=xxx|opcode[4:3]=00|o1=1|o0=0|opcode[0]=0|1|Rn=xxxxx|Rd=xxxxx */ |
| 29545 | if((INSWORD & 0xBF80FC00)==0x2F002400 && (INSWORD & 0x780000)!=0x0) { |
| 29546 | decode_fields32(ENC_URSHR_ASIMDSHF_R, ctx, instr); |
| 29547 | ctx->d = UINT(ctx->Rd); |
| 29548 | ctx->n = UINT(ctx->Rn); |
| 29549 | if(ctx->immh==0) { |
| 29550 | SEE /* asimdimm */; |
| 29551 | } |
| 29552 | if(((SLICE(ctx->immh,3,3)<<1)|ctx->Q)==2) { |
| 29553 | UNDEFINED; |
| 29554 | } |
| 29555 | ctx->esize = (8) << (HighestSetBit(ctx->immh)); |
| 29556 | ctx->datasize = (ctx->Q==1) ? 0x80 : 0x40; |
| 29557 | ctx->elements = ((ctx->esize) ? ((ctx->datasize) / (ctx->esize)) : 0); |
| 29558 | ctx->shift = ((ctx->esize) * (2))-UINT(((ctx->immh<<3)|ctx->immb)); |
| 29559 | ctx->unsigned_ = (ctx->U==1); |
| 29560 | ctx->round = (ctx->o1==1); |
| 29561 | ctx->accumulate = (ctx->o0==1); |
| 29562 | OK(ENC_URSHR_ASIMDSHF_R); |
| 29563 | } |
| 29564 | return rc; |
| 29565 | } |
| 29566 | |
| 29567 | /* ursqrte_advsimd.xml */ |
| 29568 | int URSQRTE_advsimd(context *ctx, Instruction *instr) |
no test coverage detected