diff options
author | Eric Christopher <echristo@gmail.com> | 2017-02-10 03:32:21 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2017-02-10 03:32:21 +0000 |
commit | d11a6cc2e7e67840fd733ef7ef22f1f488072b27 (patch) | |
tree | befbae9b48dd6b31c231e704690b5a4ca4cc0c69 /test/LTO | |
parent | dffd427f801430274f91f8310b3b8d54639364c1 (diff) |
For X86-64 linux and PPC64 linux align int128 to 16 bytes.
For other platforms we should find out what they need and likely
make the same change, however, a smaller additional change is easier
for platforms we know have it specified in the ABI. As part of this
rewrite some of the handling in the backends for data layout and update
a bunch of testcases.
Based on a patch by Simonas Kazlauskas!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@294702 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/LTO')
-rw-r--r-- | test/LTO/Resolution/X86/Inputs/comdat.ll | 2 | ||||
-rw-r--r-- | test/LTO/Resolution/X86/Inputs/common2.ll | 2 | ||||
-rw-r--r-- | test/LTO/Resolution/X86/Inputs/mixed_lto.ll | 2 | ||||
-rw-r--r-- | test/LTO/Resolution/X86/comdat.ll | 2 | ||||
-rw-r--r-- | test/LTO/Resolution/X86/common2.ll | 2 | ||||
-rw-r--r-- | test/LTO/Resolution/X86/lowertypetests.ll | 2 | ||||
-rw-r--r-- | test/LTO/Resolution/X86/mixed_lto.ll | 2 |
7 files changed, 7 insertions, 7 deletions
diff --git a/test/LTO/Resolution/X86/Inputs/comdat.ll b/test/LTO/Resolution/X86/Inputs/comdat.ll index ca4bbb4bf81..253b4e74090 100644 --- a/test/LTO/Resolution/X86/Inputs/comdat.ll +++ b/test/LTO/Resolution/X86/Inputs/comdat.ll @@ -1,4 +1,4 @@ -target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" +target datalayout = "e-m:e-i64:64-i128:128-f80:128-n8:16:32:64-S128" target triple = "x86_64-unknown-linux-gnu" $c2 = comdat any diff --git a/test/LTO/Resolution/X86/Inputs/common2.ll b/test/LTO/Resolution/X86/Inputs/common2.ll index c3a7f753684..449f3d5c343 100644 --- a/test/LTO/Resolution/X86/Inputs/common2.ll +++ b/test/LTO/Resolution/X86/Inputs/common2.ll @@ -1,4 +1,4 @@ -target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" +target datalayout = "e-m:e-i64:64-i128:128-f80:128-n8:16:32:64-S128" target triple = "x86_64-unknown-linux-gnu" @v = common global i16 0, align 4 diff --git a/test/LTO/Resolution/X86/Inputs/mixed_lto.ll b/test/LTO/Resolution/X86/Inputs/mixed_lto.ll index 2393deb3241..c1c3f8e0655 100644 --- a/test/LTO/Resolution/X86/Inputs/mixed_lto.ll +++ b/test/LTO/Resolution/X86/Inputs/mixed_lto.ll @@ -1,4 +1,4 @@ -target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" +target datalayout = "e-m:e-i64:64-i128:128-f80:128-n8:16:32:64-S128" target triple = "x86_64-unknown-linux-gnu" declare i32 @g() define i32 @main() { diff --git a/test/LTO/Resolution/X86/comdat.ll b/test/LTO/Resolution/X86/comdat.ll index 5124b951bed..32cada5161e 100644 --- a/test/LTO/Resolution/X86/comdat.ll +++ b/test/LTO/Resolution/X86/comdat.ll @@ -22,7 +22,7 @@ ; RUN: -r=%t2.o,a25,px ; RUN: llvm-dis %t3.o.0.2.internalize.bc -o - | FileCheck %s -target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" +target datalayout = "e-m:e-i64:64-i128:128-f80:128-n8:16:32:64-S128" target triple = "x86_64-unknown-linux-gnu" $c1 = comdat any diff --git a/test/LTO/Resolution/X86/common2.ll b/test/LTO/Resolution/X86/common2.ll index 3328d7c5ec3..520ccf27112 100644 --- a/test/LTO/Resolution/X86/common2.ll +++ b/test/LTO/Resolution/X86/common2.ll @@ -70,7 +70,7 @@ ; RUN: -r %t2.bc,bar,px ; RUN: llvm-dis < %t.o.0.0.preopt.bc | FileCheck %s --check-prefix=BOTH-PREVAILED2 -target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" +target datalayout = "e-m:e-i64:64-i128:128-f80:128-n8:16:32:64-S128" target triple = "x86_64-unknown-linux-gnu" @v = common global i8 0, align 8 diff --git a/test/LTO/Resolution/X86/lowertypetests.ll b/test/LTO/Resolution/X86/lowertypetests.ll index 3753689a699..7c2230738f0 100644 --- a/test/LTO/Resolution/X86/lowertypetests.ll +++ b/test/LTO/Resolution/X86/lowertypetests.ll @@ -6,7 +6,7 @@ ; MERGED: R __typeid_foo_global_addr ; CHECK: U __typeid_foo_global_addr -target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" +target datalayout = "e-m:e-i64:64-i128:128-f80:128-n8:16:32:64-S128" target triple = "x86_64-unknown-linux-gnu" @foo = global i32 0, !type !0 diff --git a/test/LTO/Resolution/X86/mixed_lto.ll b/test/LTO/Resolution/X86/mixed_lto.ll index 02b15c61154..25f7c59620e 100644 --- a/test/LTO/Resolution/X86/mixed_lto.ll +++ b/test/LTO/Resolution/X86/mixed_lto.ll @@ -19,7 +19,7 @@ ; RUN: llvm-nm %t5.o.0 | FileCheck %s --check-prefix=NM0 ; RUN: llvm-nm %t5.o.1 | FileCheck %s --check-prefix=NM1 -target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" +target datalayout = "e-m:e-i64:64-i128:128-f80:128-n8:16:32:64-S128" target triple = "x86_64-unknown-linux-gnu" define i32 @g() { ret i32 0 |