Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
b9bcad65
Commit
b9bcad65
authored
Oct 10, 1994
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(convert_move): Add TImode conversions.
From-SVN: r8248
parent
a93738eb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
52 additions
and
0 deletions
+52
-0
gcc/expr.c
+52
-0
No files found.
gcc/expr.c
View file @
b9bcad65
...
...
@@ -1199,6 +1199,58 @@ convert_move (to, from, unsignedp)
return
;
}
if
(
from_mode
==
TImode
&&
to_mode
==
DImode
)
{
#ifdef HAVE_trunctidi2
if
(
HAVE_trunctidi2
)
{
emit_unop_insn
(
CODE_FOR_trunctidi2
,
to
,
from
,
UNKNOWN
);
return
;
}
#endif
convert_move
(
to
,
force_reg
(
from_mode
,
from
),
unsignedp
);
return
;
}
if
(
from_mode
==
TImode
&&
to_mode
==
SImode
)
{
#ifdef HAVE_trunctisi2
if
(
HAVE_trunctisi2
)
{
emit_unop_insn
(
CODE_FOR_trunctisi2
,
to
,
from
,
UNKNOWN
);
return
;
}
#endif
convert_move
(
to
,
force_reg
(
from_mode
,
from
),
unsignedp
);
return
;
}
if
(
from_mode
==
TImode
&&
to_mode
==
HImode
)
{
#ifdef HAVE_trunctihi2
if
(
HAVE_trunctihi2
)
{
emit_unop_insn
(
CODE_FOR_trunctihi2
,
to
,
from
,
UNKNOWN
);
return
;
}
#endif
convert_move
(
to
,
force_reg
(
from_mode
,
from
),
unsignedp
);
return
;
}
if
(
from_mode
==
TImode
&&
to_mode
==
QImode
)
{
#ifdef HAVE_trunctiqi2
if
(
HAVE_trunctiqi2
)
{
emit_unop_insn
(
CODE_FOR_trunctiqi2
,
to
,
from
,
UNKNOWN
);
return
;
}
#endif
convert_move
(
to
,
force_reg
(
from_mode
,
from
),
unsignedp
);
return
;
}
/* Handle truncation of volatile memrefs, and so on;
the things that couldn't be truncated directly,
and for which there was no special instruction. */
...
...
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