nemanjai added inline comments.
================ Comment at: llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp:5003 + N->getConstantOperandVal(1) == Intrinsic::ppc_tw) { + int16_t SImm; + if (isIntS16Immediate(N->getOperand(3), SImm)) { ---------------- I think a couple of improvements can be made here: 1. Populate the `Opcode` and `Ops` array based on various conditions and add a single call to `SelectNodeTo()` 2. Handle the first input being constant (and then flip the condition) ================ Comment at: llvm/test/CodeGen/PowerPC/builtins-ppc-xlcompat-trap-64bit-only.ll:131 +; CHECK: # %bb.0: +; CHECK-NEXT: tdi 3, 3, 32767 +; CHECK-NEXT: blr ---------------- Can we add `-ppc-asm-full-reg-names` to the RUN lines so it is more clear which operand is a register and which is an immediate. This works on AIX now since https://reviews.llvm.org/D94282 landed. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D112285/new/ https://reviews.llvm.org/D112285 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits