VirtualBox

Changeset 97884 in vbox


Ignore:
Timestamp:
Dec 28, 2022 1:28:15 AM (2 years ago)
Author:
vboxsync
Message:

DIS: OS/2 build fixes for the disassembler.

Location:
trunk/src/VBox/Disassembler/testcase
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Disassembler/testcase/tstDisasm-1.cpp

    r96407 r97884  
    194194    {
    195195        { "32-bit",     (uint8_t const *)(uintptr_t)TestProc32, (uintptr_t)&TestProc32_EndProc, DISCPUMODE_32BIT },
     196#ifndef RT_OS_OS2
    196197        { "64-bit",     (uint8_t const *)(uintptr_t)TestProc64, (uintptr_t)&TestProc64_EndProc, DISCPUMODE_64BIT },
     198#endif
    197199    };
    198200
  • trunk/src/VBox/Disassembler/testcase/tstDisasm-1A.asm

    r96407 r97884  
    3737BITS 32
    3838
     39%ifndef __YASM_VERSION_ID__
     40 %define __YASM_VERSION_ID__ 001010000h ; v1.2.0.0 for OS/2
     41%endif
    3942%if __YASM_VERSION_ID__ >= 001020001h ; v1.2.0.1 and greater, make sure to exclude v1.2.0.0.
    4043 %define pmulhrwa pmulhrw
     
    137140        pfmin       mm1, qword [es:esi+000101010h]
    138141        pfmul       mm5, qword [es:esi+000101000h]
     142%ifndef RT_OS_OS2 ; nasm objects to this       
    139143        pmulhrwa    mm3, qword [es:eax+0ffffffffh]
     144%endif       
    140145        pfnacc      mm4, qword [es:ebx+000101010h]
    141146        pfpnacc     mm3, qword [es:edx+000102900h]
     
    237242        vfmaddsub132pd ymm1, ymm2, ymm3
    238243
     244%ifndef RT_OS_OS2
    239245        blsr eax, ebx
    240246        blsi eax, [ebx]
     247%endif       
    241248        db 0c4h, 0e2h, 0f8h, 0f3h, 01bh ;  blsi rax, dword [ebx] - but VEX.W=1 is ignored, so same as previous
     249%ifndef RT_OS_OS2
    242250        blsmsk eax, [ebx+edi*2]
    243251        shlx eax, ebx, ecx
     252%endif       
    244253
    245254        pmovmskb eax, mm2
    246255        pmovmskb eax, xmm3
    247256        vpmovmskb eax, xmm3
     257%ifndef RT_OS_OS2       
    248258        vpmovmskb eax, ymm3
     259%endif       
    249260
    250261ENDPROC   TestProc32
Note: See TracChangeset for help on using the changeset viewer.

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