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
ac186fd7
Commit
ac186fd7
authored
Jan 27, 2016
by
Karl Schimpf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issues raised in CL 1645683003 by stichnot.
See CL
https://codereview.chromium.org/1645683003
BUG=None R=stichnot@chromium.org Review URL:
https://codereview.chromium.org/1641753003
.
parent
e1b6574f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
11 deletions
+9
-11
assembler_arm.cc
src/DartARM32/assembler_arm.cc
+0
-2
IceAssemblerARM32.cpp
src/IceAssemblerARM32.cpp
+2
-2
IceAssemblerARM32.h
src/IceAssemblerARM32.h
+2
-2
IceInstARM32.cpp
src/IceInstARM32.cpp
+5
-5
No files found.
src/DartARM32/assembler_arm.cc
View file @
ac186fd7
...
@@ -928,9 +928,7 @@ void Assembler::vmovs(SRegister sd, SRegister sm, Condition cond) {
...
@@ -928,9 +928,7 @@ void Assembler::vmovs(SRegister sd, SRegister sm, Condition cond) {
void Assembler::vmovd(DRegister dd, DRegister dm, Condition cond) {
void Assembler::vmovd(DRegister dd, DRegister dm, Condition cond) {
EmitVFPddd(cond, B23 | B21 | B20 | B6, dd, D0, dm);
EmitVFPddd(cond, B23 | B21 | B20 | B6, dd, D0, dm);
}
}
#endif
#if 0
// Moved to Arm32::AssemblerARM32::vmovs()
// Moved to Arm32::AssemblerARM32::vmovs()
bool Assembler::vmovs(SRegister sd, float s_imm, Condition cond) {
bool Assembler::vmovs(SRegister sd, float s_imm, Condition cond) {
if (TargetCPUFeatures::arm_version() != ARMv7) {
if (TargetCPUFeatures::arm_version() != ARMv7) {
...
...
src/IceAssemblerARM32.cpp
View file @
ac186fd7
...
@@ -2413,7 +2413,7 @@ void AssemblerARM32::vmovd(const Operand *OpDd,
...
@@ -2413,7 +2413,7 @@ void AssemblerARM32::vmovd(const Operand *OpDd,
emitVFPddd
(
Cond
,
OpcodePlusImm8
,
Dd
,
D0
,
D0
);
emitVFPddd
(
Cond
,
OpcodePlusImm8
,
Dd
,
D0
,
D0
);
}
}
void
AssemblerARM32
::
vmovdd
(
const
Operand
*
OpDd
,
const
Operand
*
OpDm
,
void
AssemblerARM32
::
vmovdd
(
const
Operand
*
OpDd
,
const
Variable
*
OpDm
,
CondARM32
::
Cond
Cond
)
{
CondARM32
::
Cond
Cond
)
{
// VMOV (register) - ARM section A8.8.340, encoding A2:
// VMOV (register) - ARM section A8.8.340, encoding A2:
// vmov<c>.f64 <Dd>, <Sm>
// vmov<c>.f64 <Dd>, <Sm>
...
@@ -2462,7 +2462,7 @@ void AssemblerARM32::vmovs(const Operand *OpSd,
...
@@ -2462,7 +2462,7 @@ void AssemblerARM32::vmovs(const Operand *OpSd,
emitVFPsss
(
Cond
,
OpcodePlusImm8
,
Sd
,
S0
,
S0
);
emitVFPsss
(
Cond
,
OpcodePlusImm8
,
Sd
,
S0
,
S0
);
}
}
void
AssemblerARM32
::
vmovss
(
const
Operand
*
OpSd
,
const
Operand
*
OpSm
,
void
AssemblerARM32
::
vmovss
(
const
Operand
*
OpSd
,
const
Variable
*
OpSm
,
CondARM32
::
Cond
Cond
)
{
CondARM32
::
Cond
Cond
)
{
// VMOV (register) - ARM section A8.8.340, encoding A2:
// VMOV (register) - ARM section A8.8.340, encoding A2:
// vmov<c>.f32 <Sd>, <Sm>
// vmov<c>.f32 <Sd>, <Sm>
...
...
src/IceAssemblerARM32.h
View file @
ac186fd7
...
@@ -385,14 +385,14 @@ public:
...
@@ -385,14 +385,14 @@ public:
void
vmovd
(
const
Operand
*
OpDn
,
const
OperandARM32FlexFpImm
*
OpFpImm
,
void
vmovd
(
const
Operand
*
OpDn
,
const
OperandARM32FlexFpImm
*
OpFpImm
,
CondARM32
::
Cond
Cond
);
CondARM32
::
Cond
Cond
);
void
vmovdd
(
const
Operand
*
OpDd
,
const
Operand
*
OpDm
,
CondARM32
::
Cond
Cond
);
void
vmovdd
(
const
Operand
*
OpDd
,
const
Variable
*
OpDm
,
CondARM32
::
Cond
Cond
);
void
vmovrs
(
const
Operand
*
OpRt
,
const
Operand
*
OpSn
,
CondARM32
::
Cond
Cond
);
void
vmovrs
(
const
Operand
*
OpRt
,
const
Operand
*
OpSn
,
CondARM32
::
Cond
Cond
);
void
vmovs
(
const
Operand
*
OpSn
,
const
OperandARM32FlexFpImm
*
OpFpImm
,
void
vmovs
(
const
Operand
*
OpSn
,
const
OperandARM32FlexFpImm
*
OpFpImm
,
CondARM32
::
Cond
Cond
);
CondARM32
::
Cond
Cond
);
void
vmovss
(
const
Operand
*
OpDd
,
const
Operand
*
OpDm
,
CondARM32
::
Cond
Cond
);
void
vmovss
(
const
Operand
*
OpDd
,
const
Variable
*
OpDm
,
CondARM32
::
Cond
Cond
);
void
vmovsr
(
const
Operand
*
OpSn
,
const
Operand
*
OpRt
,
CondARM32
::
Cond
Cond
);
void
vmovsr
(
const
Operand
*
OpSn
,
const
Operand
*
OpRt
,
CondARM32
::
Cond
Cond
);
...
...
src/IceInstARM32.cpp
View file @
ac186fd7
...
@@ -1073,7 +1073,7 @@ void InstARM32Mov::emitMultiDestSingleSource(const Cfg *Func) const {
...
@@ -1073,7 +1073,7 @@ void InstARM32Mov::emitMultiDestSingleSource(const Cfg *Func) const {
assert
(
DestHi
->
hasReg
());
assert
(
DestHi
->
hasReg
());
assert
(
DestLo
->
hasReg
());
assert
(
DestLo
->
hasReg
());
assert
(
llvm
::
isa
<
Variable
>
(
Src
)
&&
Src
->
hasReg
());
assert
(
Src
->
hasReg
());
Str
<<
"
\t
"
Str
<<
"
\t
"
"vmov"
<<
getPredicate
()
<<
"
\t
"
;
"vmov"
<<
getPredicate
()
<<
"
\t
"
;
...
@@ -1173,8 +1173,8 @@ void InstARM32Mov::emitIASScalarVFPMove(const Cfg *Func) const {
...
@@ -1173,8 +1173,8 @@ void InstARM32Mov::emitIASScalarVFPMove(const Cfg *Func) const {
assert
(
false
&&
"Do not know how to emit scalar FP move for type."
);
assert
(
false
&&
"Do not know how to emit scalar FP move for type."
);
break
;
break
;
case
IceType_f32
:
case
IceType_f32
:
if
(
llvm
::
isa
<
Variable
>
(
Src0
))
{
if
(
const
auto
*
Var
=
llvm
::
dyn_cast
<
Variable
>
(
Src0
))
{
Asm
->
vmovss
(
Dest
,
Src0
,
getPredicate
());
Asm
->
vmovss
(
Dest
,
Var
,
getPredicate
());
return
;
return
;
}
else
if
(
const
auto
*
FpImm
=
}
else
if
(
const
auto
*
FpImm
=
llvm
::
dyn_cast
<
OperandARM32FlexFpImm
>
(
Src0
))
{
llvm
::
dyn_cast
<
OperandARM32FlexFpImm
>
(
Src0
))
{
...
@@ -1184,8 +1184,8 @@ void InstARM32Mov::emitIASScalarVFPMove(const Cfg *Func) const {
...
@@ -1184,8 +1184,8 @@ void InstARM32Mov::emitIASScalarVFPMove(const Cfg *Func) const {
assert
(
!
Asm
->
needsTextFixup
());
assert
(
!
Asm
->
needsTextFixup
());
return
;
return
;
case
IceType_f64
:
case
IceType_f64
:
if
(
llvm
::
isa
<
Variable
>
(
Src0
))
{
if
(
const
auto
*
Var
=
llvm
::
dyn_cast
<
Variable
>
(
Src0
))
{
Asm
->
vmovdd
(
Dest
,
Src0
,
getPredicate
());
Asm
->
vmovdd
(
Dest
,
Var
,
getPredicate
());
return
;
return
;
}
else
if
(
const
auto
*
FpImm
=
}
else
if
(
const
auto
*
FpImm
=
llvm
::
dyn_cast
<
OperandARM32FlexFpImm
>
(
Src0
))
{
llvm
::
dyn_cast
<
OperandARM32FlexFpImm
>
(
Src0
))
{
...
...
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