VirtualBox

Changeset 8966 in vbox for trunk


Ignore:
Timestamp:
May 20, 2008 4:48:02 PM (17 years ago)
Author:
vboxsync
Message:

ADC tests.

Location:
trunk/src/VBox/Disassembler/testcase
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Disassembler/testcase/Makefile.kmk

    r8938 r8966  
    5656# Generate the rules for creating the .bin files.
    5757VBOX_DISAS_TESTS_BIN = $(VBOX_DISAS_TESTS_BUILD) $(VBOX_DISAS_TESTS_INVALID)
    58 OTHER_CLEAN += $(addprefix $(VBOX_DISAS_TEST_PATH)/,\
     58VBOX_DISAS_TEST_CLEAN += $(addprefix $(VBOX_DISAS_TEST_PATH)/,\
    5959        $(VBOX_DISAS_TESTS_BIN:.asm=-16.bin)\
    6060        $(VBOX_DISAS_TESTS_BIN:.asm=-32.bin)\
     
    6363$(addprefix $(VBOX_DISAS_TEST_PATH)/, $(VBOX_DISAS_TESTS_BIN:.asm=-16.bin)): $(PATH_SUB_CURRENT)/$$(patsubst %-16.bin,%.asm,$$(notdir $$(@))) | $$(call DIRDEP,$$(@D))
    6464        @$(ECHO) "Assembling: $(<F) into $(@F)"
    65         $(TOOL_YASM_AS) -f bin -a x86 -DTEST_BITS=16 -o $@ $<
     65        $(TOOL_YASM_AS) -f bin -a x86 --force-strict -DTEST_BITS=16 -o $@ $<
    6666
    6767$(addprefix $(VBOX_DISAS_TEST_PATH)/, $(VBOX_DISAS_TESTS_BIN:.asm=-32.bin)): $(PATH_SUB_CURRENT)/$$(patsubst %-32.bin,%.asm,$$(notdir $$(@))) | $$(call DIRDEP,$$(@D))
    6868        @$(ECHO) "Assembling: $(<F) into $(@F)"
    69         $(TOOL_YASM_AS) -f bin -a x86 -DTEST_BITS=32 -o $@ $<
     69        $(TOOL_YASM_AS) -f bin -a x86 --force-strict -DTEST_BITS=32 -o $@ $<
    7070
    7171$(addprefix $(VBOX_DISAS_TEST_PATH)/, $(VBOX_DISAS_TESTS_BIN:.asm=-64.bin)): $(PATH_SUB_CURRENT)/$$(patsubst %-64.bin,%.asm,$$(notdir $$(@))) | $$(call DIRDEP,$$(@D))
    7272        @$(ECHO) "Assembling: $(<F) into $(@F)"
    73         $(TOOL_YASM_AS) -f bin -a x86 -DTEST_BITS=64 -o $@ $<
     73        $(TOOL_YASM_AS) -f bin -a x86 --force-strict -DTEST_BITS=64 -o $@ $<
    7474
    7575
    7676# Generate the rules for the 'build' tests.
    77 OTHER_CLEAN += $(addprefix $(VBOX_DISAS_TEST_PATH)/,\
     77VBOX_DISAS_TEST_CLEAN += $(addprefix $(VBOX_DISAS_TEST_PATH)/,\
    7878        $(VBOX_DISAS_TESTS_BUILD:.asm=-16-disas.asm)\
    7979        $(VBOX_DISAS_TESTS_BUILD:.asm=-32-disas.asm)\
     
    9393
    9494
    95 OTHER_CLEAN += $(addprefix $(VBOX_DISAS_TEST_PATH)/,\
     95VBOX_DISAS_TEST_CLEAN += $(addprefix $(VBOX_DISAS_TEST_PATH)/,\
    9696        $(VBOX_DISAS_TESTS_BUILD:.asm=-16-disas.bin)\
    9797        $(VBOX_DISAS_TESTS_BUILD:.asm=-32-disas.bin)\
     
    100100$(addprefix $(VBOX_DISAS_TEST_PATH)/, $(VBOX_DISAS_TESTS_BUILD:.asm=-16-disas.bin)): $$(subst .bin,.asm,$$@) | $$(call DIRDEP,$$(@D))
    101101        @$(ECHO) "Re-assembling: $(<F) into $(@F)"
    102         $(TOOL_YASM_AS) -f bin -a x86 -DTEST_BITS=16 -o $@ $<
     102        $(TOOL_YASM_AS) -f bin -a x86 --force-strict -DTEST_BITS=16 -o $@ $<
    103103
    104104$(addprefix $(VBOX_DISAS_TEST_PATH)/, $(VBOX_DISAS_TESTS_BUILD:.asm=-32-disas.bin)): $$(subst .bin,.asm,$$@) | $$(call DIRDEP,$$(@D))
    105105        @$(ECHO) "Re-assembling: $(<F) into $(@F)"
    106         $(TOOL_YASM_AS) -f bin -a x86 -DTEST_BITS=32 -o $@ $<
     106        $(TOOL_YASM_AS) -f bin -a x86 --force-strict -DTEST_BITS=32 -o $@ $<
    107107
    108108$(addprefix $(VBOX_DISAS_TEST_PATH)/, $(VBOX_DISAS_TESTS_BUILD:.asm=-64-disas.bin)): $$(subst .bin,.asm,$$@) | $$(call DIRDEP,$$(@D))
    109109        @$(ECHO) "Re-assembling: $(<F) into $(@F)"
    110         $(TOOL_YASM_AS) -f bin -a x86 -DTEST_BITS=64 -o $@ $<
     110        $(TOOL_YASM_AS) -f bin -a x86 --force-strict -DTEST_BITS=64 -o $@ $<
    111111
    112112
     
    144144        @$(APPEND) $@ "done"
    145145
     146# Add the .tst to the clean up.
     147VBOX_DISAS_TEST_CLEAN += $(VBOX_DISAS_TESTS)
     148OTHER_CLEAN += $(VBOX_DISAS_TEST_CLEAN)
    146149
    147 # Add the .tst to the clean up.
    148 OTHER_CLEAN += $(VBOX_DISAS_TESTS)
     150# We don't want any of the tests rules to run in parallel
     151# because the output will be difficult to follow.
     152.NOTPARALLEL: $(VBOX_DISAS_TEST_CLEAN)
    149153
    150154
  • trunk/src/VBox/Disassembler/testcase/tstAsmLock-1.asm

    r8937 r8966  
    2424;
    2525
     26%include "tstAsm.mac"
     27
    2628    BITS TEST_BITS
    2729
     30; The disassembler doesn't do imm32 right for  64-bit stuff, so disable it for now.
     31;%if TEST_BITS == 64
     32; %define WITH_64_BIT_TESTS
     33;%endif
     34
    2835    ; ADC
     36        ; 80 /2 ib      ADC reg/mem8, imm8 - sans reg dst
     37    lock adc byte [1000h], byte 8
     38    lock adc byte [xBX], byte 8
     39    lock adc byte [xDI], byte 8
     40        ; 81 /2 i[wd]   ADC reg/memX, immX - sans reg dst
     41    lock adc word [1000h], word 090cch
     42    lock adc word [xBX], word 090cch
     43    lock adc word [xDI], word 090cch
     44    lock adc dword [1000h], dword 0cc90cc90h
     45    lock adc dword [xBX], dword 0cc90cc90h
     46    lock adc dword [xDI], dword 0cc90cc90h
     47%ifdef WITH_64_BIT_TESTS
     48    lock adc qword [1000h], dword 0cc90cc90h
     49    lock adc qword [rbx], dword 0cc90cc90h
     50    lock adc qword [rdi], dword 0cc90cc90h
     51    lock adc qword [r9], dword 0cc90cc90h
     52%endif
     53        ; 83 /2 ib      ADC reg/memX, imm8 - sans reg dst
     54    lock adc word [1000h], byte 07fh
     55    lock adc word [xBX], byte 07fh
     56    lock adc word [xDI], byte 07fh
     57    lock adc dword [1000h], byte 07fh
     58    lock adc dword [xBX], byte 07fh
     59    lock adc dword [xDI], byte 07fh
     60%ifdef WITH_64_BIT_TESTS
     61    lock adc qword [1000h], byte 07fh
     62    lock adc qword [rbx], byte 07fh
     63    lock adc qword [rdi], byte 07fh
     64    lock adc qword [r10], byte 07fh
     65%endif
     66
     67        ; 10 /r         ADC reg/mem8, reg8 - sans reg dst
     68    lock adc byte [1000h], bl
     69    lock adc byte [xBX], bl
     70    lock adc byte [xSI], bl
     71        ; 11 /r         ADC reg/memX, regX - sans reg dst
     72    lock adc word [1000h], bx
     73    lock adc word [xBX], bx
     74    lock adc word [xSI], bx
     75    lock adc dword [1000h], ebx
     76    lock adc dword [xBX], ebx
     77    lock adc dword [xSI], ebx
     78%ifdef WITH_64_BIT_TESTS
     79    lock adc qword [1000h], rbx
     80    lock adc qword [rbx], rbx
     81    lock adc qword [rsi], rbx
     82    lock adc qword [r11], rbx
     83%endif
    2984
    3085    ; ADD
     
    45100    ; XADD
    46101
     102%if 1
    47103    ; XCHG
    48104    lock xchg [eax], eax
     
    682738    xor edi, esi
    683739    xor edi, edi
    684 
    685 
     740%endif
  • trunk/src/VBox/Disassembler/testcase/tstAsmLock-2.asm

    r8937 r8966  
    2323;
    2424
     25%include "tstAsm.mac"
     26
    2527    BITS TEST_BITS
     28; The disassembler doesn't do imm32 right for  64-bit stuff, so disable it for now.
     29;%if TEST_BITS == 64
     30; %define WITH_64_BIT_TESTS
     31;%endif
    2632
     33    ;
    2734    ; ADC
     35    ;
     36        ; 14 ib         ADC AL, imm8
     37    lock adc al, byte 8
     38        ; 15 i[wd]      ADC [ER]AX, immX
     39    lock adc ax, word 16
     40    lock adc eax, dword 128
     41%ifdef WITH_64_BIT_TESTS
     42    lock adc rax, dword 256
     43    lock adc rax, dword 0cc90cc90h
     44%endif
     45        ; 80 /2 ib      ADC reg/mem8, imm8 - with reg dst
     46    lock adc cl, byte 8
     47        ; 81 /2 i[wd]   ADC reg/memX, immX - with reg dst
     48    lock adc cx, word 1000h
     49    lock adc ecx, dword 100000h
     50%ifdef WITH_64_BIT_TESTS
     51    lock adc rcx, dword 100000h
     52%endif
     53        ; 83 /2 ib      ADC reg/memX, imm8 - with reg dst
     54    lock adc cx, byte 07fh
     55    lock adc ecx, byte 07fh
     56%ifdef WITH_64_BIT_TESTS
     57    lock adc rcx, byte 07fh
     58%endif
     59
     60        ; 10 /r         ADC reg/mem8, reg8 - with reg dst
     61    lock adc cl, bl
     62        ; 11 /r         ADC reg/memX, regX - with reg dst
     63    lock adc cx, bx
     64    lock adc ecx, ebx
     65%ifdef WITH_64_BIT_TESTS
     66    lock adc rcx, rbx
     67%endif
     68        ; 12 /r         ADC reg8, reg/mem8
     69    lock adc cl, [0badh]
     70        ; 13 /r         ADC regX, reg/memX
     71    lock adc cx, [0badh]
     72    lock adc ecx, [0badh]
     73%ifdef WITH_64_BIT_TESTS
     74    lock adc rcx, [0badh]
     75%endif
     76
    2877    ; ADD
    2978    ; AND
  • trunk/src/VBox/Disassembler/testcase/tstAsmLock-3.asm

    r8937 r8966  
    2222; additional information or have any questions.
    2323;
     24
     25%include "tstAsm.mac"
    2426
    2527    BITS TEST_BITS
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