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
baea3e94
Commit
baea3e94
authored
Feb 09, 2010
by
Evan Shaw
Committed by
Russ Cox
Feb 09, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
8a/8l: Added CMOVcc instructions
R=rsc CC=golang-dev
https://golang.org/cl/204067
parent
d3be2e3e
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
100 additions
and
0 deletions
+100
-0
src/cmd/8a/lex.c
src/cmd/8a/lex.c
+33
-0
src/cmd/8l/8.out.h
src/cmd/8l/8.out.h
+34
-0
src/cmd/8l/optab.c
src/cmd/8l/optab.c
+33
-0
No files found.
src/cmd/8a/lex.c
View file @
baea3e94
...
@@ -554,6 +554,39 @@ struct
...
@@ -554,6 +554,39 @@ struct
"XORL"
,
LTYPE3
,
AXORL
,
"XORL"
,
LTYPE3
,
AXORL
,
"XORW"
,
LTYPE3
,
AXORW
,
"XORW"
,
LTYPE3
,
AXORW
,
"CMOVLCC"
,
LTYPE3
,
ACMOVLCC
,
"CMOVLCS"
,
LTYPE3
,
ACMOVLCS
,
"CMOVLEQ"
,
LTYPE3
,
ACMOVLEQ
,
"CMOVLGE"
,
LTYPE3
,
ACMOVLGE
,
"CMOVLGT"
,
LTYPE3
,
ACMOVLGT
,
"CMOVLHI"
,
LTYPE3
,
ACMOVLHI
,
"CMOVLLE"
,
LTYPE3
,
ACMOVLLE
,
"CMOVLLS"
,
LTYPE3
,
ACMOVL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MOVLMI
,
yml_rl
,
Pm
,
0x48
},
{
ACMOVLNE
,
yml_rl
,
Pm
,
0x45
},
{
ACMOVLOC
,
yml_rl
,
Pm
,
0x41
},
{
ACMOVLOS
,
yml_rl
,
Pm
,
0x40
},
{
ACMOVLPC
,
yml_rl
,
Pm
,
0x4b
},
{
ACMOVLPL
,
yml_rl
,
Pm
,
0x49
},
{
ACMOVLPS
,
yml_rl
,
Pm
,
0x4a
},
{
ACMOVWCC
,
yml_rl
,
Pq
,
0x43
},
{
ACMOVWCS
,
yml_rl
,
Pq
,
0x42
},
{
ACMOVWEQ
,
yml_rl
,
Pq
,
0x44
},
{
ACMOVWGE
,
yml_rl
,
Pq
,
0x4d
},
{
ACMOVWGT
,
yml_rl
,
Pq
,
0x4f
},
{
ACMOVWHI
,
yml_rl
,
Pq
,
0x47
},
{
ACMOVWLE
,
yml_rl
,
Pq
,
0x4e
},
{
ACMOVWLS
,
yml_rl
,
Pq
,
0x46
},
{
ACMOVWLT
,
yml_rl
,
Pq
,
0x4c
},
{
ACMOVWMI
,
yml_rl
,
Pq
,
0x48
},
{
ACMOVWNE
,
yml_rl
,
Pq
,
0x45
},
{
ACMOVWOC
,
yml_rl
,
Pq
,
0x41
},
{
ACMOVWOS
,
yml_rl
,
Pq
,
0x40
},
{
ACMOVWPC
,
yml_rl
,
Pq
,
0x4b
},
{
ACMOVWPL
,
yml_rl
,
Pq
,
0x49
},
{
ACMOVWPS
,
yml_rl
,
Pq
,
0x4a
},
0
0
};
};
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