brintos

brintos / llvm-project-archived public Read only

0
0
Text · 3.5 KiB · 2dece8d Raw
69 lines · plain
1; RUN: llc < %s -O3 -relocation-model=pic -frame-pointer=all -mcpu=nocona2;3; This test case is reduced from Bullet. It crashes SSEDomainFix.4;5target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128-n8:16:32"6target triple = "i386-apple-darwin10.0"7 8declare i32 @_ZN11HullLibrary16CreateConvexHullERK8HullDescR10HullResult(ptr, ptr nocapture, ptr nocapture) ssp align 29 10define void @_ZN17btSoftBodyHelpers4DrawEP10btSoftBodyP12btIDebugDrawi(ptr %psb, ptr %idraw, i32 %drawflags) ssp align 2 personality ptr @__gxx_personality_v0 {11entry:12  br i1 undef, label %bb92, label %bb5813 14bb58:                                             ; preds = %entry15  %0 = invoke i32 @_ZN11HullLibrary16CreateConvexHullERK8HullDescR10HullResult(ptr undef, ptr undef, ptr undef)16          to label %invcont64 unwind label %lpad159 ; <i32> [#uses=0]17 18invcont64:                                        ; preds = %bb5819  br i1 undef, label %invcont65, label %bb.i.i20 21bb.i.i:                                           ; preds = %invcont6422  %1 = load <4 x float>, ptr undef, align 16          ; <<4 x float>> [#uses=5]23  br i1 undef, label %bb.nph.i.i, label %invcont6524 25bb.nph.i.i:                                       ; preds = %bb.i.i26  %tmp22.i.i = bitcast <4 x float> %1 to i128     ; <i128> [#uses=1]27  %tmp23.i.i = trunc i128 %tmp22.i.i to i32       ; <i32> [#uses=1]28  %2 = bitcast i32 %tmp23.i.i to float            ; <float> [#uses=1]29  %tmp6.i = extractelement <4 x float> %1, i32 1  ; <float> [#uses=1]30  %tmp2.i = extractelement <4 x float> %1, i32 2  ; <float> [#uses=1]31  br label %bb1.i.i32 33bb1.i.i:                                          ; preds = %bb1.i.i, %bb.nph.i.i34  %.tmp6.0.i.i = phi float [ %tmp2.i, %bb.nph.i.i ], [ %5, %bb1.i.i ] ; <float> [#uses=1]35  %.tmp5.0.i.i = phi float [ %tmp6.i, %bb.nph.i.i ], [ %4, %bb1.i.i ] ; <float> [#uses=1]36  %.tmp.0.i.i = phi float [ %2, %bb.nph.i.i ], [ %3, %bb1.i.i ] ; <float> [#uses=1]37  %3 = fadd float %.tmp.0.i.i, undef              ; <float> [#uses=2]38  %4 = fadd float %.tmp5.0.i.i, undef             ; <float> [#uses=2]39  %5 = fadd float %.tmp6.0.i.i, undef             ; <float> [#uses=2]40  br i1 undef, label %bb2.return.loopexit_crit_edge.i.i, label %bb1.i.i41 42bb2.return.loopexit_crit_edge.i.i:                ; preds = %bb1.i.i43  %tmp8.i = insertelement <4 x float> %1, float %3, i32 0 ; <<4 x float>> [#uses=1]44  %tmp4.i = insertelement <4 x float> %tmp8.i, float %4, i32 1 ; <<4 x float>> [#uses=1]45  %tmp.i = insertelement <4 x float> %tmp4.i, float %5, i32 2 ; <<4 x float>> [#uses=1]46  br label %invcont6547 48invcont65:                                        ; preds = %bb2.return.loopexit_crit_edge.i.i, %bb.i.i, %invcont6449  %.0.i = phi <4 x float> [ %tmp.i, %bb2.return.loopexit_crit_edge.i.i ], [ undef, %invcont64 ], [ %1, %bb.i.i ] ; <<4 x float>> [#uses=1]50  %tmp15.i = extractelement <4 x float> %.0.i, i32 2 ; <float> [#uses=1]51  %6 = fmul float %tmp15.i, undef                 ; <float> [#uses=1]52  br label %bb.i26553 54bb.i265:                                          ; preds = %bb.i265, %invcont6555  %7 = fsub float 0.000000e+00, %6                ; <float> [#uses=1]56  store float %7, ptr undef, align 457  br label %bb.i26558 59bb92:                                             ; preds = %entry60  unreachable61 62lpad159:                                          ; preds = %bb5863  %exn = landingpad {ptr, i32}64            cleanup65  unreachable66}67 68declare i32 @__gxx_personality_v0(...)69