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
155ec1d9
Commit
155ec1d9
authored
Apr 23, 2009
by
Ben Eitzen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clear upper bits of 64-bit indexing register when using types smaller than 64 bits.
APPROVED=ken OCL=27811 CL=27823
parent
88a0c407
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
src/cmd/6g/gsubr.c
src/cmd/6g/gsubr.c
+5
-2
No files found.
src/cmd/6g/gsubr.c
View file @
155ec1d9
...
...
@@ -1761,7 +1761,7 @@ sudoaddable(Node *n, Addr *a)
int
o
,
i
,
w
;
int
oary
[
10
];
vlong
v
;
Node
n1
,
n2
,
*
nn
,
*
l
,
*
r
;
Node
n1
,
n2
,
n3
,
*
nn
,
*
l
,
*
r
;
Node
*
reg
,
*
reg1
;
Prog
*
p1
;
Type
*
t
;
...
...
@@ -1868,7 +1868,10 @@ oindex:
if
(
issigned
[
r
->
type
->
etype
])
t
=
types
[
TINT64
];
regalloc
(
reg1
,
t
,
N
);
cgen
(
r
,
reg1
);
regalloc
(
&
n3
,
r
->
type
,
reg1
);
cgen
(
r
,
&
n3
);
gmove
(
&
n3
,
reg1
);
regfree
(
&
n3
);
// load the array (reg)
if
(
l
->
ullman
<=
r
->
ullman
)
{
...
...
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