[PowerPC] Treat 'Z' inline asm constraint as a true memory constraint
authorNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Fri, 22 May 2020 12:59:12 +0000 (07:59 -0500)
committerNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Fri, 22 May 2020 12:59:21 +0000 (07:59 -0500)
commitaede24ecaa08db806fb173faf2de9cff95df8cee
tree150b6701d1ef5dfa69d6a95d0e2b8f5b132f930e
parent1a493b0fa556a07c728862c3c3f70bfd8683bef0
[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
clang/lib/Basic/Targets/PPC.h
clang/test/CodeGen/ppc64-inline-asm.c