- Timestamp:
- May 20, 2008 4:48:02 PM (17 years ago)
- Location:
- trunk/src/VBox/Disassembler/testcase
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Disassembler/testcase/Makefile.kmk
r8938 r8966 56 56 # Generate the rules for creating the .bin files. 57 57 VBOX_DISAS_TESTS_BIN = $(VBOX_DISAS_TESTS_BUILD) $(VBOX_DISAS_TESTS_INVALID) 58 OTHER_CLEAN += $(addprefix $(VBOX_DISAS_TEST_PATH)/,\58 VBOX_DISAS_TEST_CLEAN += $(addprefix $(VBOX_DISAS_TEST_PATH)/,\ 59 59 $(VBOX_DISAS_TESTS_BIN:.asm=-16.bin)\ 60 60 $(VBOX_DISAS_TESTS_BIN:.asm=-32.bin)\ … … 63 63 $(addprefix $(VBOX_DISAS_TEST_PATH)/, $(VBOX_DISAS_TESTS_BIN:.asm=-16.bin)): $(PATH_SUB_CURRENT)/$$(patsubst %-16.bin,%.asm,$$(notdir $$(@))) | $$(call DIRDEP,$$(@D)) 64 64 @$(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 $@ $< 66 66 67 67 $(addprefix $(VBOX_DISAS_TEST_PATH)/, $(VBOX_DISAS_TESTS_BIN:.asm=-32.bin)): $(PATH_SUB_CURRENT)/$$(patsubst %-32.bin,%.asm,$$(notdir $$(@))) | $$(call DIRDEP,$$(@D)) 68 68 @$(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 $@ $< 70 70 71 71 $(addprefix $(VBOX_DISAS_TEST_PATH)/, $(VBOX_DISAS_TESTS_BIN:.asm=-64.bin)): $(PATH_SUB_CURRENT)/$$(patsubst %-64.bin,%.asm,$$(notdir $$(@))) | $$(call DIRDEP,$$(@D)) 72 72 @$(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 $@ $< 74 74 75 75 76 76 # Generate the rules for the 'build' tests. 77 OTHER_CLEAN += $(addprefix $(VBOX_DISAS_TEST_PATH)/,\77 VBOX_DISAS_TEST_CLEAN += $(addprefix $(VBOX_DISAS_TEST_PATH)/,\ 78 78 $(VBOX_DISAS_TESTS_BUILD:.asm=-16-disas.asm)\ 79 79 $(VBOX_DISAS_TESTS_BUILD:.asm=-32-disas.asm)\ … … 93 93 94 94 95 OTHER_CLEAN += $(addprefix $(VBOX_DISAS_TEST_PATH)/,\95 VBOX_DISAS_TEST_CLEAN += $(addprefix $(VBOX_DISAS_TEST_PATH)/,\ 96 96 $(VBOX_DISAS_TESTS_BUILD:.asm=-16-disas.bin)\ 97 97 $(VBOX_DISAS_TESTS_BUILD:.asm=-32-disas.bin)\ … … 100 100 $(addprefix $(VBOX_DISAS_TEST_PATH)/, $(VBOX_DISAS_TESTS_BUILD:.asm=-16-disas.bin)): $$(subst .bin,.asm,$$@) | $$(call DIRDEP,$$(@D)) 101 101 @$(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 $@ $< 103 103 104 104 $(addprefix $(VBOX_DISAS_TEST_PATH)/, $(VBOX_DISAS_TESTS_BUILD:.asm=-32-disas.bin)): $$(subst .bin,.asm,$$@) | $$(call DIRDEP,$$(@D)) 105 105 @$(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 $@ $< 107 107 108 108 $(addprefix $(VBOX_DISAS_TEST_PATH)/, $(VBOX_DISAS_TESTS_BUILD:.asm=-64-disas.bin)): $$(subst .bin,.asm,$$@) | $$(call DIRDEP,$$(@D)) 109 109 @$(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 $@ $< 111 111 112 112 … … 144 144 @$(APPEND) $@ "done" 145 145 146 # Add the .tst to the clean up. 147 VBOX_DISAS_TEST_CLEAN += $(VBOX_DISAS_TESTS) 148 OTHER_CLEAN += $(VBOX_DISAS_TEST_CLEAN) 146 149 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) 149 153 150 154 -
trunk/src/VBox/Disassembler/testcase/tstAsmLock-1.asm
r8937 r8966 24 24 ; 25 25 26 %include "tstAsm.mac" 27 26 28 BITS TEST_BITS 27 29 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 28 35 ; 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 29 84 30 85 ; ADD … … 45 100 ; XADD 46 101 102 %if 1 47 103 ; XCHG 48 104 lock xchg [eax], eax … … 682 738 xor edi, esi 683 739 xor edi, edi 684 685 740 %endif -
trunk/src/VBox/Disassembler/testcase/tstAsmLock-2.asm
r8937 r8966 23 23 ; 24 24 25 %include "tstAsm.mac" 26 25 27 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 26 32 33 ; 27 34 ; 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 28 77 ; ADD 29 78 ; AND -
trunk/src/VBox/Disassembler/testcase/tstAsmLock-3.asm
r8937 r8966 22 22 ; additional information or have any questions. 23 23 ; 24 25 %include "tstAsm.mac" 24 26 25 27 BITS TEST_BITS
Note:
See TracChangeset
for help on using the changeset viewer.