• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc < %s -mtriple=thumbv7 | FileCheck --check-prefix=CHECK-NOBFI %s
2
3declare zeroext i1 @dummy()
4
5define i8 @test(i8 %a1, i1 %c) {
6; CHECK-NOBFI-NOT: bfi
7; CHECK-NOBFI: bl      dummy
8; CHECK-NOBFI: cmp     r0, #0
9; CHECK-NOBFI: it      ne
10; CHECK-NOBFI: orrne   [[REG:r[0-9]+]], [[REG]], #8
11; CHECK-NOBFI: mov     r0, [[REG]]
12
13  %1 = and i8 %a1, -9
14  %2 = select i1 %c, i8 %1, i8 %a1
15  %3 = tail call zeroext i1 @dummy()
16  %4 = or i8 %2, 8
17  %ret = select i1 %3, i8 %4, i8 %2
18  ret i8 %ret
19}
20