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
b0ad7a42
Commit
b0ad7a42
authored
Oct 25, 2010
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
5g: complex "regalloc"
R=ken2 CC=golang-dev
https://golang.org/cl/2727041
parent
41b5fb47
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
gsubr.c
src/cmd/5g/gsubr.c
+7
-0
No files found.
src/cmd/5g/gsubr.c
View file @
b0ad7a42
...
...
@@ -305,6 +305,11 @@ regalloc(Node *n, Type *t, Node *o)
goto
out
;
yyerror
(
"out of floating point registers"
);
goto
err
;
case
TCOMPLEX64
:
case
TCOMPLEX128
:
tempname
(
n
,
t
);
return
;
}
yyerror
(
"regalloc: unknown type %T"
,
t
);
...
...
@@ -334,6 +339,8 @@ regfree(Node *n)
print
(
"regalloc fix %d float %d
\n
"
,
fixfree
,
floatfree
);
}
if
(
n
->
op
==
ONAME
&&
iscomplex
[
n
->
type
->
etype
])
return
;
if
(
n
->
op
!=
OREGISTER
&&
n
->
op
!=
OINDREG
)
fatal
(
"regfree: not a register"
);
i
=
n
->
val
.
u
.
reg
;
...
...
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