Home | History | Annotate | Download | only in X86
      1 ; RUN: llc < %s -mtriple=i386-unknown-linux-gnu
      2 ; PR3391
      3 
      4 @pci_indirect = external global { }             ; <{ }*> [#uses=1]
      5 @pcibios_last_bus = external global i32         ; <i32*> [#uses=2]
      6 
      7 define void @pci_pcbios_init() nounwind section ".init.text" {
      8 entry:
      9         br label %bb1.i
     10 
     11 bb1.i:          ; preds = %bb6.i.i, %bb1.i, %entry
     12         %0 = load i32* null, align 8            ; <i32> [#uses=1]
     13         %1 = icmp ugt i32 %0, 1048575           ; <i1> [#uses=1]
     14         br i1 %1, label %bb2.i, label %bb1.i
     15 
     16 bb2.i:          ; preds = %bb1.i
     17         %asmtmp.i.i = tail call { i32, i32, i32, i32 } asm "lcall *(%edi); cld\0A\09jc 1f\0A\09xor %ah, %ah\0A1:", "={dx},={ax},={bx},={cx},1,{di},~{dirflag},~{fpsr},~{flags},~{memory}"(i32 45313, { }* @pci_indirect) nounwind             ; <{ i32, i32, i32, i32 }> [#uses=2]
     18         %asmresult2.i.i = extractvalue { i32, i32, i32, i32 } %asmtmp.i.i, 1   
     19         ; <i32> [#uses=1]
     20         %2 = lshr i32 %asmresult2.i.i, 8                ; <i32> [#uses=1]
     21         %3 = trunc i32 %2 to i8         ; <i8> [#uses=1]
     22         %4 = load i32* @pcibios_last_bus, align 4               ; <i32> [#uses=1]
     23         %5 = icmp slt i32 %4, 0         ; <i1> [#uses=1]
     24         br i1 %5, label %bb5.i.i, label %bb6.i.i
     25 
     26 bb5.i.i:                ; preds = %bb2.i
     27         %asmresult4.i.i = extractvalue { i32, i32, i32, i32 } %asmtmp.i.i, 3   
     28         ; <i32> [#uses=1]
     29         %6 = and i32 %asmresult4.i.i, 255               ; <i32> [#uses=1]
     30         store i32 %6, i32* @pcibios_last_bus, align 4
     31         br label %bb6.i.i
     32 
     33 bb6.i.i:                ; preds = %bb5.i.i, %bb2.i
     34         %7 = icmp eq i8 %3, 0           ; <i1> [#uses=1]
     35         %or.cond.i.i = and i1 %7, false         ; <i1> [#uses=1]
     36         br i1 %or.cond.i.i, label %bb1.i, label %bb8.i.i
     37 
     38 bb8.i.i:                ; preds = %bb6.i.i
     39         unreachable
     40 }
     41