Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
swiftshader
Project
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
Chen Yisong
swiftshader
Commits
b684f2b7
Commit
b684f2b7
authored
Jun 09, 2016
by
Mohit Bhakkad
Committed by
Jim Stichnoth
Jun 09, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding float/double support in CopyToReg
R=stichnot@chromium.org Review URL:
https://codereview.chromium.org/2050473005
. Patch from Mohit Bhakkad <mohit.bhakkad@imgtec.com>.
parent
aab7099e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
IceTargetLoweringMIPS32.cpp
src/IceTargetLoweringMIPS32.cpp
+4
-1
No files found.
src/IceTargetLoweringMIPS32.cpp
View file @
b684f2b7
...
@@ -1565,8 +1565,11 @@ void TargetDataMIPS32::lowerJumpTables() {
...
@@ -1565,8 +1565,11 @@ void TargetDataMIPS32::lowerJumpTables() {
Variable
*
TargetMIPS32
::
copyToReg
(
Operand
*
Src
,
RegNumT
RegNum
)
{
Variable
*
TargetMIPS32
::
copyToReg
(
Operand
*
Src
,
RegNumT
RegNum
)
{
Type
Ty
=
Src
->
getType
();
Type
Ty
=
Src
->
getType
();
Variable
*
Reg
=
makeReg
(
Ty
,
RegNum
);
Variable
*
Reg
=
makeReg
(
Ty
,
RegNum
);
if
(
isVectorType
(
Ty
)
||
isFloatingType
(
Ty
)
)
{
if
(
isVectorType
(
Ty
))
{
UnimplementedError
(
getFlags
());
UnimplementedError
(
getFlags
());
}
else
if
(
isFloatingType
(
Ty
))
{
(
Ty
==
IceType_f32
)
?
_mov_s
(
Reg
,
llvm
::
dyn_cast
<
Variable
>
(
Src
))
:
_mov_d
(
Reg
,
llvm
::
dyn_cast
<
Variable
>
(
Src
));
}
else
{
}
else
{
// Mov's Src operand can really only be the flexible second operand type
// Mov's Src operand can really only be the flexible second operand type
// or a register. Users should guarantee that.
// or a register. Users should guarantee that.
...
...
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