Sparc: support the "set" synthetic instruction.
authorJames Y Knight <jyknight@google.com>
Mon, 18 May 2015 16:43:33 +0000 (16:43 +0000)
committerJames Y Knight <jyknight@google.com>
Mon, 18 May 2015 16:43:33 +0000 (16:43 +0000)
commitccafe05df13273571f6457879d73d40ce320ad60
tree7e71b1db0b7ff832d1aaf87ba7b20d6fd86925fe
parent292c78ba6815c844a23d8aa42982b7cc8bdad2f9
Sparc: support the "set" synthetic instruction.

This pseudo-instruction expands into 'sethi' and 'or' instructions,
or, just one of them, if the other isn't necessary for a given value.

Differential Revision: http://reviews.llvm.org/D9089

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237585 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Sparc/AsmParser/SparcAsmParser.cpp
lib/Target/Sparc/SparcInstrAliases.td
lib/Target/Sparc/SparcInstrFormats.td
test/MC/Sparc/sparc-synthetic-instructions.s [new file with mode: 0644]