1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00
llvm-mirror/test/CodeGen/X86/eh-frame-unreachable.ll
Tim Northover ab39f1740c MachO: trap unreachable instructions
Debugability is more important than saving 4 bytes to let us to fall
through to nonense.

llvm-svn: 330073
2018-04-13 22:25:20 +00:00

13 lines
309 B
LLVM

; RUN: llc < %s -mtriple=x86_64-apple-darwin | FileCheck %s
; Test that we don't emit a row that extends beyond the FDE's range_size.
;
; CHECK: movq %rsp, %rbp
; CHECK: ud2
; CHECK-NEXT: .cfi_endproc
; CHECK-NOT: .cfi
define void @f() #0 {
unreachable
}
attributes #0 = { "no-frame-pointer-elim"="true" }