brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.6 KiB · eed772b Raw
62 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py2; RUN: opt -passes=slp-vectorizer -S < %s | FileCheck %s3target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"4target triple = "x86_64-pc-windows-msvc18.0.0"5 6%struct.B = type { i64, i64 }7 8define void @test1(ptr %p) personality ptr @__CxxFrameHandler3 {9; CHECK-LABEL: @test1(10; CHECK-NEXT:  invoke.cont:11; CHECK-NEXT:    [[TMP0:%.*]] = load <2 x i64>, ptr [[P:%.*]], align 812; CHECK-NEXT:    [[LOAD1:%.*]] = extractelement <2 x i64> [[TMP0]], i32 013; CHECK-NEXT:    store <2 x i64> [[TMP0]], ptr [[P]], align 814; CHECK-NEXT:    invoke void @throw()15; CHECK-NEXT:            to label [[UNREACHABLE:%.*]] unwind label [[CATCH_DISPATCH:%.*]]16; CHECK:       catch.dispatch:17; CHECK-NEXT:    [[CS:%.*]] = catchswitch within none [label %invoke.cont1] unwind label [[EHCLEANUP:%.*]]18; CHECK:       invoke.cont1:19; CHECK-NEXT:    [[CATCH:%.*]] = catchpad within [[CS]] [ptr null, i32 64, ptr null]20; CHECK-NEXT:    invoke void @throw() [ "funclet"(token [[CATCH]]) ]21; CHECK-NEXT:            to label [[UNREACHABLE]] unwind label [[EHCLEANUP]]22; CHECK:       ehcleanup:23; CHECK-NEXT:    [[PHI:%.*]] = phi i64 [ [[LOAD1]], [[CATCH_DISPATCH]] ], [ 9, [[INVOKE_CONT1:%.*]] ]24; CHECK-NEXT:    [[CLEANUP:%.*]] = cleanuppad within none []25; CHECK-NEXT:    call void @release(i64 [[PHI]]) [ "funclet"(token [[CLEANUP]]) ]26; CHECK-NEXT:    cleanupret from [[CLEANUP]] unwind to caller27; CHECK:       unreachable:28; CHECK-NEXT:    unreachable29;30invoke.cont:31  %gep2 = getelementptr inbounds %struct.B, ptr %p, i64 0, i32 132  %load1 = load i64, ptr %p, align 833  %load2 = load i64, ptr %gep2, align 834  store i64 %load1, ptr %p, align 835  store i64 %load2, ptr %gep2, align 836  invoke void @throw()37  to label %unreachable unwind label %catch.dispatch38 39catch.dispatch:                                   ; preds = %invoke.cont40  %cs = catchswitch within none [label %invoke.cont1] unwind label %ehcleanup41 42invoke.cont1:                                     ; preds = %catch.dispatch43  %catch = catchpad within %cs [ptr null, i32 64, ptr null]44  invoke void @throw() [ "funclet"(token %catch) ]45  to label %unreachable unwind label %ehcleanup46 47ehcleanup:                                        ; preds = %invoke.cont1, %catch.dispatch48  %phi = phi i64 [ %load1, %catch.dispatch ], [ 9, %invoke.cont1 ]49  %cleanup = cleanuppad within none []50  call void @release(i64 %phi) [ "funclet"(token %cleanup) ]51  cleanupret from %cleanup unwind to caller52 53unreachable:                                      ; preds = %invoke.cont1, %invoke.cont54  unreachable55}56 57declare i32 @__CxxFrameHandler3(...)58 59declare void @throw()60 61declare void @release(i64)62