summaryrefslogtreecommitdiff
path: root/src/mesa/x86/assyntax.h
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2002-03-07 21:40:08 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2002-03-07 21:40:08 +0000
commit0b2fa873c6da02f169a76d74d3bedd91236f8e28 (patch)
tree505c779a78d475869f837a371ea65979ec3a0a6b /src/mesa/x86/assyntax.h
parentc5a76cbed41b5816d2f5284f90c70364b062aea4 (diff)
syntax fixes for Solaris (David Dawes)
Diffstat (limited to 'src/mesa/x86/assyntax.h')
-rw-r--r--src/mesa/x86/assyntax.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/mesa/x86/assyntax.h b/src/mesa/x86/assyntax.h
index 442d21b2a7..8acc6d031d 100644
--- a/src/mesa/x86/assyntax.h
+++ b/src/mesa/x86/assyntax.h
@@ -1,4 +1,4 @@
-/* $Id: assyntax.h,v 1.17 2002/01/04 14:35:46 brianp Exp $ */
+/* $Id: assyntax.h,v 1.18 2002/03/07 21:40:08 brianp Exp $ */
#ifndef __ASSYNTAX_H__
#define __ASSYNTAX_H__
@@ -69,6 +69,11 @@
#if !(defined(NASM_ASSEMBLER) || defined(MASM_ASSEMBLER))
+/* Default to ATT_ASSEMBLER when SVR4 or SYSV are defined */
+#if (defined(SVR4) || defined(SYSV)) && !defined(GNU_ASSEMBLER)
+#define ATT_ASSEMBLER
+#endif
+
#if !defined(ATT_ASSEMBLER) && !defined(GNU_ASSEMBLER) && !defined(ACK_ASSEMBLER)
#define GNU_ASSEMBLER
#endif
@@ -200,6 +205,11 @@
#define _STX6 %st(6)
#define _STX7 %st(7)
#define ST(x) CONCAT(_STX,x)
+#ifdef GNU_ASSEMBLER
+#define ST0 %st(0)
+#else
+#define ST0 %st
+#endif
/* MMX Registers */
#define MM0 %mm0
#define MM1 %mm1
@@ -858,6 +868,7 @@
#if defined(NASM_ASSEMBLER)
#define ST(n) st ## n
+#define ST0 st0
#define TBYTE_PTR tword
#define QWORD_PTR qword