Home | History | Annotate | Download | only in X86
      1 ; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnu
      2 ; PR1766
      3 
      4         %struct.dentry = type { %struct.dentry_operations* }
      5         %struct.dentry_operations = type { i32 (%struct.dentry*, %struct.qstr*)* }
      6         %struct.qstr = type { i32, i32, i8* }
      7 
      8 define %struct.dentry* @d_hash_and_lookup(%struct.dentry* %dir, %struct.qstr* %name) {
      9 entry:
     10         br i1 false, label %bb37, label %bb
     11 
     12 bb:             ; preds = %bb, %entry
     13         %name8.0.reg2mem.0.rec = phi i64 [ %indvar.next, %bb ], [ 0, %entry ]           ; <i64> [#uses=1]
     14         %hash.0.reg2mem.0 = phi i64 [ %tmp27, %bb ], [ 0, %entry ]              ; <i64> [#uses=1]
     15         %tmp13 = load i8* null, align 1         ; <i8> [#uses=1]
     16         %tmp1314 = zext i8 %tmp13 to i64                ; <i64> [#uses=1]
     17         %tmp25 = lshr i64 %tmp1314, 4           ; <i64> [#uses=1]
     18         %tmp22 = add i64 %tmp25, %hash.0.reg2mem.0              ; <i64> [#uses=1]
     19         %tmp26 = add i64 %tmp22, 0              ; <i64> [#uses=1]
     20         %tmp27 = mul i64 %tmp26, 11             ; <i64> [#uses=2]
     21         %indvar.next = add i64 %name8.0.reg2mem.0.rec, 1                ; <i64> [#uses=2]
     22         %exitcond = icmp eq i64 %indvar.next, 0         ; <i1> [#uses=1]
     23         br i1 %exitcond, label %bb37.loopexit, label %bb
     24 
     25 bb37.loopexit:          ; preds = %bb
     26         %phitmp = trunc i64 %tmp27 to i32               ; <i32> [#uses=1]
     27         br label %bb37
     28 
     29 bb37:           ; preds = %bb37.loopexit, %entry
     30         %hash.0.reg2mem.1 = phi i32 [ %phitmp, %bb37.loopexit ], [ 0, %entry ]          ; <i32> [#uses=1]
     31         store i32 %hash.0.reg2mem.1, i32* null, align 8
     32         %tmp75 = tail call i32 null( %struct.dentry* %dir, %struct.qstr* %name )                ; <i32> [#uses=0]
     33         %tmp84 = tail call i32 (...)* @d_lookup( %struct.dentry* %dir, %struct.qstr* %name )            ; <i32> [#uses=0]
     34         ret %struct.dentry* null
     35 }
     36 
     37 declare i32 @d_lookup(...)
     38