llvm.org GIT mirror llvm / release_39 test / CodeGen / X86 / x86-framelowering-trap.ll
release_39

Tree @release_39 (Download .tar.gz)

x86-framelowering-trap.ll @release_39raw · history · blame

; 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()