Home | History | Annotate | Download | only in X86
      1 ; RUN: llc < %s -verify-coalescing
      2 ; PR10998
      3 
      4 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32-n8:16:32"
      5 target triple = "i386-unknown-freebsd8.2"
      6 
      7 define void @test(i32 %arg1) nounwind align 2 {
      8 bb11:
      9   %tmp13 = and i32 %arg1, 7
     10   %tmp14 = add i32 %tmp13, -5
     11   switch i32 %tmp13, label %bb18 [
     12     i32 0, label %bb21
     13     i32 4, label %bb22
     14     i32 3, label %bb21
     15     i32 2, label %bb19
     16   ]
     17 
     18 bb18:
     19   %tmp202 = call i32 @f() nounwind
     20   unreachable
     21 
     22 bb19:
     23   %tmp20 = call i32 @f() nounwind
     24   br label %bb24
     25 
     26 bb21:
     27   %tmp203 = call i32 @f() nounwind
     28   br label %bb24
     29 
     30 bb22:
     31   %tmp23 = call i32 @f() nounwind
     32   br label %bb24
     33 
     34 bb24:
     35   %tmp15 = icmp ult i32 %tmp14, 2
     36   %tmp55 = select i1 %tmp15, i32 45, i32 44
     37   %tmp56 = call i32 @f2(i32 %tmp55)
     38   unreachable
     39 }
     40 
     41 declare i32 @f()
     42 
     43 declare i32 @f2(i32)
     44