[PATCH] Adding TableGen patterns to auto-select TBM instructions

Craig Topper craig.topper at gmail.com
Mon Sep 30 20:19:01 PDT 2013

  While this probably mathematically correct.

    def : Pat<(or GR32:$src, (sub -2, GR32:$src)),
              (BLCI_32rr GR32:$src)>;
    def : Pat<(or GR64:$src, (sub -2, GR64:$src)),
              (BLCI_64rr GR64:$src)>;

  Don't the docs from AMD say something that would be  (or GR64:$src, (not (add GR64:$src, 1)))?


More information about the llvm-commits mailing list