Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
nettle
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Wim Lewis
nettle
Commits
05964538
Commit
05964538
authored
12 years ago
by
Martin Storsjö
Committed by
Niels Möller
12 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Use movdqu instead of movdqa for saving xmm registers
The stack is not guaranteed to be 16-byte aligned on win64.
parent
508a312a
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
ChangeLog
+3
-0
3 additions, 0 deletions
ChangeLog
x86_64/machine.m4
+20
-20
20 additions, 20 deletions
x86_64/machine.m4
with
23 additions
and
20 deletions
ChangeLog
+
3
−
0
View file @
05964538
2013-04-23 Niels Möller <nisse@lysator.liu.se>
2013-04-23 Niels Möller <nisse@lysator.liu.se>
From Martin Storsjö:
From Martin Storsjö:
* x86_64/machine.m4 (W64_ENTRY): Use movdqu instead of movdqa for
saving xmm registers, since the stack is not guaranteed to be
16-byte aligned on win64.
* Makefile.in: Consistently use EXEEXT_FOR_BUILD.
* Makefile.in: Consistently use EXEEXT_FOR_BUILD.
2013-04-21 Niels Möller <nisse@lysator.liu.se>
2013-04-21 Niels Möller <nisse@lysator.liu.se>
...
...
This diff is collapsed.
Click to expand it.
x86_64/machine.m4
+
20
−
20
View file @
05964538
...
@@ -71,34 +71,34 @@ define(<W64_ENTRY>, <
...
@@ -71,34 +71,34 @@ define(<W64_ENTRY>, <
ifelse(W64_ABI,yes,[
ifelse(W64_ABI,yes,[
ifelse(eval($2 > 6), 1, [
ifelse(eval($2 > 6), 1, [
sub [$]eval(8 + 16*($2 - 6)), %rsp
sub [$]eval(8 + 16*($2 - 6)), %rsp
movdq
a
%xmm6, 0(%rsp)
movdq
u
%xmm6, 0(%rsp)
])
])
ifelse(eval($2 > 7), 1, [
ifelse(eval($2 > 7), 1, [
movdq
a
%xmm7, 16(%rsp)
movdq
u
%xmm7, 16(%rsp)
])
])
ifelse(eval($2 > 8), 1, [
ifelse(eval($2 > 8), 1, [
movdq
a
%xmm8, 32(%rsp)
movdq
u
%xmm8, 32(%rsp)
])
])
ifelse(eval($2 > 9), 1, [
ifelse(eval($2 > 9), 1, [
movdq
a
%xmm9, 48(%rsp)
movdq
u
%xmm9, 48(%rsp)
])
])
ifelse(eval($2 > 10), 1, [
ifelse(eval($2 > 10), 1, [
movdq
a
%xmm10, 64(%rsp)
movdq
u
%xmm10, 64(%rsp)
])
])
ifelse(eval($2 > 11), 1, [
ifelse(eval($2 > 11), 1, [
movdq
a
%xmm11, 80(%rsp)
movdq
u
%xmm11, 80(%rsp)
])
])
ifelse(eval($2 > 12), 1, [
ifelse(eval($2 > 12), 1, [
movdq
a
%xmm12, 96(%rsp)
movdq
u
%xmm12, 96(%rsp)
])
])
ifelse(eval($2 > 13), 1, [
ifelse(eval($2 > 13), 1, [
movdq
a
%xmm13, 112(%rsp)
movdq
u
%xmm13, 112(%rsp)
])
])
ifelse(eval($2 > 14), 1, [
ifelse(eval($2 > 14), 1, [
movdq
a
%xmm14, 128(%rsp)
movdq
u
%xmm14, 128(%rsp)
])
])
ifelse(eval($2 > 15), 1, [
ifelse(eval($2 > 15), 1, [
movdq
a
%xmm15, 144(%rsp)
movdq
u
%xmm15, 144(%rsp)
])
])
ifelse(eval($1 >= 1), 1, [
ifelse(eval($1 >= 1), 1, [
push %rdi
push %rdi
...
@@ -133,34 +133,34 @@ define(<W64_EXIT>, <
...
@@ -133,34 +133,34 @@ define(<W64_EXIT>, <
pop %rdi
pop %rdi
])
])
ifelse(eval($2 > 15), 1, [
ifelse(eval($2 > 15), 1, [
movdq
a
144(%rsp), %xmm15
movdq
u
144(%rsp), %xmm15
])
])
ifelse(eval($2 > 14), 1, [
ifelse(eval($2 > 14), 1, [
movdq
a
128(%rsp), %xmm14
movdq
u
128(%rsp), %xmm14
])
])
ifelse(eval($2 > 13), 1, [
ifelse(eval($2 > 13), 1, [
movdq
a
112(%rsp), %xmm13
movdq
u
112(%rsp), %xmm13
])
])
ifelse(eval($2 > 12), 1, [
ifelse(eval($2 > 12), 1, [
movdq
a
96(%rsp), %xmm12
movdq
u
96(%rsp), %xmm12
])
])
ifelse(eval($2 > 11), 1, [
ifelse(eval($2 > 11), 1, [
movdq
a
80(%rsp), %xmm11
movdq
u
80(%rsp), %xmm11
])
])
ifelse(eval($2 > 10), 1, [
ifelse(eval($2 > 10), 1, [
movdq
a
64(%rsp), %xmm10
movdq
u
64(%rsp), %xmm10
])
])
ifelse(eval($2 > 9), 1, [
ifelse(eval($2 > 9), 1, [
movdq
a
48(%rsp), %xmm9
movdq
u
48(%rsp), %xmm9
])
])
ifelse(eval($2 > 8), 1, [
ifelse(eval($2 > 8), 1, [
movdq
a
32(%rsp), %xmm8
movdq
u
32(%rsp), %xmm8
])
])
ifelse(eval($2 > 7), 1, [
ifelse(eval($2 > 7), 1, [
movdq
a
16(%rsp), %xmm7
movdq
u
16(%rsp), %xmm7
])
])
ifelse(eval($2 > 6), 1, [
ifelse(eval($2 > 6), 1, [
movdq
a
0(%rsp), %xmm6
movdq
u
0(%rsp), %xmm6
add [$]eval(8 + 16*($2 - 6)), %rsp
add [$]eval(8 + 16*($2 - 6)), %rsp
])
])
])
])
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment