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
902a4d5f
Commit
902a4d5f
authored
Nov 12, 2008
by
Ken Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
6c bug with large constants
R=r OCL=19056 CL=19056
parent
6ee7fe58
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
txt.c
src/cmd/6c/txt.c
+11
-0
No files found.
src/cmd/6c/txt.c
View file @
902a4d5f
...
...
@@ -642,6 +642,17 @@ gmove(Node *f, Node *t)
/*
* load
*/
if
(
ft
==
TVLONG
||
ft
==
TUVLONG
)
if
(
f
->
op
==
OCONST
)
if
(
f
->
vconst
>
0x7fffffffLL
||
f
->
vconst
<
-
0x7fffffffLL
)
if
(
t
->
op
!=
OREGISTER
)
{
regalloc
(
&
nod
,
f
,
Z
);
gmove
(
f
,
&
nod
);
gmove
(
&
nod
,
t
);
regfree
(
&
nod
);
return
;
}
if
(
f
->
op
==
ONAME
||
f
->
op
==
OINDREG
||
f
->
op
==
OIND
||
f
->
op
==
OINDEX
)
switch
(
ft
)
{
...
...
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