[SystemZ] Fix parsing of inline asm registers
authorRichard Sandiford <rsandifo@linux.vnet.ibm.com>
Fri, 12 Jul 2013 09:08:12 +0000 (09:08 +0000)
committerRichard Sandiford <rsandifo@linux.vnet.ibm.com>
Fri, 12 Jul 2013 09:08:12 +0000 (09:08 +0000)
commit5e009541973b7935386055066689902aa7134e2d
treeacfabe0cedf94afd85f196a8e6df8181829d1167
parent6cf3cfa0ab1da0c52730fec103bbc69eb0370081
[SystemZ] Fix parsing of inline asm registers

GPR and FPR constraints like "{r2}" and "{f2}" weren't handled correctly
because the name-to-regno mapping depends on the value type and
(because of that) the internal names in RegStrings are not the
same as the AsmName.

CC constraints like "{cc}" didn't work either because there was no
associated register class.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186148 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/SystemZ/SystemZISelLowering.cpp
lib/Target/SystemZ/SystemZMCInstLower.cpp
lib/Target/SystemZ/SystemZMCInstLower.h
lib/Target/SystemZ/SystemZRegisterInfo.td