cbz.xml */
| 1982 | |
| 1983 | /* cbz.xml */ |
| 1984 | int CBZ(context *ctx, Instruction *instr) |
| 1985 | { |
| 1986 | int rc = DECODE_STATUS_UNMATCHED; |
| 1987 | /* class iclass_br19 */ |
| 1988 | /* sf=x|011010|op=0|imm19=xxxxxxxxxxxxxxxxxxx|Rt=xxxxx */ |
| 1989 | if((INSWORD & 0x7F000000)==0x34000000) { |
| 1990 | decode_fields32(ENC_CBZ_32_COMPBRANCH, ctx, instr); |
| 1991 | ctx->t = UINT(ctx->Rt); |
| 1992 | ctx->datasize = (ctx->sf==1) ? 0x40 : 0x20; |
| 1993 | ctx->iszero = (ctx->op==0); |
| 1994 | ctx->offset = SignExtend((ctx->imm19<<2),21); |
| 1995 | if(ctx->sf==0) OK(ENC_CBZ_32_COMPBRANCH); |
| 1996 | if(ctx->sf==1) OK(ENC_CBZ_64_COMPBRANCH); |
| 1997 | } |
| 1998 | return rc; |
| 1999 | } |
| 2000 | |
| 2001 | /* ccmn_imm.xml */ |
| 2002 | int CCMN_imm(context *ctx, Instruction *instr) |
no test coverage detected