summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/x86-framelowering-trap.ll
blob: 58a1da23a2949a8262f9896059c664d61da0a6b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
; RUN: llc %s -o - | FileCheck %s
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

; CHECK-LABEL: bar:
; CHECK: ud2
; CHECK-NEXT: retq
define void @bar() {
entry:
  call void @llvm.trap()
  ret void
}

; Function Attrs: noreturn nounwind
declare void @llvm.trap()
OpenPOWER on IntegriCloud