Home | History | Annotate | Download | only in X86
      1 ; RUN: llc < %s -mtriple=x86_64-pc-linux -relocation-model=pic | FileCheck %s
      2 
      3 ; PR18390
      4 ; We used to assert creating this label. The name itself is not critical. It
      5 ; just needs to be a unique local symbol.
      6 ; PR36885
      7 ; The stub symbol should have pointer-size (8 byte) alignment.
      8 ; CHECK:      .data
      9 ; CHECK-NEXT: .p2align 3
     10 ; CHECK-NEXT: .L.Lstr.DW.stub:
     11 ; CHECK-NEXT: .quad   .Lstr
     12 
     13 @str = private unnamed_addr constant [12 x i8] c"NSException\00"
     14 define void @f() personality i8* bitcast (void ()* @h to i8*) {
     15   invoke void @g()
     16           to label %invoke.cont unwind label %lpad
     17 invoke.cont:
     18   ret void
     19 lpad:
     20   %tmp14 = landingpad { i8*, i32 }
     21            catch i8* getelementptr inbounds ([12 x i8], [12 x i8]* @str, i64 0, i64 0)
     22   ret void
     23 }
     24 declare void @g()
     25 declare void @h()
     26