brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.2 KiB · 75cf086 Raw
72 lines · plain
1; RUN: llc -mtriple=arm-netbsd-eabi -o - -filetype=asm -simplifycfg-require-and-preserve-domtree=1 %s | \2; RUN: FileCheck %s3; RUN: llc -mtriple=arm-netbsd-eabi -o - -filetype=asm -simplifycfg-require-and-preserve-domtree=1 %s \4; RUN: -relocation-model=pic | FileCheck -check-prefix=CHECK-PIC %s5 6; ModuleID = 'test.cc'7target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:64:128-a0:0:64-n32-S64"8target triple = "armv5e--netbsd-eabi"9 10%struct.exception = type { i8 }11 12@_ZTVN10__cxxabiv117__class_type_infoE = external global ptr13@_ZTS9exception = linkonce_odr constant [11 x i8] c"9exception\00"14@_ZTI9exception = linkonce_odr unnamed_addr constant { ptr, ptr } { ptr getelementptr inbounds (ptr, ptr @_ZTVN10__cxxabiv117__class_type_infoE, i32 2), ptr @_ZTS9exception }15 16define void @f() uwtable personality ptr @__gxx_personality_v0 {17  %1 = alloca ptr18  %2 = alloca i3219  %e = alloca ptr, align 420  invoke void @g()21          to label %3 unwind label %422 23  br label %1624 25  %5 = landingpad { ptr, i32 }26          catch ptr @_ZTI9exception27  %6 = extractvalue { ptr, i32 } %5, 028  store ptr %6, ptr %129  %7 = extractvalue { ptr, i32 } %5, 130  store i32 %7, ptr %231  br label %832 33  %9 = load i32, ptr %234  %10 = call i32 @llvm.eh.typeid.for(ptr @_ZTI9exception) nounwind35  %11 = icmp eq i32 %9, %1036  br i1 %11, label %12, label %1737 38  %13 = load ptr, ptr %139  %14 = call ptr @__cxa_begin_catch(ptr %13) #340  %15 = bitcast ptr %14 to ptr41  store ptr %15, ptr %e42  call void @__cxa_end_catch()43  br label %1644 45  ret void46 47  %18 = load ptr, ptr %148  %19 = load i32, ptr %249  %20 = insertvalue { ptr, i32 } undef, ptr %18, 050  %21 = insertvalue { ptr, i32 } %20, i32 %19, 151  resume { ptr, i32 } %2152}53 54declare void @g()55 56declare i32 @__gxx_personality_v0(...)57 58declare i32 @llvm.eh.typeid.for(ptr) nounwind readnone59 60declare ptr @__cxa_begin_catch(ptr)61 62declare void @__cxa_end_catch()63 64; CHECK: .cfi_personality 0,65; CHECK: .cfi_lsda 0,66; CHECK: @TType Encoding = absptr67; CHECK: @ Call site Encoding = uleb12868; CHECK-PIC: .cfi_personality 155,69; CHECK-PIC: .cfi_lsda 27,70; CHECK-PIC: @TType Encoding = indirect pcrel sdata471; CHECK-PIC: @ Call site Encoding = uleb12872