1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00
llvm-mirror/test/MC/Sparc/leon-pwrpsr-instruction.s
Daniel Cederman 29a6072d06 [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
2018-09-27 12:34:48 +00:00

11 lines
362 B
ArmAsm

! RUN: llvm-mc %s -arch=sparc -mcpu=gr740 -show-encoding | FileCheck %s
! CHECK: pwr %g0, 0, %psr ! encoding: [0x83,0x88,0x20,0x00]
pwr 0, %psr
! CHECK: pwr %g0, %l7, %psr ! encoding: [0x83,0x88,0x00,0x17]
pwr %l7, %psr
! CHECK: pwr %g0, 32, %psr ! encoding: [0x83,0x88,0x20,0x20]
pwr 32, %psr