From b70a6008604ae5746f50d3025404b06673db48f4 Mon Sep 17 00:00:00 2001 From: comex Date: Sat, 17 Jan 2015 20:56:04 -0500 Subject: arm64 transform dis, arm fixes, move to .c since i'm dumb --- lib/dis-arm64.inc.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'lib/dis-arm64.inc.h') diff --git a/lib/dis-arm64.inc.h b/lib/dis-arm64.inc.h index 388ac19..5317b89 100644 --- a/lib/dis-arm64.inc.h +++ b/lib/dis-arm64.inc.h @@ -17,16 +17,16 @@ static INLINE void P(am_ldrlit_label_unk_Rt_6_LDRDl)(tdis_ctx ctx, struct bitsli enum pcrel_load_mode mode; if ((ctx->op >> 26) & 1) { switch (ctx->op >> 30) { - case 0b00: mode = PLM_U32_SIMD; break; - case 0b01: mode = PLM_U64_SIMD; break; - case 0b10: mode = PLM_U128_SIMD; break; + case 0: mode = PLM_U32_SIMD; break; + case 1: mode = PLM_U64_SIMD; break; + case 2: mode = PLM_U128_SIMD; break; default: __builtin_abort(); } } else { switch (ctx->op >> 30) { - case 0b00: mode = PLM_U32; break; - case 0b01: mode = PLM_U64; break; - case 0b10: mode = PLM_S32; break; + case 0: mode = PLM_U32; break; + case 1: mode = PLM_U64; break; + case 2: mode = PLM_S32; break; default: __builtin_abort(); } } -- cgit v1.2.3