aboutsummaryrefslogtreecommitdiff
path: root/dynasm/dasm_arm.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--dynasm/dasm_arm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/dynasm/dasm_arm.h b/dynasm/dasm_arm.h
index a43f7c66..1d404ccd 100644
--- a/dynasm/dasm_arm.h
+++ b/dynasm/dasm_arm.h
@@ -254,6 +254,7 @@ void dasm_put(Dst_DECL, int start, ...)
254 case DASM_IMMV8: 254 case DASM_IMMV8:
255 CK((n & 3) == 0, RANGE_I); 255 CK((n & 3) == 0, RANGE_I);
256 n >>= 2; 256 n >>= 2;
257 /* fallthrough */
257 case DASM_IMML8: 258 case DASM_IMML8:
258 case DASM_IMML12: 259 case DASM_IMML12:
259 CK(n >= 0 ? ((n>>((ins>>5)&31)) == 0) : 260 CK(n >= 0 ? ((n>>((ins>>5)&31)) == 0) :
@@ -371,6 +372,7 @@ int dasm_encode(Dst_DECL, void *buffer)
371 break; 372 break;
372 case DASM_REL_LG: 373 case DASM_REL_LG:
373 CK(n >= 0, UNDEF_LG); 374 CK(n >= 0, UNDEF_LG);
375 /* fallthrough */
374 case DASM_REL_PC: 376 case DASM_REL_PC:
375 CK(n >= 0, UNDEF_PC); 377 CK(n >= 0, UNDEF_PC);
376 n = *DASM_POS2PTR(D, n) - (int)((char *)cp - base) - 4; 378 n = *DASM_POS2PTR(D, n) - (int)((char *)cp - base) - 4;