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
8b8af824
Commit
8b8af824
authored
Oct 17, 2016
by
Nicolas Capens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement bitcast between i32 and (emulated) v4i8.
BUG=swiftshader:15 Change-Id: Ic795def8a914508ab0d850c846b73b343ace45de
parent
ef8210d9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
IceTargetLoweringX86BaseImpl.h
src/IceTargetLoweringX86BaseImpl.h
+7
-0
No files found.
src/IceTargetLoweringX86BaseImpl.h
View file @
8b8af824
...
@@ -3212,7 +3212,14 @@ void TargetX86Base<TraitsType>::lowerCast(const InstCast *Instr) {
...
@@ -3212,7 +3212,14 @@ void TargetX86Base<TraitsType>::lowerCast(const InstCast *Instr) {
case
IceType_v16i8
:
case
IceType_v16i8
:
case
IceType_v4i32
:
case
IceType_v4i32
:
case
IceType_v4f32
:
{
case
IceType_v4f32
:
{
if
(
Src0
->
getType
()
==
IceType_i32
)
{
// Bitcast requires equal type sizes, which isn't strictly the case
// between scalars and vectors, but to emulate v4i8 vectors one has to
// use v16i8 vectors.
_movd
(
Dest
,
legalize
(
Src0
,
Legal_Reg
|
Legal_Mem
));
}
else
{
_movp
(
Dest
,
legalizeToReg
(
Src0
));
_movp
(
Dest
,
legalizeToReg
(
Src0
));
}
}
break
;
}
break
;
}
}
break
;
break
;
...
...
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