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
ca5179d3
Commit
ca5179d3
authored
Feb 11, 2011
by
Ken Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
5ld: stoped generating 64-bit eor
R=rsc CC=golang-dev
https://golang.org/cl/4182049
parent
9b85d499
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
7 deletions
+16
-7
asm.c
src/cmd/5l/asm.c
+16
-7
No files found.
src/cmd/5l/asm.c
View file @
ca5179d3
...
@@ -1470,15 +1470,24 @@ if(debug['G']) print("%ux: %s: arm %d %d %d\n", (uint32)(p->pc), p->from.sym->na
...
@@ -1470,15 +1470,24 @@ if(debug['G']) print("%ux: %s: arm %d %d %d\n", (uint32)(p->pc), p->from.sym->na
o1
|=
(
p
->
scond
&
C_SCOND
)
<<
28
;
o1
|=
(
p
->
scond
&
C_SCOND
)
<<
28
;
break
;
break
;
case
80
:
/* fmov zfcon,freg */
case
80
:
/* fmov zfcon,freg */
if
((
p
->
scond
&
C_SCOND
)
!=
C_SCOND_NONE
)
if
(
p
->
as
==
AMOVD
)
{
diag
(
"floating point cannot be conditional"
);
// cant happen
o1
=
0xeeb00b00
;
// VMOV imm 64
o1
=
0xf3000110
;
// EOR 64
o2
=
oprrr
(
ASUBD
,
p
->
scond
);
}
else
{
// always clears the double float register
o1
=
0x0eb00a00
;
// VMOV imm 32
o2
=
oprrr
(
ASUBF
,
p
->
scond
);
}
v
=
0x70
;
// 1.0
r
=
p
->
to
.
reg
;
r
=
p
->
to
.
reg
;
o1
|=
r
<<
0
;
// movf $1.0, r
o1
|=
(
p
->
scond
&
C_SCOND
)
<<
28
;
o1
|=
r
<<
12
;
o1
|=
r
<<
12
;
o1
|=
r
<<
16
;
o1
|=
(
v
&
0xf
)
<<
0
;
o1
|=
(
v
&
0xf0
)
<<
12
;
// subf r,r,r
o2
|=
r
|
(
r
<<
16
)
|
(
r
<<
12
);
break
;
break
;
case
81
:
/* fmov sfcon,freg */
case
81
:
/* fmov sfcon,freg */
o1
=
0x0eb00a00
;
// VMOV imm 32
o1
=
0x0eb00a00
;
// VMOV imm 32
...
...
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