[SPARC] Use the correct register set for the "r" asm constraint.
authorJoerg Sonnenberger <joerg@bec.de>
Tue, 23 Apr 2019 15:15:33 +0000 (15:15 +0000)
committerJoerg Sonnenberger <joerg@bec.de>
Tue, 23 Apr 2019 15:15:33 +0000 (15:15 +0000)
commit6e7cc49d5cb31ee09b07252b6641d7c94977fd12
treebe29fc709628faf436f51aaa28a38ad3b8147d16
parenta2470a4653174067491618b18a8ae596f179cefb
[SPARC] Use the correct register set for the "r" asm constraint.

64bit mode must use 64bit registers, otherwise assumptions about the top
half of the registers are made. Problem found by Takeshi Nakayama in
NetBSD.

llvm-svn: 358998
llvm/lib/Target/Sparc/SparcISelLowering.cpp
llvm/test/CodeGen/SPARC/reg64.ll [new file with mode: 0644]