[PowerPC] Support operand modifier 'x' in inline asm
authorZaara Syeda <syzaara@ca.ibm.com>
Mon, 24 Sep 2018 14:01:16 +0000 (14:01 +0000)
committerZaara Syeda <syzaara@ca.ibm.com>
Mon, 24 Sep 2018 14:01:16 +0000 (14:01 +0000)
commitedefda48d2f543f6f97b72098ba1c24720c1af6e
tree0ea4f56d45b9bc67c89dfe42d408ed902ebe380b
parent8a7cfc6c86407ba9640db734033457b9a972589b
[PowerPC] Support operand modifier 'x' in inline asm

gcc uses operand modifier 'x' in inline asm for VSX registers.
Without this modifier, instructions which use VSX numbering for their
operands are printed as VMX registers. This patch adds support for the
operand modifier 'x'.

Differential Revision: https://reviews.llvm.org/D52244

llvm-svn: 342882
llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
llvm/test/CodeGen/PowerPC/inlineasm-vsx-reg.ll [new file with mode: 0644]