46 lines · plain
1; RUN: opt -S -passes=loop-vectorize < %s | FileCheck %s2target 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() #0 personality ptr @__CxxFrameHandler3 {6entry:7 invoke void @_CxxThrowException(ptr null, ptr null)8 to label %unreachable unwind label %catch.dispatch9 10catch.dispatch: ; preds = %entry11 %0 = catchswitch within none [label %catch] unwind to caller12 13catch: ; preds = %catch.dispatch14 %1 = catchpad within %0 [ptr null, i32 64, ptr null]15 br label %for.body16 17for.cond.cleanup: ; preds = %for.body18 catchret from %1 to label %try.cont19 20for.body: ; preds = %for.body, %catch21 %i.07 = phi i32 [ 0, %catch ], [ %inc, %for.body ]22 %call = call double @floor(double 1.0) #1 [ "funclet"(token %1) ]23 %inc = add nuw nsw i32 %i.07, 124 %exitcond = icmp eq i32 %inc, 102425 br i1 %exitcond, label %for.cond.cleanup, label %for.body26 27try.cont: ; preds = %for.cond.cleanup28 ret void29 30unreachable: ; preds = %entry31 unreachable32}33 34; CHECK-LABEL: define void @test1(35; CHECK: %[[cpad:.*]] = catchpad within {{.*}} [ptr null, i32 64, ptr null]36; CHECK: call <16 x double> @llvm.floor.v16f64(<16 x double> {{.*}}) [ "funclet"(token %[[cpad]]) ]37 38declare x86_stdcallcc void @_CxxThrowException(ptr, ptr)39 40declare i32 @__CxxFrameHandler3(...)41 42declare double @floor(double) #143 44attributes #0 = { "target-features"="+sse2" }45attributes #1 = { nounwind readnone }46