[PATCH] D41818: [AArch64][SVE] Asm: Predicate patterns
Sander de Smalen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 22 01:52:11 PST 2018
sdesmalen added inline comments.
================
Comment at: lib/Target/AArch64/InstPrinter/AArch64InstPrinter.cpp:1350
+ else
+ O << '#' << formatImm(Val);
+}
----------------
fhahn wrote:
> IIUC this case happens if we want to print a pattern that is not in lookupSVEPREDPATByEncoding, right? Could we use an assert here, as I think this case should not happen if we do everything correctly?
Correct, however we cannot assert here since this case needs to be supported. See for instance the tests in D41819 like `ptrue p7.s, #15`. Immediate 15 does not have an associate pattern string and should be printed as immediate instead.
https://reviews.llvm.org/D41818
More information about the llvm-commits
mailing list