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
155ec1d9
Commit
155ec1d9
authored
Apr 24, 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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
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