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

Jack Carter Jack.Carter at imgtec.com
Tue Aug 27 14:14:31 PDT 2013


Patches, compiles, tests and format checks.

LGTM,

Jack
________________________________
From: Daniel Sanders
Sent: Tuesday, August 27, 2013 6:29 AM
To: Jack Carter
Cc: llvm-commits at cs.uiuc.edu
Subject: [PATCH 6/6] [mips][msa] Added bnz.df, bnz.v, bz.df, and bz.v

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/fd778c8c/attachment.html>


More information about the llvm-commits mailing list