1
; RUN: llc < %s -march=thumb -mattr=+thumb2 | FileCheck %s
5
; CHECK: ror.w r0, r0, #22
6
define i32 @f1(i32 %a) {
16
define i32 @f2(i32 %v, i32 %nbits) {
18
%and = and i32 %nbits, 31
19
%shr = lshr i32 %v, %and
20
%sub = sub i32 32, %and
21
%shl = shl i32 %v, %sub
22
%or = or i32 %shl, %shr
b'\\ No newline at end of file'