Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
7 deletions
+16
-7
src/cmd/5l/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
o1
|=
(
p
->
scond
&
C_SCOND
)
<<
28
;
break
;
case
80
:
/* fmov zfcon,freg */
if
((
p
->
scond
&
C_SCOND
)
!=
C_SCOND_NONE
)
diag
(
"floating point cannot be conditional"
);
// cant happen
o1
=
0xf3000110
;
// EOR 64
// always clears the double float register
if
(
p
->
as
==
AMOVD
)
{
o1
=
0xeeb00b00
;
// VMOV imm 64
o2
=
oprrr
(
ASUBD
,
p
->
scond
);
}
else
{
o1
=
0x0eb00a00
;
// VMOV imm 32
o2
=
oprrr
(
ASUBF
,
p
->
scond
);
}
v
=
0x70
;
// 1.0
r
=
p
->
to
.
reg
;
o1
|=
r
<<
0
;
// movf $1.0, r
o1
|=
(
p
->
scond
&
C_SCOND
)
<<
28
;
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
;
case
81
:
/* fmov sfcon,freg */
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