DescriptionLower casting operations that involve vector types.
Impacted instructions:
bitcast {v4f32, v4i32, v8i16, v16i8} <-> {v4f32, v4i32, v8i16, v16i8}
bitcast v8i1 <-> i8
bitcast v16i1 <-> i16
(There was already code present to handle trivial bitcasts like v16i1 <-> v16i1.)
[sz]ext v4i1 -> v4i32
[sz]ext v8i1 -> v8i16
[sz]ext v16i1 -> v16i8
trunc v4i32 -> v4i1
trunc v8i16 -> v8i1
trunc v16i8 -> v16i1
[su]itofp v4i32 -> v4f32
fpto[su]i v4f32 -> v4i32
Where there is a relatively simple lowering to x86 instructions, it has been used. Otherwise a helper call is used.
Some lowerings require a materialization of a integer vector with 1s in each entry. Since there is no support for vector constant pools, the constant is materialized purely through register operations.
BUG=none
R=jvoung@chromium.org, stichnot@chromium.org
Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=83b8036
Patch Set 1 #Patch Set 2 : Fix accidental changes to other parts of the code due to improper rebase #Patch Set 3 : Remove insertelement / extractelement. #Patch Set 4 : Fix formatting changes #
Total comments: 14
Patch Set 5 : Changes from first round of comments #Patch Set 6 : Fix formatting in for loop. #
Total comments: 4
Patch Set 7 : Rebase and make bitcast changes #
Messages
Total messages: 11 (0 generated)
|