1 ; RUN: llvm-as < %s | llc -march=thumb -mattr=+thumb2 | \
2 ; RUN: grep sxtb | count 2
3 ; RUN: llvm-as < %s | llc -march=thumb -mattr=+thumb2 | \
4 ; RUN: grep sxtb | grep ror | count 1
5 ; RUN: llvm-as < %s | llc -march=thumb -mattr=+thumb2 | \
6 ; RUN: grep sxtab | count 1
8 define i32 @test0(i8 %A) {
13 define i8 @test1(i32 %A) signext {
17 %E = trunc i32 %D to i8
21 define i32 @test2(i32 %A, i32 %X) signext {
25 %E = trunc i32 %D to i8
26 %F = sext i8 %E to i32