llvm-project/llvm/test/CodeGen/X86/macho-trap.ll
Tim Northover 271d3d2771 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

8 lines
165 B
LLVM

; RUN: llc -mtriple=x86_64-apple-macosx10.11 %s -o - | FileCheck %s
define void @test_unreachable() {
; CHECK-LABEL: test_unreachable:
; CHECK: ud2
unreachable
}