VirtualBox

Changeset 46995 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Jul 5, 2013 9:34:17 AM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
87011
Message:

build fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/IEMAllAImpl.asm

    r46992 r46995  
    13421342 %else
    13431343        mov     T0_16, [A0]             ; T0 = dividend
    1344         mov     T1_8, A1_8              ; T1 = divisor
    1345         test    T1_16, T1_16
     1344        mov     T1, A1                  ; T1 = saved divisor (because of missing T1_8 in 32-bit)
     1345        test    A1_8, A1_8
    13461346        js      .divisor_negative
    13471347        test    T0_16, T0_16
     
    13511351        push    T0                      ; Start off like unsigned below.
    13521352        shr     T0_16, 7
    1353         cmp     T0_8, T1_8
     1353        cmp     T0_8, A1_8
    13541354        pop     T0
    13551355        jb      .div_no_overflow
    13561356        ja      .div_overflow
    13571357        and     T0_8, 0x7f              ; Special case for covering (divisor - 1).
    1358         cmp     T0_8, T1_8
     1358        cmp     T0_8, A1_8
    13591359        jae     .div_overflow
    13601360        jmp     .div_no_overflow
    13611361
    13621362.divisor_negative:
    1363         neg     T1_8
     1363        neg     A1_8
    13641364        test    T0_16, T0_16
    13651365        jns     .one_of_each
     
    13671367.both_positive:                         ; Same as unsigned shifted by sign indicator bit.
    13681368        shr     T0_16, 7
    1369         cmp     T0_8, T1_8
     1369        cmp     T0_8, A1_8
    13701370        jae     .div_overflow
    13711371.div_no_overflow:
     1372        mov     A1, T1                  ; restore divisor
    13721373 %endif
    13731374
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette