Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
fc444eba
Commit
fc444eba
authored
Feb 17, 2012
by
Evan Shaw
Committed by
Russ Cox
Feb 17, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
8a, 8l: add EMMS instruction
R=golang-dev, rsc CC=golang-dev
https://golang.org/cl/5673081
parent
a2bdb5c0
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
4 deletions
+8
-4
src/cmd/8a/lex.c
src/cmd/8a/lex.c
+1
-0
src/cmd/8l/8.out.h
src/cmd/8l/8.out.h
+2
-0
src/cmd/8l/optab.c
src/cmd/8l/optab.c
+2
-0
src/libmach/8db.c
src/libmach/8db.c
+1
-0
src/pkg/sync/atomic/asm_386.s
src/pkg/sync/atomic/asm_386.s
+2
-4
No files found.
src/cmd/8a/lex.c
View file @
fc444eba
...
@@ -666,6 +666,7 @@ struct
...
@@ -666,6 +666,7 @@ struct
"LFENCE"
,
LTYPE0
,
ALFENCE
,
"LFENCE"
,
LTYPE0
,
ALFENCE
,
"MFENCE"
,
LTYPE0
,
AMFENCE
,
"MFENCE"
,
LTYPE0
,
AMFENCE
,
"SFENCE"
,
LTYPE0
,
ASFENCE
,
"SFENCE"
,
LTYPE0
,
ASFENCE
,
"EMMS"
,
LTYPE0
,
AEMMS
,
0
0
};
};
...
...
src/cmd/8l/8.out.h
View file @
fc444eba
...
@@ -449,6 +449,8 @@ enum as
...
@@ -449,6 +449,8 @@ enum as
AMFENCE
,
AMFENCE
,
ASFENCE
,
ASFENCE
,
AEMMS
,
ALAST
ALAST
};
};
...
...
src/cmd/8l/optab.c
View file @
fc444eba
...
@@ -759,5 +759,7 @@ Optab optab[] =
...
@@ -759,5 +759,7 @@ Optab optab[] =
{
AMFENCE
,
ynone
,
Pm
,
0xae
,
0xf0
},
{
AMFENCE
,
ynone
,
Pm
,
0xae
,
0xf0
},
{
ASFENCE
,
ynone
,
Pm
,
0xae
,
0xf8
},
{
ASFENCE
,
ynone
,
Pm
,
0xae
,
0xf8
},
{
AEMMS
,
ynone
,
Pm
,
0x77
},
0
0
};
};
src/libmach/8db.c
View file @
fc444eba
...
@@ -688,6 +688,7 @@ static Optable optab0F[256]=
...
@@ -688,6 +688,7 @@ static Optable optab0F[256]=
[
0x74
]
=
{
RM
,
0
,
"PCMPEQB %m,%M"
},
[
0x74
]
=
{
RM
,
0
,
"PCMPEQB %m,%M"
},
[
0x75
]
=
{
RM
,
0
,
"PCMPEQW %m,%M"
},
[
0x75
]
=
{
RM
,
0
,
"PCMPEQW %m,%M"
},
[
0x76
]
=
{
RM
,
0
,
"PCMPEQL %m,%M"
},
[
0x76
]
=
{
RM
,
0
,
"PCMPEQL %m,%M"
},
[
0x77
]
=
{
0
,
0
,
"EMMS"
},
[
0x7E
]
=
{
RM
,
0
,
"MOV%S %M,%e"
},
[
0x7E
]
=
{
RM
,
0
,
"MOV%S %M,%e"
},
[
0x7F
]
=
{
RM
,
0
,
"MOVQ %M,%m"
},
[
0x7F
]
=
{
RM
,
0
,
"MOVQ %M,%m"
},
[
0xAE
]
=
{
RMOP
,
0
,
optab0FAE
},
[
0xAE
]
=
{
RMOP
,
0
,
optab0FAE
},
...
...
src/pkg/sync/atomic/asm_386.s
View file @
fc444eba
...
@@ -108,8 +108,7 @@ TEXT ·LoadUint64(SB),7,$0
...
@@ -108,8 +108,7 @@ TEXT ·LoadUint64(SB),7,$0
BYTE
$
0x0f
; BYTE $0x6f; BYTE $0x00
BYTE
$
0x0f
; BYTE $0x6f; BYTE $0x00
//
MOVQ
%
MM0
,
0x8
(%
ESP
)
//
MOVQ
%
MM0
,
0x8
(%
ESP
)
BYTE
$
0x0f
; BYTE $0x7f; BYTE $0x44; BYTE $0x24; BYTE $0x08
BYTE
$
0x0f
; BYTE $0x7f; BYTE $0x44; BYTE $0x24; BYTE $0x08
//
EMMS
EMMS
BYTE
$
0x0F
; BYTE $0x77
RET
RET
TEXT
·
LoadUintptr
(
SB
),7,$0
TEXT
·
LoadUintptr
(
SB
),7,$0
...
@@ -137,8 +136,7 @@ TEXT ·StoreUint64(SB),7,$0
...
@@ -137,8 +136,7 @@ TEXT ·StoreUint64(SB),7,$0
BYTE
$
0x0f
; BYTE $0x6f; BYTE $0x44; BYTE $0x24; BYTE $0x08
BYTE
$
0x0f
; BYTE $0x6f; BYTE $0x44; BYTE $0x24; BYTE $0x08
//
MOVQ
%
MM0
,
(%
EAX
)
//
MOVQ
%
MM0
,
(%
EAX
)
BYTE
$
0x0f
; BYTE $0x7f; BYTE $0x00
BYTE
$
0x0f
; BYTE $0x7f; BYTE $0x00
//
EMMS
EMMS
BYTE
$
0x0F
; BYTE $0x77
//
This
is
essentially
a
no
-
op
,
but
it
provides
required
memory
fencing
.
//
This
is
essentially
a
no
-
op
,
but
it
provides
required
memory
fencing
.
//
It
can
be
replaced
with
MFENCE
,
but
MFENCE
was
introduced
only
on
the
Pentium4
(
SSE2
)
.
//
It
can
be
replaced
with
MFENCE
,
but
MFENCE
was
introduced
only
on
the
Pentium4
(
SSE2
)
.
XORL
AX
,
AX
XORL
AX
,
AX
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment