1; RUN: opt -S -slp-vectorizer < %s | FileCheck %s 2target datalayout = "e-m:x-p:32:32-i64:64-f80:32-n8:16:32-a:0:32-S32" 3target triple = "i686-pc-windows-msvc18.0.0" 4 5define void @test1(double* %a, double* %b, double* %c) #0 personality i32 (...)* @__CxxFrameHandler3 { 6entry: 7 invoke void @_CxxThrowException(i8* null, i8* null) 8 to label %unreachable unwind label %catch.dispatch 9 10catch.dispatch: ; preds = %entry 11 %0 = catchswitch within none [label %catch] unwind to caller 12 13catch: ; preds = %catch.dispatch 14 %1 = catchpad within %0 [i8* null, i32 64, i8* null] 15 %i0 = load double, double* %a, align 8 16 %i1 = load double, double* %b, align 8 17 %mul = fmul double %i0, %i1 18 %call = tail call double @floor(double %mul) #1 [ "funclet"(token %1) ] 19 %arrayidx3 = getelementptr inbounds double, double* %a, i64 1 20 %i3 = load double, double* %arrayidx3, align 8 21 %arrayidx4 = getelementptr inbounds double, double* %b, i64 1 22 %i4 = load double, double* %arrayidx4, align 8 23 %mul5 = fmul double %i3, %i4 24 %call5 = tail call double @floor(double %mul5) #1 [ "funclet"(token %1) ] 25 store double %call, double* %c, align 8 26 %arrayidx5 = getelementptr inbounds double, double* %c, i64 1 27 store double %call5, double* %arrayidx5, align 8 28 catchret from %1 to label %try.cont 29 30try.cont: ; preds = %for.cond.cleanup 31 ret void 32 33unreachable: ; preds = %entry 34 unreachable 35} 36 37; CHECK-LABEL: define void @test1( 38; CHECK: %[[cpad:.*]] = catchpad within {{.*}} [i8* null, i32 64, i8* null] 39; CHECK: call <2 x double> @llvm.floor.v2f64(<2 x double> {{.*}}) [ "funclet"(token %[[cpad]]) ] 40 41declare x86_stdcallcc void @_CxxThrowException(i8*, i8*) 42 43declare i32 @__CxxFrameHandler3(...) 44 45declare double @floor(double) #1 46 47attributes #0 = { "target-features"="+sse2" } 48attributes #1 = { nounwind readnone } 49