Make the ptrtoint comparison simplification work if one side is a global.
[oota-llvm.git] / test / DebugInfo / globalGetElementPtr.ll
index 6e3674397857263e04f48a98a43b46eb5abfd656..155deb722555b1b3e41708cd18345ea4eb531763 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llc
+; RUN: llc < %s
 ; ModuleID = 'foo.c'
 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:128:128"
 target triple = "i686-apple-darwin8"
@@ -121,7 +121,7 @@ target triple = "i686-apple-darwin8"
     i32 393217, 
     %struct.anon* bitcast (%llvm.dbg.compile_unit.type* @llvm.dbg.compile_unit to %struct.anon*), 
     i8* null, 
-    %struct.anon* null
+    %struct.anon* bitcast (%llvm.dbg.compile_unit.type* @llvm.dbg.compile_unit to %struct.anon*)
     i32 0, 
     i64 0, 
     i64 8, 
@@ -158,7 +158,7 @@ target triple = "i686-apple-darwin8"
     i32 393217, 
     %struct.anon* bitcast (%llvm.dbg.compile_unit.type* @llvm.dbg.compile_unit to %struct.anon*), 
     i8* null, 
-    %struct.anon* null
+    %struct.anon* bitcast (%llvm.dbg.compile_unit.type* @llvm.dbg.compile_unit to %struct.anon*)
     i32 0, 
     i64 0, 
     i64 8,