Replace movw with mov and orr
authorPeter Michael Green <plugwash@raspbian.org>
Tue, 19 Mar 2019 01:46:21 +0000 (01:46 +0000)
committerPeter Michael Green <plugwash@raspbian.org>
Tue, 19 Mar 2019 01:46:21 +0000 (01:46 +0000)
Gbp-Pq: Name replace-movw.patch

runtime/interpreter/mterp/out/mterp_arm.S

index 7cc3b2c77a8fe52f27c389e69ef03f148b7bd7c9..ff914a88710cd5674cfc6174898852013ad83aa8 100644 (file)
@@ -7755,12 +7755,14 @@ d2l_doconv:
     lsl r2, r1, #1
     lsr r2, r2, #21
     @ end replacement of ubfx    r2, r1, #20, #11            @ grab the exponent
-    movw    r3, #0x43e
+    mov     r3, #0x03e
+    orr     r3, #0x400
     cmp     r2, r3                      @ MINLONG < x > MAXLONG?
     bhs     d2l_special_cases
     b       __aeabi_d2lz                @ tail call to convert double to long
 d2l_special_cases:
-    movw    r3, #0x7ff
+    mov     r3, #0x0ff
+    orr     r3, #0x700
     cmp     r2, r3
     beq     d2l_maybeNaN                @ NaN?
 d2l_notNaN: