brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.9 KiB · 01a7e1f Raw
63 lines · plain
1; RUN: llc  < %s -mtriple=mipsel | FileCheck %s -check-prefix=CHECK-EL2; RUN: llc  < %s -mtriple=mips   | FileCheck %s -check-prefix=CHECK-EB3 4@g1 = global double 0.000000e+00, align 85@_ZTId = external constant ptr6 7define void @_Z1fd(double %i2) personality ptr @__gxx_personality_v0 {8entry:9; CHECK-EL:  addiu $sp, $sp10; CHECK-EL:  .cfi_def_cfa_offset11; CHECK-EL:  sdc1 $f2012; CHECK-EL:  sw  $ra13; CHECK-EL:  .cfi_offset 52, -814; CHECK-EL:  .cfi_offset 53, -415; CHECK-EB:  .cfi_offset 53, -816; CHECK-EB:  .cfi_offset 52, -417; CHECK-EL:  .cfi_offset 31, -1218 19  %exception = tail call ptr @__cxa_allocate_exception(i32 8) nounwind20  store double 3.200000e+00, ptr %exception, align 821  invoke void @__cxa_throw(ptr %exception, ptr @_ZTId, ptr null) noreturn22          to label %unreachable unwind label %lpad23 24lpad:                                             ; preds = %entry25; CHECK-EL:  # %lpad26; CHECK-EL:  bne $527 28  %exn.val = landingpad { ptr, i32 }29           cleanup30           catch ptr @_ZTId31  %exn = extractvalue { ptr, i32 } %exn.val, 032  %sel = extractvalue { ptr, i32 } %exn.val, 133  %0 = tail call i32 @llvm.eh.typeid.for(ptr @_ZTId) nounwind34  %1 = icmp eq i32 %sel, %035  br i1 %1, label %catch, label %eh.resume36 37catch:                                            ; preds = %lpad38  %2 = tail call ptr @__cxa_begin_catch(ptr %exn) nounwind39  %exn.scalar = load double, ptr %2, align 840  %add = fadd double %exn.scalar, %i241  store double %add, ptr @g1, align 842  tail call void @__cxa_end_catch() nounwind43  ret void44 45eh.resume:                                        ; preds = %lpad46  resume { ptr, i32 } %exn.val47 48unreachable:                                      ; preds = %entry49  unreachable50}51 52declare ptr @__cxa_allocate_exception(i32)53 54declare i32 @__gxx_personality_v0(...)55 56declare i32 @llvm.eh.typeid.for(ptr) nounwind57 58declare void @__cxa_throw(ptr, ptr, ptr)59 60declare ptr @__cxa_begin_catch(ptr)61 62declare void @__cxa_end_catch()63