[PATCH] D41967: [PPC] Return PPC::CARRY for inline asm constraint "{xer}"
Eric Christopher via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 11 23:02:45 PST 2018
echristo added a comment.
I think instead you want to add an alias in PPC similar to this:
def XER: SPR<1, "xer">, DwarfRegNum<[76]>;
// Carry bit. In the architecture this is really bit 0 of the XER register
// (which really is SPR register 1); this is the only bit interesting to a
// compiler.
def CARRY: SPR<1, "xer">, DwarfRegNum<[76]> {
let Aliases = [XER];
}
Does this work on your testcase?
-eric
https://reviews.llvm.org/D41967
More information about the llvm-commits
mailing list