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
cc4d57ab
Commit
cc4d57ab
authored
Feb 09, 2011
by
Ken Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
peep: more bugs
R=r CC=golang-dev
https://golang.org/cl/4176042
parent
4438f502
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
7 deletions
+10
-7
src/cmd/5g/peep.c
src/cmd/5g/peep.c
+8
-5
src/cmd/5g/reg.c
src/cmd/5g/reg.c
+2
-2
No files found.
src/cmd/5g/peep.c
View file @
cc4d57ab
...
...
@@ -339,7 +339,8 @@ subprop(Reg *r0)
case
AMULLU
:
case
AMULA
:
// case AMVN:
case
AMVN
:
return
0
;
case
ACMN
:
case
AADD
:
...
...
@@ -985,6 +986,8 @@ copyu(Prog *p, Adr *v, Adr *s)
case
AMOVHU
:
case
AMOVB
:
case
AMOVBU
:
case
AMOVFW
:
case
AMOVWF
:
case
AMOVDW
:
case
AMOVWD
:
case
AMOVFD
:
...
...
@@ -1020,7 +1023,7 @@ copyu(Prog *p, Adr *v, Adr *s)
case
AMULLU
:
/* read, read, write, write */
case
AMULA
:
//
case AMVN:
case
AMVN
:
return
2
;
case
AADD
:
/* read, read, write */
...
...
@@ -1192,15 +1195,15 @@ copyau(Adr *a, Adr *v)
return
1
;
if
(
v
->
type
==
D_REG
)
{
if
(
a
->
type
==
D_CONST
&&
a
->
reg
!=
NREG
)
{
if
(
v
->
reg
==
a
->
reg
)
if
(
a
->
reg
==
v
->
reg
)
return
1
;
}
else
if
(
a
->
type
==
D_OREG
)
{
if
(
v
->
reg
==
a
->
reg
)
if
(
a
->
reg
==
v
->
reg
)
return
1
;
}
else
if
(
a
->
type
==
D_REGREG
)
{
if
(
v
->
reg
==
a
->
reg
)
if
(
a
->
reg
==
v
->
reg
)
return
1
;
if
(
a
->
offset
==
v
->
reg
)
return
1
;
...
...
src/cmd/5g/reg.c
View file @
cc4d57ab
...
...
@@ -140,10 +140,10 @@ regopt(Prog *firstp)
if
(
first
==
0
)
{
fmtinstall
(
'Q'
,
Qconv
);
}
first
++
;
first
++
;
if
(
debug
[
'K'
])
{
if
(
first
!=
2
)
if
(
first
!=
13
)
return
;
// debug['R'] = 2;
// debug['P'] = 2;
...
...
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