summaryrefslogtreecommitdiff
path: root/mpn/x86_64/dos64.m4
diff options
context:
space:
mode:
Diffstat (limited to 'mpn/x86_64/dos64.m4')
-rw-r--r--mpn/x86_64/dos64.m423
1 files changed, 14 insertions, 9 deletions
diff --git a/mpn/x86_64/dos64.m4 b/mpn/x86_64/dos64.m4
index c1ae46c04..6263f85f8 100644
--- a/mpn/x86_64/dos64.m4
+++ b/mpn/x86_64/dos64.m4
@@ -18,15 +18,26 @@ dnl along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
define(`HOST_DOS64')
+
+dnl On DOS64 we always generate position-independent-code
+dnl
+
+define(`PIC')
+
+
define(`LEA',`
lea $1(%rip), $2
')
+
+dnl Usage: JUMPTABSECT
+
define(`JUMPTABSECT', `RODATA')
-ifdef(`PIC',
- `define(`JMPENT', `.long $1-$2')',
- `define(`JMPENT', `.quad $1')')
+
+dnl Usage: JMPENT(targlabel,tablabel)
+
+define(`JMPENT', `.long $1-$2')
dnl Usage: FUNC_ENTRY(nregparmas)
@@ -52,12 +63,6 @@ define(`FUNC_EXIT',
pop %rdi')
-dnl On DOS64 we always generate position-independent-code
-dnl
-
-define(`PIC')
-
-
dnl Target ABI macros. For DOS64 we override the defaults.
define(`IFDOS', `$1')