[Sparc] Add support for the partial write PSR instruction
authorDaniel Cederman <cederman@gaisler.com>
Thu, 27 Sep 2018 12:34:48 +0000 (12:34 +0000)
committerDaniel Cederman <cederman@gaisler.com>
Thu, 27 Sep 2018 12:34:48 +0000 (12:34 +0000)
commitc1968ba5d339bf34612d32a31f8cd993dd7e7ab2
tree13a100491a11528f304b77744b8b1f0e7a571b25
parent7829a938c5e14d9c67e53265d42202f74c48cd77
[Sparc] Add support for the partial write PSR instruction

Summary:
Partial write %PSR (WRPSR) is a SPARC V8e option that allows WRPSR
instructions to only affect the %PSR.ET field. It is supported by
the GR740 and GR716.

Reviewers: jyknight, venkatra

Subscribers: fedor.sergeev, jrtc27, llvm-commits

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

llvm-svn: 343202
llvm/lib/Target/Sparc/Sparc.td
llvm/lib/Target/Sparc/SparcInstrAliases.td
llvm/lib/Target/Sparc/SparcInstrInfo.td
llvm/lib/Target/Sparc/SparcSubtarget.cpp
llvm/lib/Target/Sparc/SparcSubtarget.h
llvm/test/MC/Sparc/leon-pwrpsr-instruction.s [new file with mode: 0644]