[PATCH 6/6] [mips][msa] Added bnz.df, bnz.v, bz.df, and bz.v

Daniel Sanders Daniel.Sanders at imgtec.com
Tue Aug 27 06:29:00 PDT 2013


These intrinsics are legalized to V(ALL|ANY)_(NON)?ZERO nodes,
are matched as SN?Z_[BHWDV]_PSEUDO pseudo's, and emitted as
a branch/mov sequence to evaluate to 0 or 1.

Note: The resulting code is sub-optimal since it doesnt seem to be possible
to feed the result of an intrinsic directly into a brcond. At the moment
it uses (SETCC (VALL_ZERO $ws), 0, SETEQ) and similar which unnecessarily
evaluates the boolean twice.

Daniel Sanders
Leading Software Design Engineer, MIPS Processor IP
Imagination Technologies Limited
www.imgtec.com<http://www.imgtec.com/>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130827/9ee1fbd7/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0006-mips-msa-Added-bnz.df-bnz.v-bz.df-and-bz.v.patch
Type: application/octet-stream
Size: 23232 bytes
Desc: 0006-mips-msa-Added-bnz.df-bnz.v-bz.df-and-bz.v.patch
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130827/9ee1fbd7/attachment.obj>


More information about the llvm-commits mailing list