DI: Require subprogram definitions to be distinct
[oota-llvm.git] / test / Transforms / LoopStrengthReduce / scaling_factor_cost_crash.ll
index cd8fec3d2c81706b770959a91c2be183a1115c61..27212d7b97b029d0c88345b96a83f259c4eb54b1 100644 (file)
@@ -3,7 +3,7 @@ target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f3
 target triple = "i686-pc-win32"
 
 ; <rdar://problem/14199725> Assertion failed: (CurScaleCost >= 0 && "Legal addressing mode has an illegal cost!")
-; CHECK: @scalingFactorCrash
+; CHECK-LABEL: @scalingFactorCrash(
 define void @scalingFactorCrash() {
   br i1 undef, label %1, label %24
 
@@ -55,7 +55,7 @@ define void @scalingFactorCrash() {
 ; <label>:16                                      ; preds = %16, %15
   %17 = phi i32 [ %21, %16 ], [ undef, %15 ]
   %18 = sub i32 %17, 1623127498
-  %19 = getelementptr inbounds i32* undef, i32 %18
+  %19 = getelementptr inbounds i32, i32* undef, i32 %18
   store i32 undef, i32* %19, align 4
   %20 = add i32 %17, 1623127499
   %21 = add i32 %20, -1623127498