Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
a88994f8
Commit
a88994f8
authored
Aug 26, 2011
by
Jaroslavas Počepko
Committed by
Russ Cox
Aug 26, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
6l, 8l: remove JCXZ; add JCXZW, JCXZL, and JCXZQ
R=golang-dev CC=golang-dev, rsc
https://golang.org/cl/4950050
parent
f6a9807f
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
28 additions
and
9 deletions
+28
-9
lex.c
src/cmd/6a/lex.c
+2
-2
6.out.h
src/cmd/6l/6.out.h
+2
-1
optab.c
src/cmd/6l/optab.c
+2
-1
span.c
src/cmd/6l/span.c
+8
-1
lex.c
src/cmd/8a/lex.c
+2
-1
8.out.h
src/cmd/8l/8.out.h
+2
-1
optab.c
src/cmd/8l/optab.c
+2
-1
span.c
src/cmd/8l/span.c
+8
-1
No files found.
src/cmd/6a/lex.c
View file @
a88994f8
...
...
@@ -456,8 +456,8 @@ struct
"JGT"
,
LTYPER
,
AJGT
,
"JG"
,
LTYPER
,
AJGT
,
/* alternate */
"JNLE"
,
LTYPER
,
AJGT
,
/* alternate */
"JCXZ
"
,
LTYPER
,
AJCXZ
,
"JCXZL"
,
LTYPER
,
AJCXZL
,
"JCXZ
Q"
,
LTYPER
,
AJCXZQ
,
"JMP"
,
LTYPEC
,
AJMP
,
"LAHF"
,
LTYPE0
,
ALAHF
,
"LARL"
,
LTYPE3
,
ALARL
,
...
...
src/cmd/6l/6.out.h
View file @
a88994f8
...
...
@@ -121,7 +121,7 @@ enum as
AIRETW
,
AJCC
,
AJCS
,
AJCXZ
,
AJCXZ
L
,
AJEQ
,
AJGE
,
AJGT
,
...
...
@@ -487,6 +487,7 @@ enum as
AIDIVQ
,
AIMULQ
,
AIRETQ
,
AJCXZQ
,
ALEAQ
,
ALEAVEQ
,
ALODSQ
,
...
...
src/cmd/6l/optab.c
View file @
a88994f8
...
...
@@ -788,7 +788,8 @@ Optab optab[] =
{
AIRETW
,
ynone
,
Pe
,
0xcf
},
{
AJCC
,
yjcond
,
Px
,
0x73
,
0x83
,(
00
)
},
{
AJCS
,
yjcond
,
Px
,
0x72
,
0x82
},
{
AJCXZ
,
yloop
,
Px
,
0xe3
},
{
AJCXZL
,
yloop
,
Px
,
0xe3
},
{
AJCXZQ
,
yloop
,
Px
,
0xe3
},
{
AJEQ
,
yjcond
,
Px
,
0x74
,
0x84
},
{
AJGE
,
yjcond
,
Px
,
0x7d
,
0x8d
},
{
AJGT
,
yjcond
,
Px
,
0x7f
,
0x8f
},
...
...
src/cmd/6l/span.c
View file @
a88994f8
...
...
@@ -88,7 +88,10 @@ span1(Sym *s)
loop
++
;
q
->
back
^=
2
;
}
s
->
p
[
q
->
pc
+
1
]
=
v
;
if
(
q
->
as
==
AJCXZL
)
s
->
p
[
q
->
pc
+
2
]
=
v
;
else
s
->
p
[
q
->
pc
+
1
]
=
v
;
}
else
{
bp
=
s
->
p
+
q
->
pc
+
q
->
mark
-
4
;
*
bp
++
=
v
;
...
...
@@ -1467,6 +1470,8 @@ found:
if
(
p
->
back
&
1
)
{
v
=
q
->
pc
-
(
p
->
pc
+
2
);
if
(
v
>=
-
128
)
{
if
(
p
->
as
==
AJCXZL
)
*
andptr
++
=
0x67
;
*
andptr
++
=
op
;
*
andptr
++
=
v
;
}
else
if
(
t
[
2
]
==
Zloop
)
{
...
...
@@ -1490,6 +1495,8 @@ found:
p
->
forwd
=
q
->
comefrom
;
q
->
comefrom
=
p
;
if
(
p
->
back
&
2
)
{
// short
if
(
p
->
as
==
AJCXZL
)
*
andptr
++
=
0x67
;
*
andptr
++
=
op
;
*
andptr
++
=
0
;
}
else
if
(
t
[
2
]
==
Zloop
)
{
...
...
src/cmd/8a/lex.c
View file @
a88994f8
...
...
@@ -371,7 +371,8 @@ struct
"JG"
,
LTYPER
,
AJGT
,
/* alternate */
"JNLE"
,
LTYPER
,
AJGT
,
/* alternate */
"JCXZ"
,
LTYPER
,
AJCXZ
,
"JCXZL"
,
LTYPER
,
AJCXZL
,
"JCXZW"
,
LTYPER
,
AJCXZW
,
"JMP"
,
LTYPEC
,
AJMP
,
"LAHF"
,
LTYPE0
,
ALAHF
,
"LARL"
,
LTYPE3
,
ALARL
,
...
...
src/cmd/8l/8.out.h
View file @
a88994f8
...
...
@@ -115,7 +115,8 @@ enum as
AIRETW
,
AJCC
,
AJCS
,
AJCXZ
,
AJCXZL
,
AJCXZW
,
AJEQ
,
AJGE
,
AJGT
,
...
...
src/cmd/8l/optab.c
View file @
a88994f8
...
...
@@ -430,7 +430,8 @@ Optab optab[] =
{
AIRETW
,
ynone
,
Pe
,
0xcf
},
{
AJCC
,
yjcond
,
Px
,
0x73
,
0x83
,(
00
)
},
{
AJCS
,
yjcond
,
Px
,
0x72
,
0x82
},
{
AJCXZ
,
yloop
,
Px
,
0xe3
},
{
AJCXZL
,
yloop
,
Px
,
0xe3
},
{
AJCXZW
,
yloop
,
Px
,
0xe3
},
{
AJEQ
,
yjcond
,
Px
,
0x74
,
0x84
},
{
AJGE
,
yjcond
,
Px
,
0x7d
,
0x8d
},
{
AJGT
,
yjcond
,
Px
,
0x7f
,
0x8f
},
...
...
src/cmd/8l/span.c
View file @
a88994f8
...
...
@@ -83,7 +83,10 @@ span1(Sym *s)
loop
++
;
q
->
back
^=
2
;
}
s
->
p
[
q
->
pc
+
1
]
=
v
;
if
(
q
->
as
==
AJCXZW
)
s
->
p
[
q
->
pc
+
2
]
=
v
;
else
s
->
p
[
q
->
pc
+
1
]
=
v
;
}
else
{
bp
=
s
->
p
+
q
->
pc
+
q
->
mark
-
4
;
*
bp
++
=
v
;
...
...
@@ -1085,6 +1088,8 @@ found:
if
(
p
->
back
&
1
)
{
v
=
q
->
pc
-
(
p
->
pc
+
2
);
if
(
v
>=
-
128
)
{
if
(
p
->
as
==
AJCXZW
)
*
andptr
++
=
0x67
;
*
andptr
++
=
op
;
*
andptr
++
=
v
;
}
else
if
(
t
[
2
]
==
Zloop
)
{
...
...
@@ -1108,6 +1113,8 @@ found:
p
->
forwd
=
q
->
comefrom
;
q
->
comefrom
=
p
;
if
(
p
->
back
&
2
)
{
// short
if
(
p
->
as
==
AJCXZW
)
*
andptr
++
=
0x67
;
*
andptr
++
=
op
;
*
andptr
++
=
0
;
}
else
if
(
t
[
2
]
==
Zloop
)
{
...
...
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