2015-05-23 02:10:47 +08:00
|
|
|
; 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:
|
2016-08-10 01:55:12 +08:00
|
|
|
; CHECK: pushq
|
2015-05-23 02:10:47 +08:00
|
|
|
; CHECK: ud2
|
2016-08-10 01:55:12 +08:00
|
|
|
; CHECK-NEXT: popq
|
2018-04-24 18:32:08 +08:00
|
|
|
; CHECK-NEXT: .cfi_def_cfa_offset 8
|
2015-05-23 02:10:47 +08:00
|
|
|
; CHECK-NEXT: retq
|
|
|
|
define void @bar() {
|
|
|
|
entry:
|
2016-08-10 01:55:12 +08:00
|
|
|
call void @callee()
|
2015-05-23 02:10:47 +08:00
|
|
|
call void @llvm.trap()
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; Function Attrs: noreturn nounwind
|
|
|
|
declare void @llvm.trap()
|
2016-08-10 01:55:12 +08:00
|
|
|
|
|
|
|
declare void @callee()
|