llvm-for-llvmta/test/CodeGen/VE/Scalar/builtin_sjlj_lsda.ll

17 lines
476 B
LLVM
Raw Normal View History

2022-04-25 10:02:23 +02:00
; RUN: llc < %s -mtriple=ve -exception-model sjlj | FileCheck %s
; Function Attrs: noinline nounwind optnone
define i8* @test_lsda() {
; CHECK-LABEL: test_lsda:
; CHECK: # %bb.0:
; CHECK-NEXT: lea %s0, GCC_except_table0@lo
; CHECK-NEXT: and %s0, %s0, (32)0
; CHECK-NEXT: lea.sl %s0, GCC_except_table0@hi(, %s0)
; CHECK-NEXT: b.l.t (, %s10)
%ret = call i8* @llvm.eh.sjlj.lsda()
ret i8* %ret
}
; Function Attrs: nounwind
declare i8* @llvm.eh.sjlj.lsda()