Home | History | Annotate | Download | only in Generic
      1 ; Test that opaque constants are not creating an infinite DAGCombine loop
      2 ; RUN: llc < %s
      3 ; XFAIL: r600, xcore
      4 
      5 @a = common global i32* null, align 8
      6 @c = common global i32 0, align 4
      7 @b = common global i32* null, align 8
      8 
      9 ; Function Attrs: nounwind ssp uwtable
     10 define void @fn() {
     11   store i32* inttoptr (i64 68719476735 to i32*), i32** @a, align 8
     12   %1 = load i32* @c, align 4
     13   %2 = sext i32 %1 to i64
     14   %3 = lshr i64 %2, 12
     15   %4 = and i64 %3, 68719476735
     16   %5 = getelementptr inbounds i32* null, i64 %4
     17   store i32* %5, i32** @b, align 8
     18   ret void
     19 }
     20