summaryrefslogtreecommitdiff
path: root/src/VBox/Disassembler/testcase/tstAsm.mac
diff options
context:
space:
mode:
Diffstat (limited to 'src/VBox/Disassembler/testcase/tstAsm.mac')
-rw-r--r--src/VBox/Disassembler/testcase/tstAsm.mac14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/VBox/Disassembler/testcase/tstAsm.mac b/src/VBox/Disassembler/testcase/tstAsm.mac
index 0854d861..0f9b292f 100644
--- a/src/VBox/Disassembler/testcase/tstAsm.mac
+++ b/src/VBox/Disassembler/testcase/tstAsm.mac
@@ -4,7 +4,7 @@
;
;
-; Copyright (C) 2008 Oracle Corporation
+; Copyright (C) 2008-2013 Oracle Corporation
;
; This file is part of VirtualBox Open Source Edition (OSE), as
; available from http://www.virtualbox.org. This file is free software;
@@ -16,7 +16,7 @@
;
%if TEST_BITS == 64
- %define xS 8
+ %define xCB 8
%define xSP rsp
%define xBP rbp
%define xAX rax
@@ -27,7 +27,7 @@
%define xSI rsi
%endif
%if TEST_BITS == 32
- %define xS 4
+ %define xCB 4
%define xSP esp
%define xBP ebp
%define xAX eax
@@ -38,7 +38,7 @@
%define xSI esi
%endif
%if TEST_BITS == 16
- %define xS 1
+ %define xCB 2
%define xSP sp
%define xBP bp
%define xAX ax
@@ -48,7 +48,11 @@
%define xDI di
%define xSI si
%endif
-%ifndef xS
+%ifndef xCB
%error "TEST_BITS is missing or wrong."
%endif
+%if __YASM_VERSION_ID__ >= 001020001h ; v1.2.0.1 and greater, make sure to exclude v1.2.0.0.
+ %define pmulhrwa pmulhrw
+%endif
+