brintos

brintos / llvm-project-archived public Read only

0
0
Text · 903 B · d0fa405 Raw
31 lines · plain
1; RUN: llc  -mtriple=mipsel-elf -mattr=mips16 -relocation-model=pic -O3 < %s | FileCheck %s -check-prefix=162 3@.str = private unnamed_addr constant [6 x i8] c"hello\00", align 14@_ZTIPKc = external constant ptr5 6define i32 @main() {7; 16-LABEL: main:8; 16: 	.cfi_startproc9; 16: 	save	$16, $17, $ra, 32 # 16 bit inst10; 16:   .cfi_def_cfa_offset 3211; 16: 	.cfi_offset 31, -412; 16: 	.cfi_offset 17, -813; 16:   .cfi_offset 16, -1214; 16:   .cfi_endproc15entry:16  %retval = alloca i32, align 417  store i32 0, ptr %retval18  %exception = call ptr @__cxa_allocate_exception(i32 4) nounwind19  store ptr @.str, ptr %exception20  call void @__cxa_throw(ptr %exception, ptr @_ZTIPKc, ptr null) noreturn21  unreachable22 23return:                                           ; No predecessors!24  %0 = load i32, ptr %retval25  ret i32 %026}27 28declare ptr @__cxa_allocate_exception(i32)29 30declare void @__cxa_throw(ptr, ptr, ptr)31