[Patch] Fix AArch32 VSEL's condition inversion

Weiming Zhao weimingz at codeaurora.org
Tue Dec 17 13:25:21 PST 2013



In AArch32, in order to generate vsel, it may swap the operands of SELECT
and inverse the condition.


v = cond ? f0 : f1   =>  v = cond2 ? f1: f0, where cond2 is the inversion of
cond (i.e.  LE=>GT, EQ=>NE, GT =>LE .ect.)

Currently, it uses api getSetCCSwappedOperands, which only toggles L and G
bit, not E bit.


Please help to review the patch.







Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by
The Linux Foundation


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20131217/f9043285/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-AArch32-Fix-vsel-condition-inversion.patch
Type: application/octet-stream
Size: 2852 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20131217/f9043285/attachment.obj>

More information about the llvm-commits mailing list