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
45c48d51
Commit
45c48d51
authored
Oct 22, 2010
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
5g: missed one case last night
R=ken2 CC=golang-dev
https://golang.org/cl/2658042
parent
8ffc4ec5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
cgen.c
src/cmd/5g/cgen.c
+8
-8
No files found.
src/cmd/5g/cgen.c
View file @
45c48d51
...
...
@@ -170,8 +170,8 @@ cgen(Node *n, Node *res)
case
OREAL
:
case
OIMAG
:
case
OCMPLX
:
// TODO compile complex
return
;
fatal
(
"unexpected complex"
);
break
;
// these call bgen to get a bool value
case
OOROR
:
...
...
@@ -828,12 +828,6 @@ bgen(Node *n, int true, Prog *to)
nl
=
n
->
left
;
nr
=
n
->
right
;
// TODO compile complex
if
(
nl
!=
N
&&
nl
->
type
!=
T
&&
iscomplex
[
nl
->
type
->
etype
])
return
;
if
(
nr
!=
N
&&
nr
->
type
!=
T
&&
iscomplex
[
nr
->
type
->
etype
])
return
;
if
(
n
->
type
==
T
)
{
convlit
(
&
n
,
types
[
TBOOL
]);
if
(
n
->
type
==
T
)
...
...
@@ -954,6 +948,7 @@ bgen(Node *n, int true, Prog *to)
goto
ret
;
}
a
=
brcom
(
a
);
true
=
!
true
;
}
// make simplest on right
...
...
@@ -1014,6 +1009,11 @@ bgen(Node *n, int true, Prog *to)
break
;
}
if
(
iscomplex
[
nl
->
type
->
etype
])
{
complexbool
(
a
,
nl
,
nr
,
true
,
to
);
break
;
}
if
(
is64
(
nr
->
type
))
{
if
(
!
nl
->
addable
)
{
tempname
(
&
n1
,
nl
->
type
);
...
...
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