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

Zaara Syeda via All-commits all-commits at lists.llvm.org
Sun Sep 1 01:09:34 PDT 2024


  Branch: refs/heads/release/19.x
  Home:   https://github.com/llvm/llvm-project
  Commit: ed699666de2d82eab266bf41372175da73202834
      https://github.com/llvm/llvm-project/commit/ed699666de2d82eab266bf41372175da73202834
  Author: Zaara Syeda <syzaara at ca.ibm.com>
  Date:   2024-09-01 (Sun, 01 Sep 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.

(cherry picked from commit 327edbe07ab4370ceb20ea7c805f64950871d835)



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