Home | History | Annotate | Download | only in Blackfin
      1 ; RUN: llc < %s -march=bfin -verify-machineinstrs
      2 
      3 ; When joining live intervals of sub-registers, an MBB live-in list is not
      4 ; updated properly. The register scavenger asserts on an undefined register.
      5 
      6 define i32 @foo(i8 %bar) {
      7 entry:
      8   switch i8 %bar, label %bb1203 [
      9     i8 117, label %bb1204
     10     i8 85, label %bb1204
     11     i8 106, label %bb1204
     12   ]
     13 
     14 bb1203:                                           ; preds = %entry
     15   ret i32 1
     16 
     17 bb1204:                                           ; preds = %entry, %entry, %entry
     18   ret i32 2
     19 }
     20