; RUN: opt -loop-reduce %s -S -o - | FileCheck %s target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-f80:128:128-v64:64:64-v128:128:128-a0:0:64-f80:32:32-n8:16:32-S32" target triple = "i686-pc-win32" ; Assertion failed: (CurScaleCost >= 0 && "Legal addressing mode has an illegal cost!") ; CHECK-LABEL: @scalingFactorCrash( define void @scalingFactorCrash() { br i1 undef, label %1, label %24 ;