[all-commits] [llvm/llvm-project] 327edb: [PowerPC] Fix mask for __st[d/w/h/b]cx builtins (#...

Zaara Syeda via All-commits all-commits at lists.llvm.org
Thu Aug 22 06:56:08 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 327edbe07ab4370ceb20ea7c805f64950871d835
      https://github.com/llvm/llvm-project/commit/327edbe07ab4370ceb20ea7c805f64950871d835
  Author: Zaara Syeda <syzaara at ca.ibm.com>
  Date:   2024-08-22 (Thu, 22 Aug 2024)

  Changed paths:
    M llvm/lib/Target/PowerPC/PPCInstr64Bit.td
    M llvm/lib/Target/PowerPC/PPCInstrInfo.td
    M llvm/test/CodeGen/PowerPC/builtins-ppc-xlcompat-LoadReserve-StoreCond-64bit-only.ll
    M llvm/test/CodeGen/PowerPC/builtins-ppc-xlcompat-LoadReserve-StoreCond.ll

  Log Message:
  -----------
  [PowerPC] Fix mask for __st[d/w/h/b]cx builtins (#104453)

These builtins are currently returning CR0 which will have the format
[0, 0, flag_true_if_saved, XER].
We only want to return flag_true_if_saved. This patch adds a shift to
remove the XER bit before returning.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list