defm t2ASR : T2I_sh_ir<"asr", BinOpFrag<(sra node:$LHS, node:$RHS)>>;
defm t2ROR : T2I_sh_ir<"ror", BinOpFrag<(rotr node:$LHS, node:$RHS)>>;
-// FIXME should be "rrx $dst,$src" once <rdar://problem/7098328> is fixed
def t2MOVrx : T2sI<(outs GPR:$dst), (ins GPR:$src),
- "mov", ".w $dst, $src, rrx",
+ "rrx", ".w $dst, $src",
[(set GPR:$dst, (ARMrrx GPR:$src))]>;
let Defs = [CPSR] in {
define i1 @test1(i64 %poscnt, i32 %work) {
entry:
-; CHECK: mov.w r0, r0, rrx
+; CHECK: rrx r0, r0
; CHECK: lsrs.w r1, r1, #1
%0 = lshr i64 %poscnt, 1
%1 = icmp eq i64 %0, 0
define i1 @test2(i64 %poscnt, i32 %work) {
entry:
-; CHECK: mov.w r0, r0, rrx
+; CHECK: rrx r0, r0
; CHECK: asrs.w r1, r1, #1
%0 = ashr i64 %poscnt, 1
%1 = icmp eq i64 %0, 0