1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py 2; RUN: opt -S -slp-vectorizer < %s | FileCheck %s 3target datalayout = "e-m:x-p:32:32-i64:64-f80:32-n8:16:32-a:0:32-S32" 4target triple = "i686-pc-windows-msvc18.0.0" 5 6define void @test1(double* %a, double* %b, double* %c) #0 personality i32 (...)* @__CxxFrameHandler3 { 7; CHECK-LABEL: @test1( 8; CHECK-NEXT: entry: 9; CHECK-NEXT: invoke void @_CxxThrowException(i8* null, i8* null) 10; CHECK-NEXT: to label [[UNREACHABLE:%.*]] unwind label [[CATCH_DISPATCH:%.*]] 11; CHECK: catch.dispatch: 12; CHECK-NEXT: [[TMP0:%.*]] = catchswitch within none [label %catch] unwind to caller 13; CHECK: catch: 14; CHECK-NEXT: [[TMP1:%.*]] = catchpad within [[TMP0]] [i8* null, i32 64, i8* null] 15; CHECK-NEXT: [[TMP2:%.*]] = bitcast double* [[A:%.*]] to <2 x double>* 16; CHECK-NEXT: [[TMP3:%.*]] = load <2 x double>, <2 x double>* [[TMP2]], align 8 17; CHECK-NEXT: [[TMP4:%.*]] = bitcast double* [[B:%.*]] to <2 x double>* 18; CHECK-NEXT: [[TMP5:%.*]] = load <2 x double>, <2 x double>* [[TMP4]], align 8 19; CHECK-NEXT: [[TMP6:%.*]] = fmul <2 x double> [[TMP3]], [[TMP5]] 20; CHECK-NEXT: [[TMP7:%.*]] = call <2 x double> @llvm.floor.v2f64(<2 x double> [[TMP6]]) [ "funclet"(token [[TMP1]]) ] 21; CHECK-NEXT: [[TMP8:%.*]] = bitcast double* [[C:%.*]] to <2 x double>* 22; CHECK-NEXT: store <2 x double> [[TMP7]], <2 x double>* [[TMP8]], align 8 23; CHECK-NEXT: catchret from [[TMP1]] to label [[TRY_CONT:%.*]] 24; CHECK: try.cont: 25; CHECK-NEXT: ret void 26; CHECK: unreachable: 27; CHECK-NEXT: unreachable 28; 29entry: 30 invoke void @_CxxThrowException(i8* null, i8* null) 31 to label %unreachable unwind label %catch.dispatch 32 33catch.dispatch: ; preds = %entry 34 %0 = catchswitch within none [label %catch] unwind to caller 35 36catch: ; preds = %catch.dispatch 37 %1 = catchpad within %0 [i8* null, i32 64, i8* null] 38 %i0 = load double, double* %a, align 8 39 %i1 = load double, double* %b, align 8 40 %mul = fmul double %i0, %i1 41 %call = tail call double @floor(double %mul) #1 [ "funclet"(token %1) ] 42 %arrayidx3 = getelementptr inbounds double, double* %a, i64 1 43 %i3 = load double, double* %arrayidx3, align 8 44 %arrayidx4 = getelementptr inbounds double, double* %b, i64 1 45 %i4 = load double, double* %arrayidx4, align 8 46 %mul5 = fmul double %i3, %i4 47 %call5 = tail call double @floor(double %mul5) #1 [ "funclet"(token %1) ] 48 store double %call, double* %c, align 8 49 %arrayidx5 = getelementptr inbounds double, double* %c, i64 1 50 store double %call5, double* %arrayidx5, align 8 51 catchret from %1 to label %try.cont 52 53try.cont: ; preds = %for.cond.cleanup 54 ret void 55 56unreachable: ; preds = %entry 57 unreachable 58} 59 60declare x86_stdcallcc void @_CxxThrowException(i8*, i8*) 61 62declare i32 @__CxxFrameHandler3(...) 63 64declare double @floor(double) #1 65 66attributes #0 = { "target-features"="+sse2" } 67attributes #1 = { nounwind readnone willreturn } 68