[X86] Update test/CodeGen/X86/avg.ll with the help of update_llc_test_checks.py....
[oota-llvm.git] / test / CodeGen / X86 / exception-label.ll
1 ; RUN: llc < %s -mtriple=x86_64-pc-linux | FileCheck %s
2
3 ; Test that we can handle .Lexception0 being defined. We used to crash.
4
5 ; CHECK: .cfi_lsda 3, [[LABEL:.*]]
6 ; CHECK: [[LABEL]]:
7 ; CHECK-NEXT: .byte   255                     # @LPStart Encoding = omit
8
9 declare void @g()
10
11 define void @f() personality i8* bitcast (void ()* @g to i8*) {
12 bb0:
13   call void asm ".Lexception0:", ""()
14   invoke void @g()
15           to label %bb2 unwind label %bb1
16 bb1:
17   landingpad { i8*, i32 }
18           catch i8* null
19   br label %bb2
20
21 bb2:
22   ret void
23 }