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)
commitc49e78851cbb665bce954f68ac202ef25626d5a1
treece1c0ee21ea68ead06f496ebc3f17febbc46d41e
parent44b81ee40bc037be792fdd899ece966eef26e2c8
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

llvm-svn: 237585
llvm/lib/Target/Sparc/AsmParser/SparcAsmParser.cpp
llvm/lib/Target/Sparc/SparcInstrAliases.td
llvm/lib/Target/Sparc/SparcInstrFormats.td
llvm/test/MC/Sparc/sparc-synthetic-instructions.s [new file with mode: 0644]