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
3965519a
Commit
3965519a
authored
Jan 16, 2011
by
Ken Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
arm reg bug with address(variable)
R=r CC=golang-dev
https://golang.org/cl/4047041
parent
64324714
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
27 deletions
+7
-27
src/cmd/5g/reg.c
src/cmd/5g/reg.c
+7
-27
No files found.
src/cmd/5g/reg.c
View file @
3965519a
...
...
@@ -137,18 +137,16 @@ regopt(Prog *firstp)
uint32
vreg
;
Bits
bit
;
return
;
if
(
first
==
0
)
{
fmtinstall
(
'Q'
,
Qconv
);
}
first
++
;
if
(
debug
[
'K'
])
{
if
(
first
!=
2
)
if
(
first
!=
1
)
return
;
debug
[
'R'
]
=
2
;
debug
[
'P'
]
=
2
;
//
debug['R'] = 2;
//
debug['P'] = 2;
print
(
"optimizing %S
\n
"
,
curfn
->
nname
->
sym
);
}
...
...
@@ -644,21 +642,17 @@ mkvar(Reg *r, Adr *a, int docon)
print
(
"type %d %d %D
\n
"
,
t
,
a
->
name
,
a
);
goto
none
;
case
D_CONST
:
if
(
a
->
reg
!=
NREG
)
r
->
regu
|=
RtoB
(
a
->
reg
);
// fallthrough
case
D_NONE
:
case
D_FCONST
:
case
D_BRANCH
:
goto
none
;
break
;
case
D_REGREG
:
if
(
a
->
offset
!=
NREG
)
r
->
regu
|=
RtoB
(
a
->
offset
);
// fallthrough
case
D_CONST
:
case
D_REG
:
case
D_SHIFT
:
case
D_OREG
:
...
...
@@ -750,22 +744,8 @@ out:
if
(
n
==
D_PARAM
)
for
(
z
=
0
;
z
<
BITS
;
z
++
)
params
.
b
[
z
]
|=
bit
.
b
[
z
];
// if(t == D_CONST) {
// if(s == S) {
// for(z=0; z<BITS; z++)
// consts.b[z] |= bit.b[z];
// return bit;
// }
// if(et != TARRAY)
// for(z=0; z<BITS; z++)
// addrs.b[z] |= bit.b[z];
// for(z=0; z<BITS; z++)
// params.b[z] |= bit.b[z];
// return bit;
// }
// if(t != D_OREG)
// goto none;
if
(
t
==
D_CONST
)
setaddrs
(
bit
);
return
bit
;
...
...
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