[SystemZ] Use valid base/index regs for inline asm
authorZhan Jun Liau <zhanjunl@ca.ibm.com>
Thu, 18 Aug 2016 21:44:15 +0000 (21:44 +0000)
committerZhan Jun Liau <zhanjunl@ca.ibm.com>
Thu, 18 Aug 2016 21:44:15 +0000 (21:44 +0000)
commitcf2f4b32512f2c5fdd2e39aa1bbb76a563afd19d
tree4927d0c2fa79c46b600a33b78a617e45847e1f38
parent36bde4f81da32f91cdcde493535dd63dbba87967
[SystemZ] Use valid base/index regs for inline asm

Summary:
Inline asm memory constraints can have the base or index register be assigned
to %r0 right now. Make sure that we assign only ADDR64 registers to the base
and index.

Reviewers: uweigand

Subscribers: llvm-commits

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

llvm-svn: 279157
llvm/lib/Target/SystemZ/SystemZISelDAGToDAG.cpp
llvm/test/CodeGen/SystemZ/asm-02.ll