llvm-for-llvmta/test/CodeGen/ARM/Windows/builtin_longjmp.ll

16 lines
373 B
LLVM
Raw Normal View History

2022-04-25 10:02:23 +02:00
; RUN: llc -mtriple thumbv7--windows-itanium -filetype asm -o - %s | FileCheck %s
declare void @llvm.eh.sjlj.longjmp(i8*)
define arm_aapcs_vfpcc void @test___builtin_longjump(i8* %b) {
entry:
tail call void @llvm.eh.sjlj.longjmp(i8* %b)
unreachable
}
; CHECK: push.w {r11, lr}
; CHECK: ldr.w r11, [r0]
; CHECK: ldr.w sp, [r0, #8]
; CHECK: ldr.w pc, [r0, #4]