Fix PR 18369: [Thumbv8] asserts due to inconsistent CPSR liveness of IT blocks
[oota-llvm.git] / test / CodeGen / Thumb2 / thumb2-asr2.ll
1 ; RUN: llc < %s -march=thumb -mcpu=arm1156t2-s -mattr=+thumb2 | FileCheck %s
2
3 define i32 @f1(i32 %a) {
4 ; CHECK-LABEL: f1:
5 ; CHECK: asrs r0, r0, #17
6     %tmp = ashr i32 %a, 17
7     ret i32 %tmp
8 }