[LLVMbugs] [Bug 1119] Enh: add PatLeaf to test for zero valued operands

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Jan 16 23:24:52 PST 2007


http://llvm.org/bugs/show_bug.cgi?id=1119

sabre at nondot.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID



------- Additional Comments From sabre at nondot.org  2007-01-17 01:24 -------
You should just be able to use a literal 0 in your pattern.  For example, ineg is defined as:

def ineg : PatFrag<(ops node:$in), (sub 0, node:$in)>;

We need a node for immAllOnes when defining patterns that are independent of the width of the datatype 
(e.g. 255 or 65535 or 4294967295, etc), but 0 doesn't have this issue.

If 0 doesn't work for some reason, you hit a bug.  Please reopen this PR if so.

-Chris



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



More information about the llvm-bugs mailing list