aboutsummaryrefslogtreecommitdiff
path: root/lib/dis-arm64.inc.h
diff options
context:
space:
mode:
authorcomex2015-01-17 20:56:04 -0500
committercomex2015-01-17 20:56:16 -0500
commitb70a6008604ae5746f50d3025404b06673db48f4 (patch)
tree0fe11003e83a244f6467425c7d6020ce865ead12 /lib/dis-arm64.inc.h
parentIT, BX LR - untested (diff)
downloadsubstitute-b70a6008604ae5746f50d3025404b06673db48f4.tar.gz
arm64 transform dis, arm fixes, move to .c since i'm dumb
Diffstat (limited to 'lib/dis-arm64.inc.h')
-rw-r--r--lib/dis-arm64.inc.h12
1 files changed, 6 insertions, 6 deletions
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();
}
}