1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-22 20:43:44 +02:00
llvm-mirror/test/CodeGen/X86/eh_frame.ll
Rafael Espindola 7dc62cff14 Bring r252305 back with a test fix.
We now create the .eh_frame section early, just like every other special
section.

This means that the special flags are visible in code that explicitly
asks for ".eh_frame".

llvm-svn: 252313
2015-11-06 15:30:45 +00:00

15 lines
531 B
LLVM

; RUN: llc < %s -mtriple x86_64-unknown-linux-gnu | FileCheck -check-prefix=STATIC %s
; RUN: llc < %s -mtriple x86_64-unknown-linux-gnu -relocation-model=pic | FileCheck -check-prefix=PIC %s
@__FRAME_END__ = constant [1 x i32] zeroinitializer, section ".eh_frame"
@foo = external global i32
@bar1 = constant i8* bitcast (i32* @foo to i8*), section "my_bar1", align 8
; STATIC: .section .eh_frame,"a",@unwind
; STATIC: .section my_bar1,"a",@progbits
; PIC: .section .eh_frame,"a",@unwind
; PIC: .section my_bar1,"aw",@progbits