1 ; RUN: llc < %s -march=thumb -mattr=+thumb2 | FileCheck %s
3 define i32 @test0(i8 %A) {
10 define i8 @test1(i32 %A) signext {
12 ; CHECK: sxtb.w r0, r0, ror #8
16 %E = trunc i32 %D to i8
20 define i32 @test2(i32 %A, i32 %X) signext {
22 ; CHECK: lsrs r0, r0, #8
23 ; CHECK: sxtab r0, r1, r0
27 %E = trunc i32 %D to i8
28 %F = sext i8 %E to i32