[all-commits] [llvm/llvm-project] aede24: [PowerPC] Treat 'Z' inline asm constraint as a tru...

Nemanja Ivanovic via All-commits all-commits at lists.llvm.org
Fri May 22 06:00:18 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: aede24ecaa08db806fb173faf2de9cff95df8cee
      https://github.com/llvm/llvm-project/commit/aede24ecaa08db806fb173faf2de9cff95df8cee
  Author: Nemanja Ivanovic <nemanja.i.ibm at gmail.com>
  Date:   2020-05-22 (Fri, 22 May 2020)

  Changed paths:
    M clang/lib/Basic/Targets/PPC.h
    M clang/test/CodeGen/ppc64-inline-asm.c

  Log Message:
  -----------
  [PowerPC] Treat 'Z' inline asm constraint as a true memory constraint

We currently emit incorrect codegen for this constraint because we set it as a
constraint that allows registers. This will cause the value to be copied to the
stack and that address to be passed as the address. This is not what we want.

Fixes: https://bugs.llvm.org/show_bug.cgi?id=42762

Differential revision: https://reviews.llvm.org/D77542




More information about the All-commits mailing list