1 ; RUN: llc < %s -march=thumb -mattr=+thumb2,+t2xtpk | FileCheck %s
3 define i32 @test0(i8 %A) {
10 define signext i8 @test1(i32 %A) {
12 ; CHECK: sxtb.w r0, r0, ror #8
16 %E = trunc i32 %D to i8
20 define signext i32 @test2(i32 %A, i32 %X) {
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