• Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc < %s -march=bfin -join-liveintervals=0 -verify-machineinstrs
2; RUN: llc < %s -march=bfin -join-liveintervals=0 -verify-machineinstrs -regalloc=greedy
3
4; Provoke an error in LowerSubregsPass::LowerExtract where the live range of a
5; super-register is illegally extended.
6
7define i16 @f(i16 %x1, i16 %x2, i16 %x3, i16 %x4) {
8  %y1 = add i16 %x1, 1
9  %y2 = add i16 %x2, 2
10  %y3 = add i16 %x3, 3
11  %y4 = add i16 %x4, 4
12  %z12 = add i16 %y1, %y2
13  %z34 = add i16 %y3, %y4
14  %p = add i16 %z12, %z34
15  ret i16 %p
16}
17