1 ; RUN: llvm-as < %s | llc -march=thumb -mattr=+thumb2 | grep lsl
2 ; RUN: llvm-as < %s | llc -march=thumb -mattr=+thumb2 | grep lsr
3 ; RUN: llvm-as < %s | llc -march=thumb -mattr=+thumb2 | grep asr
4 ; RUN: llvm-as < %s | llc -march=thumb -mattr=+thumb2 | grep ror
5 ; RUN: llvm-as < %s | llc -march=thumb -mattr=+thumb2 | not grep mov
7 define i32 @t2ADDrs_lsl(i32 %X, i32 %Y) {
13 define i32 @t2ADDrs_lsr(i32 %X, i32 %Y) {
19 define i32 @t2ADDrs_asr(i32 %X, i32 %Y) {
25 ; i32 ror(n) = (x >> n) | (x << (32 - n))
26 define i32 @t2ADDrs_ror(i32 %X, i32 %Y) {
34 define i32 @t2ADDrs_noRegShift(i32 %X, i32 %Y, i8 %sh) {
35 %shift.upgrd.1 = zext i8 %sh to i32
36 %A = shl i32 %Y, %shift.upgrd.1