diff options
author | Chris Lattner <sabre@nondot.org> | 2009-07-26 01:24:18 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-07-26 01:24:18 +0000 |
commit | 30c4a3b9a896e2cbb4ef91d46f751a9c48558da4 (patch) | |
tree | 272b43047ebbd69fc95910fdd7595621579187f1 /test/CodeGen/X86/global-sections.ll | |
parent | c993250dd2a4e4f6629179613b6b0757108319e7 (diff) | |
download | llvm-30c4a3b9a896e2cbb4ef91d46f751a9c48558da4.tar.gz llvm-30c4a3b9a896e2cbb4ef91d46f751a9c48558da4.tar.bz2 llvm-30c4a3b9a896e2cbb4ef91d46f751a9c48558da4.tar.xz |
finish simplifying DarwinTargetAsmInfo::SelectSectionForGlobal
for now. Make the section switching directives more consistent
by not including \n and including \t for them all.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77107 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/global-sections.ll')
-rw-r--r-- | test/CodeGen/X86/global-sections.ll | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/CodeGen/X86/global-sections.ll b/test/CodeGen/X86/global-sections.ll index ab3c5922e7..ef31defeb5 100644 --- a/test/CodeGen/X86/global-sections.ll +++ b/test/CodeGen/X86/global-sections.ll @@ -23,3 +23,20 @@ ; DARWIN: .section __TEXT,__const_coal,coalesced ; DARWIN: _G2: ; DARWIN: .long 42 + + +; int * const G3 = &G1; +@G3 = constant i32* @G1 + +; DARWIN: .const_data +; DARWIN: .globl _G3 +; DARWIN: _G3: +; DARWIN: .long _G1 + + +; _Complex long long const G4 = 34; +@G4 = constant {i64,i64} { i64 34, i64 0 } + +; DARWIN: .const +; DARWIN: _G4: +; .long 34 |