comparison test/CodeGen/X86/coal-sections.ll @ 100:7d135dc70f03 LLVM 3.9

LLVM 3.9
author Miyagi Mitsuki <e135756@ie.u-ryukyu.ac.jp>
date Tue, 26 Jan 2016 22:53:40 +0900
parents
children
comparison
equal deleted inserted replaced
96:6418606d0ead 100:7d135dc70f03
1 ; RUN: llc < %s -mtriple x86_64-apple-darwin | FileCheck %s
2
3 ; Check that *coal* sections are not emitted.
4
5 ; CHECK: .section __TEXT,__text,regular,pure_instructions{{$}}
6 ; CHECK-NEXT: .globl _foo
7
8 ; CHECK: .section __TEXT,__const{{$}}
9 ; CHECK-NEXT: .globl _a
10
11 ; CHECK: .section __DATA,__data{{$}}
12 ; CHECK-NEXT: .globl _b
13
14 @a = weak_odr constant [4 x i32] [i32 1, i32 2, i32 3, i32 4], align 16
15 @b = weak global i32 5, align 4
16 @g = common global i32* null, align 8
17
18 ; Function Attrs: nounwind ssp uwtable
19 define weak i32* @foo() {
20 entry:
21 store i32* getelementptr inbounds ([4 x i32], [4 x i32]* @a, i64 0, i64 0), i32** @g, align 8
22 ret i32* @b
23 }