2015-02-28 02:18:39 +08:00
|
|
|
; RUN: llc < %s -mtriple=x86_64-pc-linux | FileCheck %s
|
2015-03-04 08:27:43 +08:00
|
|
|
; Test that we don't crashe if the .Lfunc_end0 name is taken.
|
2015-02-28 02:18:39 +08:00
|
|
|
|
|
|
|
declare void @g()
|
|
|
|
|
2015-06-18 04:52:32 +08:00
|
|
|
define void @f() personality i8* bitcast (void ()* @g to i8*) {
|
2015-02-28 02:18:39 +08:00
|
|
|
bb0:
|
2015-03-04 08:27:43 +08:00
|
|
|
call void asm ".Lfunc_end0:", ""()
|
2015-02-28 02:18:39 +08:00
|
|
|
; CHECK: #APP
|
2015-03-04 08:27:43 +08:00
|
|
|
; CHECK-NEXT: .Lfunc_end0:
|
2015-02-28 02:18:39 +08:00
|
|
|
; CHECK-NEXT: #NO_APP
|
|
|
|
|
|
|
|
invoke void @g() to label %bb2 unwind label %bb1
|
|
|
|
bb1:
|
2015-06-18 04:52:32 +08:00
|
|
|
landingpad { i8*, i32 }
|
2015-02-28 02:18:39 +08:00
|
|
|
catch i8* null
|
|
|
|
call void @g()
|
|
|
|
ret void
|
|
|
|
bb2:
|
|
|
|
ret void
|
|
|
|
|
2015-03-04 08:27:43 +08:00
|
|
|
; CHECK: [[END:.Lfunc_end.*]]:
|
2015-02-28 02:18:39 +08:00
|
|
|
; CHECK: .long [[END]]-
|
|
|
|
}
|