Skip to content

Commit 89efff3

Browse files
author
Jim Grosbach
committed
Add testcase for RRX and ASRS (which effectively tests MOVs, since those
are just forms of that instruction). llvm-svn: 116538
1 parent 19c6cb9 commit 89efff3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

llvm/test/MC/ARM/simple-encoding.ll

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,5 +90,13 @@ entry:
9090
ret i32 42405
9191
}
9292

93+
define i64 @f10(i64 %a) nounwind readnone ssp {
94+
entry:
95+
; CHECK: f10
96+
; CHECK: asrs r1, r1, #1 @ encoding: [0xc1,0x10,0xb0,0xe1]
97+
; CHECK: rrx r0, r0 @ encoding: [0x60,0x00,0xa0,0xe1]
98+
%shr = ashr i64 %a, 1
99+
ret i64 %shr
100+
}
93101

94102
declare void @llvm.trap() nounwind

0 commit comments

Comments
 (0)