[clang] [llvm] Add support for flag output operand "=@cc" for SystemZ. (PR #125970)
Eli Friedman via cfe-commits
cfe-commits at lists.llvm.org
Mon Feb 10 14:44:48 PST 2025
================
@@ -2563,9 +2563,15 @@ EmitAsmStores(CodeGenFunction &CGF, const AsmStmt &S,
if ((i < ResultRegIsFlagReg.size()) && ResultRegIsFlagReg[i]) {
// Target must guarantee the Value `Tmp` here is lowered to a boolean
// value.
- llvm::Constant *Two = llvm::ConstantInt::get(Tmp->getType(), 2);
+ unsigned CCUpperBound = 2;
+ if (CGF.getTarget().getTriple().getArch() == llvm::Triple::systemz) {
----------------
efriedma-quic wrote:
The "right" thing is probably to put the output range into the ConstraintInfo.
https://github.com/llvm/llvm-project/pull/125970
More information about the cfe-commits
mailing list