1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00

[Sparc] Add support for parsing synthetic instruction 'mov'.

llvm-svn: 200965
This commit is contained in:
Venkatraman Govindaraju 2014-02-07 09:06:52 +00:00
parent 772dbc91ad
commit b3d477bcf8
2 changed files with 11 additions and 0 deletions

View File

@ -134,3 +134,9 @@ def : InstAlias<"retl", (RETL 8)>;
// ret -> RET 8
def : InstAlias<"ret", (RET 8)>;
// mov reg, rd -> or %g0, reg, rd
def : InstAlias<"mov $rs2, $rd", (ORrr IntRegs:$rd, G0, IntRegs:$rs2)>;
// mov simm13, rd -> or %g0, simm13, rd
def : InstAlias<"mov $simm13, $rd", (ORri IntRegs:$rd, G0, i32imm:$simm13)>;

View File

@ -70,3 +70,8 @@
! CHECK: subxcc %g1, %g2, %g3 ! encoding: [0x86,0xe0,0x40,0x02]
subxcc %g1, %g2, %g3
! CHECK: or %g0, %g1, %g3 ! encoding: [0x86,0x10,0x00,0x01]
mov %g1, %g3
! CHECK: or %g0, 255, %g3 ! encoding: [0x86,0x10,0x20,0xff]
mov 0xff, %g3