1 ; RUN: llc -mtriple=thumb-eabi -mcpu=arm1156t2-s -mattr=+thumb2 %s -o - | FileCheck %s
3 define i32 @sbfx1(i32 %a) {
5 ; CHECK: sbfx r0, r0, #7, #11
7 %t2 = trunc i32 %t1 to i11
8 %t3 = sext i11 %t2 to i32
12 define i32 @ubfx1(i32 %a) {
14 ; CHECK: ubfx r0, r0, #7, #11
16 %t2 = trunc i32 %t1 to i11
17 %t3 = zext i11 %t2 to i32
21 define i32 @ubfx2(i32 %a) {
23 ; CHECK: ubfx r0, r0, #7, #11
25 %t2 = and i32 %t1, 2047