summaryrefslogtreecommitdiffstats
path: root/lld/test
diff options
context:
space:
mode:
Diffstat (limited to 'lld/test')
-rw-r--r--lld/test/COFF/Inputs/bar.ll2
-rw-r--r--lld/test/COFF/Inputs/conflict.ll2
-rw-r--r--lld/test/COFF/Inputs/constant-export.ll2
-rw-r--r--lld/test/COFF/Inputs/entry-mangled.ll2
-rw-r--r--lld/test/COFF/Inputs/export.ll2
-rw-r--r--lld/test/COFF/Inputs/libcall-archive.ll2
-rw-r--r--lld/test/COFF/Inputs/lto-cache.ll2
-rw-r--r--lld/test/COFF/Inputs/lto-comdat1.ll2
-rw-r--r--lld/test/COFF/Inputs/lto-comdat2.ll2
-rw-r--r--lld/test/COFF/Inputs/lto-dep.ll2
-rw-r--r--lld/test/COFF/Inputs/lto-lazy-reference-dummy.ll2
-rw-r--r--lld/test/COFF/Inputs/lto-lazy-reference-quadruple.ll2
-rw-r--r--lld/test/COFF/Inputs/msvclto-order-a.ll2
-rw-r--r--lld/test/COFF/Inputs/msvclto-order-b.ll2
-rw-r--r--lld/test/COFF/Inputs/thinlto-empty.ll2
-rw-r--r--lld/test/COFF/Inputs/thinlto-mangled-qux.ll2
-rw-r--r--lld/test/COFF/Inputs/thinlto.ll2
-rw-r--r--lld/test/COFF/Inputs/undefined-symbol-lto-a.ll2
-rw-r--r--lld/test/COFF/Inputs/undefined-symbol-lto-b.ll2
-rw-r--r--lld/test/COFF/Inputs/weak-external.ll2
-rw-r--r--lld/test/COFF/Inputs/weak-external2.ll2
-rw-r--r--lld/test/COFF/Inputs/weak-external3.ll2
-rw-r--r--lld/test/COFF/entrylib.ll2
-rw-r--r--lld/test/COFF/guardcf-lto.ll2
-rw-r--r--lld/test/COFF/include-lto.ll2
-rw-r--r--lld/test/COFF/lib-module-asm.ll2
-rw-r--r--lld/test/COFF/libcall-archive.ll2
-rw-r--r--lld/test/COFF/loadcfg.ll2
-rw-r--r--lld/test/COFF/lto-cache.ll2
-rw-r--r--lld/test/COFF/lto-chkstk.ll2
-rw-r--r--lld/test/COFF/lto-comdat.ll2
-rw-r--r--lld/test/COFF/lto-cpu-string.ll2
-rw-r--r--lld/test/COFF/lto-debug-pass-arguments.ll2
-rw-r--r--lld/test/COFF/lto-icf.ll2
-rw-r--r--lld/test/COFF/lto-lazy-reference.ll2
-rw-r--r--lld/test/COFF/lto-linker-opts.ll2
-rw-r--r--lld/test/COFF/lto-new-symbol.ll2
-rw-r--r--lld/test/COFF/lto-obj-path.ll2
-rw-r--r--lld/test/COFF/lto-opt-level.ll2
-rw-r--r--lld/test/COFF/lto-parallel.ll2
-rw-r--r--lld/test/COFF/lto-reloc-model.ll2
-rw-r--r--lld/test/COFF/lto.ll2
-rw-r--r--lld/test/COFF/savetemps.ll2
-rw-r--r--lld/test/COFF/thinlto-archivecollision.ll2
-rw-r--r--lld/test/COFF/thinlto-archives.ll2
-rw-r--r--lld/test/COFF/thinlto-emit-imports.ll2
-rw-r--r--lld/test/COFF/thinlto-index-only.ll2
-rw-r--r--lld/test/COFF/thinlto-mangled.ll2
-rw-r--r--lld/test/COFF/thinlto-object-suffix-replace.ll2
-rw-r--r--lld/test/COFF/thinlto-prefix-replace.ll2
-rw-r--r--lld/test/COFF/thinlto.ll2
-rw-r--r--lld/test/COFF/unresolved-lto-bitcode.ll2
-rw-r--r--lld/test/COFF/unresolved-lto.ll2
-rw-r--r--lld/test/COFF/used-lto.ll2
-rw-r--r--lld/test/ELF/lto/Inputs/archive-2.ll2
-rw-r--r--lld/test/ELF/lto/Inputs/archive-3.ll2
-rw-r--r--lld/test/ELF/lto/Inputs/archive.ll2
-rw-r--r--lld/test/ELF/lto/Inputs/asmundef.ll2
-rw-r--r--lld/test/ELF/lto/Inputs/available-externally.ll2
-rw-r--r--lld/test/ELF/lto/Inputs/cache.ll2
-rw-r--r--lld/test/ELF/lto/Inputs/common3.ll2
-rw-r--r--lld/test/ELF/lto/Inputs/data-ordering-lto.ll2
-rw-r--r--lld/test/ELF/lto/Inputs/defsym-bar.ll2
-rw-r--r--lld/test/ELF/lto/Inputs/drop-linkage.ll2
-rw-r--r--lld/test/ELF/lto/Inputs/duplicated-name.ll2
-rw-r--r--lld/test/ELF/lto/Inputs/i386-empty.ll2
-rw-r--r--lld/test/ELF/lto/Inputs/internalize-exportdyn.ll2
-rw-r--r--lld/test/ELF/lto/Inputs/internalize-undef.ll2
-rw-r--r--lld/test/ELF/lto/Inputs/irmover-error.ll2
-rw-r--r--lld/test/ELF/lto/Inputs/irmover-warning.ll2
-rw-r--r--lld/test/ELF/lto/Inputs/lazy-internal.ll2
-rw-r--r--lld/test/ELF/lto/Inputs/libcall-archive.ll2
-rw-r--r--lld/test/ELF/lto/Inputs/linker-script-symbols-ipo.ll2
-rw-r--r--lld/test/ELF/lto/Inputs/linkonce-odr.ll2
-rw-r--r--lld/test/ELF/lto/Inputs/linkonce.ll2
-rw-r--r--lld/test/ELF/lto/Inputs/obj-path.ll2
-rw-r--r--lld/test/ELF/lto/Inputs/relocation-model-pic.ll2
-rw-r--r--lld/test/ELF/lto/Inputs/save-temps.ll2
-rw-r--r--lld/test/ELF/lto/Inputs/start-lib1.ll2
-rw-r--r--lld/test/ELF/lto/Inputs/start-lib2.ll2
-rw-r--r--lld/test/ELF/lto/Inputs/symbol-ordering-lto.ll2
-rw-r--r--lld/test/ELF/lto/Inputs/thin1.ll2
-rw-r--r--lld/test/ELF/lto/Inputs/thin2.ll2
-rw-r--r--lld/test/ELF/lto/Inputs/thinlto.ll2
-rw-r--r--lld/test/ELF/lto/Inputs/thinlto_empty.ll2
-rw-r--r--lld/test/ELF/lto/Inputs/type-merge.ll2
-rw-r--r--lld/test/ELF/lto/Inputs/type-merge2.ll2
-rw-r--r--lld/test/ELF/lto/Inputs/unnamed-addr-drop.ll2
-rw-r--r--lld/test/ELF/lto/Inputs/weakodr-visibility.ll2
-rw-r--r--lld/test/ELF/lto/Inputs/wrap-bar.ll2
-rw-r--r--lld/test/ELF/lto/abs-resol.ll2
-rw-r--r--lld/test/ELF/lto/archive-2.ll2
-rw-r--r--lld/test/ELF/lto/archive-3.ll2
-rw-r--r--lld/test/ELF/lto/archive-no-index.ll2
-rw-r--r--lld/test/ELF/lto/archive.ll2
-rw-r--r--lld/test/ELF/lto/asmundef.ll2
-rw-r--r--lld/test/ELF/lto/available-externally.ll2
-rw-r--r--lld/test/ELF/lto/cache.ll2
-rw-r--r--lld/test/ELF/lto/codemodel.ll2
-rw-r--r--lld/test/ELF/lto/combined-lto-object-name.ll2
-rw-r--r--lld/test/ELF/lto/comdat.ll2
-rw-r--r--lld/test/ELF/lto/comdat2.ll2
-rw-r--r--lld/test/ELF/lto/common.ll2
-rw-r--r--lld/test/ELF/lto/common2.ll2
-rw-r--r--lld/test/ELF/lto/common3.ll2
-rw-r--r--lld/test/ELF/lto/common4.ll2
-rw-r--r--lld/test/ELF/lto/cpu-string.ll2
-rw-r--r--lld/test/ELF/lto/ctors.ll2
-rw-r--r--lld/test/ELF/lto/debugger-tune.ll2
-rw-r--r--lld/test/ELF/lto/defsym.ll2
-rw-r--r--lld/test/ELF/lto/discard-value-names.ll2
-rw-r--r--lld/test/ELF/lto/drop-linkage.ll2
-rw-r--r--lld/test/ELF/lto/duplicated-name.ll2
-rw-r--r--lld/test/ELF/lto/duplicated.ll2
-rw-r--r--lld/test/ELF/lto/dynamic-list.ll2
-rw-r--r--lld/test/ELF/lto/dynsym.ll2
-rw-r--r--lld/test/ELF/lto/emit-llvm.ll2
-rw-r--r--lld/test/ELF/lto/inline-asm.ll2
-rw-r--r--lld/test/ELF/lto/internalize-basic.ll2
-rw-r--r--lld/test/ELF/lto/internalize-exportdyn.ll2
-rw-r--r--lld/test/ELF/lto/internalize-llvmused.ll2
-rw-r--r--lld/test/ELF/lto/internalize-undef.ll2
-rw-r--r--lld/test/ELF/lto/internalize-version-script.ll2
-rw-r--r--lld/test/ELF/lto/irmover-error.ll2
-rw-r--r--lld/test/ELF/lto/irmover-warning.ll2
-rw-r--r--lld/test/ELF/lto/keep-undefined.ll2
-rw-r--r--lld/test/ELF/lto/lazy-internal.ll2
-rw-r--r--lld/test/ELF/lto/libcall-archive.ll2
-rw-r--r--lld/test/ELF/lto/linkage.ll2
-rw-r--r--lld/test/ELF/lto/linker-script-symbols-assign.ll2
-rw-r--r--lld/test/ELF/lto/linker-script-symbols-ipo.ll2
-rw-r--r--lld/test/ELF/lto/linker-script-symbols.ll2
-rw-r--r--lld/test/ELF/lto/linkonce-odr.ll2
-rw-r--r--lld/test/ELF/lto/linkonce.ll2
-rw-r--r--lld/test/ELF/lto/lto-start.ll2
-rw-r--r--lld/test/ELF/lto/ltopasses-basic.ll2
-rw-r--r--lld/test/ELF/lto/ltopasses-custom.ll2
-rw-r--r--lld/test/ELF/lto/metadata.ll2
-rw-r--r--lld/test/ELF/lto/mix-platforms.ll2
-rw-r--r--lld/test/ELF/lto/mix-platforms2.ll2
-rw-r--r--lld/test/ELF/lto/module-asm.ll2
-rw-r--r--lld/test/ELF/lto/new-pass-manager.ll2
-rw-r--r--lld/test/ELF/lto/obj-path.ll2
-rw-r--r--lld/test/ELF/lto/opt-level.ll2
-rw-r--r--lld/test/ELF/lto/opt-remarks.ll2
-rw-r--r--lld/test/ELF/lto/parallel-internalize.ll2
-rw-r--r--lld/test/ELF/lto/parallel.ll2
-rw-r--r--lld/test/ELF/lto/pic.ll2
-rw-r--r--lld/test/ELF/lto/relax-relocs.ll2
-rw-r--r--lld/test/ELF/lto/relocatable.ll2
-rw-r--r--lld/test/ELF/lto/relocation-model.ll2
-rw-r--r--lld/test/ELF/lto/resolution.ll2
-rw-r--r--lld/test/ELF/lto/sample-profile.ll2
-rw-r--r--lld/test/ELF/lto/save-temps.ll2
-rw-r--r--lld/test/ELF/lto/section-name.ll2
-rw-r--r--lld/test/ELF/lto/setting-dso-local.ll2
-rw-r--r--lld/test/ELF/lto/shlib-undefined.ll2
-rw-r--r--lld/test/ELF/lto/start-lib.ll2
-rw-r--r--lld/test/ELF/lto/thin-archivecollision.ll2
-rw-r--r--lld/test/ELF/lto/thinlto-cant-write-index.ll2
-rw-r--r--lld/test/ELF/lto/thinlto-debug-fission.ll2
-rw-r--r--lld/test/ELF/lto/thinlto-emit-imports.ll2
-rw-r--r--lld/test/ELF/lto/thinlto-index-file.ll2
-rw-r--r--lld/test/ELF/lto/thinlto-index-only.ll2
-rw-r--r--lld/test/ELF/lto/thinlto-no-index.ll2
-rw-r--r--lld/test/ELF/lto/thinlto-obj-path.ll2
-rw-r--r--lld/test/ELF/lto/thinlto-object-suffix-replace.ll2
-rw-r--r--lld/test/ELF/lto/thinlto-prefix-replace.ll2
-rw-r--r--lld/test/ELF/lto/thinlto.ll2
-rw-r--r--lld/test/ELF/lto/timepasses.ll2
-rw-r--r--lld/test/ELF/lto/tls-mixed.ll2
-rw-r--r--lld/test/ELF/lto/tls-preserve.ll2
-rw-r--r--lld/test/ELF/lto/type-merge.ll2
-rw-r--r--lld/test/ELF/lto/type-merge2.ll2
-rw-r--r--lld/test/ELF/lto/undef-mixed.ll2
-rw-r--r--lld/test/ELF/lto/undef-weak.ll2
-rw-r--r--lld/test/ELF/lto/undef.ll2
-rw-r--r--lld/test/ELF/lto/undefined-puts.ll2
-rw-r--r--lld/test/ELF/lto/unnamed-addr-comdat.ll2
-rw-r--r--lld/test/ELF/lto/unnamed-addr-drop.ll2
-rw-r--r--lld/test/ELF/lto/unnamed-addr-lib.ll2
-rw-r--r--lld/test/ELF/lto/unnamed-addr.ll2
-rw-r--r--lld/test/ELF/lto/verify-invalid.ll2
-rw-r--r--lld/test/ELF/lto/version-script.ll2
-rw-r--r--lld/test/ELF/lto/version-script2.ll2
-rw-r--r--lld/test/ELF/lto/visibility.ll2
-rw-r--r--lld/test/ELF/lto/weak.ll2
-rw-r--r--lld/test/ELF/lto/weakodr-visibility.ll2
-rw-r--r--lld/test/ELF/lto/wrap-1.ll2
-rw-r--r--lld/test/ELF/lto/wrap-2.ll2
-rw-r--r--lld/test/wasm/lto/incompatible.ll2
191 files changed, 191 insertions, 191 deletions
diff --git a/lld/test/COFF/Inputs/bar.ll b/lld/test/COFF/Inputs/bar.ll
index 4aed5d22a9e..4cb7fb0e85f 100644
--- a/lld/test/COFF/Inputs/bar.ll
+++ b/lld/test/COFF/Inputs/bar.ll
@@ -1,4 +1,4 @@
-target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-windows-msvc"
define void @bar() {
diff --git a/lld/test/COFF/Inputs/conflict.ll b/lld/test/COFF/Inputs/conflict.ll
index 8cd7d706e5f..0b2772a095f 100644
--- a/lld/test/COFF/Inputs/conflict.ll
+++ b/lld/test/COFF/Inputs/conflict.ll
@@ -1,4 +1,4 @@
-target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-windows-msvc"
define void @foo() {
diff --git a/lld/test/COFF/Inputs/constant-export.ll b/lld/test/COFF/Inputs/constant-export.ll
index 666c18f1303..f0fa136dd5e 100644
--- a/lld/test/COFF/Inputs/constant-export.ll
+++ b/lld/test/COFF/Inputs/constant-export.ll
@@ -1,4 +1,4 @@
-target datalayout = "e-m:x-p:32:32-i64:64-f80:32-n8:16:32-a:0:32-S32"
+target datalayout = "e-m:x-p:32:32-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:32-n8:16:32-a:0:32-S32"
target triple = "i686-unknown-windows-msvc18.0.0"
@__CFConstantStringClassReference = common global [32 x i32] zeroinitializer, align 4
diff --git a/lld/test/COFF/Inputs/entry-mangled.ll b/lld/test/COFF/Inputs/entry-mangled.ll
index b6fac214dfc..a4702d7770d 100644
--- a/lld/test/COFF/Inputs/entry-mangled.ll
+++ b/lld/test/COFF/Inputs/entry-mangled.ll
@@ -1,4 +1,4 @@
-target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-windows-msvc18.0.0"
define void @"\01?main@@YAHXZ"() {
diff --git a/lld/test/COFF/Inputs/export.ll b/lld/test/COFF/Inputs/export.ll
index d254683cdd6..96f99d78098 100644
--- a/lld/test/COFF/Inputs/export.ll
+++ b/lld/test/COFF/Inputs/export.ll
@@ -1,4 +1,4 @@
-target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-windows-msvc"
define void @_DllMainCRTStartup() {
diff --git a/lld/test/COFF/Inputs/libcall-archive.ll b/lld/test/COFF/Inputs/libcall-archive.ll
index 3f8a24df4c3..6ff9a6e7471 100644
--- a/lld/test/COFF/Inputs/libcall-archive.ll
+++ b/lld/test/COFF/Inputs/libcall-archive.ll
@@ -1,4 +1,4 @@
-target datalayout = "e-m:x-p:32:32-i64:64-f80:32-n8:16:32-a:0:32-S32"
+target datalayout = "e-m:x-p:32:32-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:32-n8:16:32-a:0:32-S32"
target triple = "i686-unknown-windows"
define void @memcpy() {
diff --git a/lld/test/COFF/Inputs/lto-cache.ll b/lld/test/COFF/Inputs/lto-cache.ll
index acbee7be014..f51bd56f6e3 100644
--- a/lld/test/COFF/Inputs/lto-cache.ll
+++ b/lld/test/COFF/Inputs/lto-cache.ll
@@ -1,4 +1,4 @@
-target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-windows-msvc"
define i32 @main() {
diff --git a/lld/test/COFF/Inputs/lto-comdat1.ll b/lld/test/COFF/Inputs/lto-comdat1.ll
index 7a9f50c0f9d..6e214815046 100644
--- a/lld/test/COFF/Inputs/lto-comdat1.ll
+++ b/lld/test/COFF/Inputs/lto-comdat1.ll
@@ -1,4 +1,4 @@
-target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-windows-msvc"
$comdat = comdat any
diff --git a/lld/test/COFF/Inputs/lto-comdat2.ll b/lld/test/COFF/Inputs/lto-comdat2.ll
index c2af2a4de59..a6a332d719f 100644
--- a/lld/test/COFF/Inputs/lto-comdat2.ll
+++ b/lld/test/COFF/Inputs/lto-comdat2.ll
@@ -1,4 +1,4 @@
-target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-windows-msvc"
$comdat = comdat any
diff --git a/lld/test/COFF/Inputs/lto-dep.ll b/lld/test/COFF/Inputs/lto-dep.ll
index d6d47f23491..71ae8c52733 100644
--- a/lld/test/COFF/Inputs/lto-dep.ll
+++ b/lld/test/COFF/Inputs/lto-dep.ll
@@ -1,4 +1,4 @@
-target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-windows-msvc"
define void @foo() {
diff --git a/lld/test/COFF/Inputs/lto-lazy-reference-dummy.ll b/lld/test/COFF/Inputs/lto-lazy-reference-dummy.ll
index 0309f89c38f..3c39f0f4c4f 100644
--- a/lld/test/COFF/Inputs/lto-lazy-reference-dummy.ll
+++ b/lld/test/COFF/Inputs/lto-lazy-reference-dummy.ll
@@ -1,4 +1,4 @@
-target datalayout = "e-m:x-p:32:32-i64:64-f80:32-n8:16:32-a:0:32-S32"
+target datalayout = "e-m:x-p:32:32-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:32-n8:16:32-a:0:32-S32"
target triple = "i686-pc-windows-msvc18.0.0"
define void @dummy() {
diff --git a/lld/test/COFF/Inputs/lto-lazy-reference-quadruple.ll b/lld/test/COFF/Inputs/lto-lazy-reference-quadruple.ll
index 99c1d2bdbc5..cc2faf6bfdf 100644
--- a/lld/test/COFF/Inputs/lto-lazy-reference-quadruple.ll
+++ b/lld/test/COFF/Inputs/lto-lazy-reference-quadruple.ll
@@ -1,4 +1,4 @@
-target datalayout = "e-m:x-p:32:32-i64:64-f80:32-n8:16:32-a:0:32-S32"
+target datalayout = "e-m:x-p:32:32-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:32-n8:16:32-a:0:32-S32"
target triple = "i686-pc-windows-msvc18.0.0"
define double @quadruple(double %x) {
diff --git a/lld/test/COFF/Inputs/msvclto-order-a.ll b/lld/test/COFF/Inputs/msvclto-order-a.ll
index 804e201ff99..9f7633caa92 100644
--- a/lld/test/COFF/Inputs/msvclto-order-a.ll
+++ b/lld/test/COFF/Inputs/msvclto-order-a.ll
@@ -1,4 +1,4 @@
-target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-windows-msvc"
define void @foo() {
diff --git a/lld/test/COFF/Inputs/msvclto-order-b.ll b/lld/test/COFF/Inputs/msvclto-order-b.ll
index 57f23898e6a..b4a3ce0515a 100644
--- a/lld/test/COFF/Inputs/msvclto-order-b.ll
+++ b/lld/test/COFF/Inputs/msvclto-order-b.ll
@@ -1,4 +1,4 @@
-target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-windows-msvc"
declare void @doesntexist()
diff --git a/lld/test/COFF/Inputs/thinlto-empty.ll b/lld/test/COFF/Inputs/thinlto-empty.ll
index b3c546a434e..0b4067bfbf2 100644
--- a/lld/test/COFF/Inputs/thinlto-empty.ll
+++ b/lld/test/COFF/Inputs/thinlto-empty.ll
@@ -1,2 +1,2 @@
-target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-windows-msvc19.0.24215"
diff --git a/lld/test/COFF/Inputs/thinlto-mangled-qux.ll b/lld/test/COFF/Inputs/thinlto-mangled-qux.ll
index 4c9cc8e9e74..a9e89249674 100644
--- a/lld/test/COFF/Inputs/thinlto-mangled-qux.ll
+++ b/lld/test/COFF/Inputs/thinlto-mangled-qux.ll
@@ -1,4 +1,4 @@
-target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-windows-msvc19.0.24215"
%class.baz = type { %class.bar }
diff --git a/lld/test/COFF/Inputs/thinlto.ll b/lld/test/COFF/Inputs/thinlto.ll
index 44ff9a0f1f1..e5e2a714f04 100644
--- a/lld/test/COFF/Inputs/thinlto.ll
+++ b/lld/test/COFF/Inputs/thinlto.ll
@@ -1,4 +1,4 @@
-target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-windows-msvc19.0.24215"
define void @g() {
diff --git a/lld/test/COFF/Inputs/undefined-symbol-lto-a.ll b/lld/test/COFF/Inputs/undefined-symbol-lto-a.ll
index 6793ec718e8..62632ec65b4 100644
--- a/lld/test/COFF/Inputs/undefined-symbol-lto-a.ll
+++ b/lld/test/COFF/Inputs/undefined-symbol-lto-a.ll
@@ -1,6 +1,6 @@
; ModuleID = 't.obj'
source_filename = "t.cpp"
-target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-windows-msvc19.21.27702"
%struct.Init = type { %struct.S }
diff --git a/lld/test/COFF/Inputs/undefined-symbol-lto-b.ll b/lld/test/COFF/Inputs/undefined-symbol-lto-b.ll
index ff73e7c6ba6..a030094f2b2 100644
--- a/lld/test/COFF/Inputs/undefined-symbol-lto-b.ll
+++ b/lld/test/COFF/Inputs/undefined-symbol-lto-b.ll
@@ -1,6 +1,6 @@
; ModuleID = 'b.obj'
source_filename = "b.cpp"
-target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-windows-msvc19.21.27702"
%struct.S = type { i32 (...)** }
diff --git a/lld/test/COFF/Inputs/weak-external.ll b/lld/test/COFF/Inputs/weak-external.ll
index 4775d50456c..72f5901893d 100644
--- a/lld/test/COFF/Inputs/weak-external.ll
+++ b/lld/test/COFF/Inputs/weak-external.ll
@@ -1,4 +1,4 @@
-target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-windows-msvc"
define void @g() {
diff --git a/lld/test/COFF/Inputs/weak-external2.ll b/lld/test/COFF/Inputs/weak-external2.ll
index 2102c3b6a52..378fda4138a 100644
--- a/lld/test/COFF/Inputs/weak-external2.ll
+++ b/lld/test/COFF/Inputs/weak-external2.ll
@@ -1,4 +1,4 @@
-target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-windows-msvc"
define void @f() {
diff --git a/lld/test/COFF/Inputs/weak-external3.ll b/lld/test/COFF/Inputs/weak-external3.ll
index f9a51360a89..d229e496635 100644
--- a/lld/test/COFF/Inputs/weak-external3.ll
+++ b/lld/test/COFF/Inputs/weak-external3.ll
@@ -1,4 +1,4 @@
-target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-windows-msvc"
@f = weak alias void(), void()* @g
diff --git a/lld/test/COFF/entrylib.ll b/lld/test/COFF/entrylib.ll
index 602b4ff6333..e9707a47f17 100644
--- a/lld/test/COFF/entrylib.ll
+++ b/lld/test/COFF/entrylib.ll
@@ -4,7 +4,7 @@
; RUN: llvm-ar cru %t.lib %t.obj
; RUN: lld-link /out:%t.exe /entry:main %t.lib
-target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-windows-msvc"
define i32 @main() {
diff --git a/lld/test/COFF/guardcf-lto.ll b/lld/test/COFF/guardcf-lto.ll
index 6658b60815d..a7f4568968c 100644
--- a/lld/test/COFF/guardcf-lto.ll
+++ b/lld/test/COFF/guardcf-lto.ll
@@ -23,7 +23,7 @@
; CHECK-NEXT: 0x180{{.*}}
; CHECK-NEXT: ]
-target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-windows-msvc19.12.25835"
declare dllimport void @do_indirect_call(void ()*)
diff --git a/lld/test/COFF/include-lto.ll b/lld/test/COFF/include-lto.ll
index d5ae546ab71..c0cb8d10117 100644
--- a/lld/test/COFF/include-lto.ll
+++ b/lld/test/COFF/include-lto.ll
@@ -7,7 +7,7 @@
; CHECK: xorl %eax, %eax
; CHECK-NEXT: retq
-target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-windows-msvc"
define void @_DllMainCRTStartup() {
diff --git a/lld/test/COFF/lib-module-asm.ll b/lld/test/COFF/lib-module-asm.ll
index 0431af9b0f9..42c6797838c 100644
--- a/lld/test/COFF/lib-module-asm.ll
+++ b/lld/test/COFF/lib-module-asm.ll
@@ -5,7 +5,7 @@
; RUN: lld-link /lib /out:%t.lib %t.obj
; RUN: llvm-nm -M %t.lib | FileCheck %s
-target datalayout = "e-m:x-p:32:32-i64:64-f80:32-n8:16:32-a:0:32-S32"
+target datalayout = "e-m:x-p:32:32-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:32-n8:16:32-a:0:32-S32"
target triple = "i386-pc-windows-msvc19.11.0"
module asm ".global global_asm_sym"
diff --git a/lld/test/COFF/libcall-archive.ll b/lld/test/COFF/libcall-archive.ll
index 631503d0dd9..c78c1d41fde 100644
--- a/lld/test/COFF/libcall-archive.ll
+++ b/lld/test/COFF/libcall-archive.ll
@@ -10,7 +10,7 @@
; CHECK: _start
; CHECK: _memcpy
-target datalayout = "e-m:x-p:32:32-i64:64-f80:32-n8:16:32-a:0:32-S32"
+target datalayout = "e-m:x-p:32:32-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:32-n8:16:32-a:0:32-S32"
target triple = "i686-unknown-windows"
define void @start(i8* %a, i8* %b) {
diff --git a/lld/test/COFF/loadcfg.ll b/lld/test/COFF/loadcfg.ll
index 96b4b8e5966..46f613472c2 100644
--- a/lld/test/COFF/loadcfg.ll
+++ b/lld/test/COFF/loadcfg.ll
@@ -6,7 +6,7 @@
; CHECK: LoadConfigTableRVA: 0x2000
; CHECK: LoadConfigTableSize: 0x70
-target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-windows-msvc"
@_load_config_used = constant [28 x i32] [i32 112, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0]
diff --git a/lld/test/COFF/lto-cache.ll b/lld/test/COFF/lto-cache.ll
index 828f5e5a97c..ced0c5251d1 100644
--- a/lld/test/COFF/lto-cache.ll
+++ b/lld/test/COFF/lto-cache.ll
@@ -14,7 +14,7 @@
; Two cached objects, plus a timestamp file and "foo", minus the file we removed.
; RUN: ls %t.cache | count 4
-target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-windows-msvc"
define void @globalfunc() #0 {
diff --git a/lld/test/COFF/lto-chkstk.ll b/lld/test/COFF/lto-chkstk.ll
index 1df93c6b954..c2a15180b76 100644
--- a/lld/test/COFF/lto-chkstk.ll
+++ b/lld/test/COFF/lto-chkstk.ll
@@ -6,7 +6,7 @@
; RUN: llvm-ar cru %t.lib %T/lto-chkstk-chkstk.obj
; RUN: lld-link /out:%t.exe /entry:main /subsystem:console %t.obj %T/lto-chkstk-foo.obj %t.lib
-target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-windows-msvc"
define void @main() {
diff --git a/lld/test/COFF/lto-comdat.ll b/lld/test/COFF/lto-comdat.ll
index fbb7104bf11..cf5a137ff50 100644
--- a/lld/test/COFF/lto-comdat.ll
+++ b/lld/test/COFF/lto-comdat.ll
@@ -91,7 +91,7 @@
; TEXT-10: retq
; TEXT-10-NOT: {{.}}
-target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-windows-msvc"
$comdat = comdat any
diff --git a/lld/test/COFF/lto-cpu-string.ll b/lld/test/COFF/lto-cpu-string.ll
index 840adcebf46..be52bfb53c5 100644
--- a/lld/test/COFF/lto-cpu-string.ll
+++ b/lld/test/COFF/lto-cpu-string.ll
@@ -9,7 +9,7 @@
; RUN: llvm-objdump -d -section=".text" -no-leading-addr -no-show-raw-insn %t.znver1.dll | FileCheck -check-prefix=ZNVER1 %s
; ZNVER1: nopw
-target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-windows-msvc19.14.26433"
define dllexport void @foo() #0 {
diff --git a/lld/test/COFF/lto-debug-pass-arguments.ll b/lld/test/COFF/lto-debug-pass-arguments.ll
index 4381590ff13..6ecc8645d29 100644
--- a/lld/test/COFF/lto-debug-pass-arguments.ll
+++ b/lld/test/COFF/lto-debug-pass-arguments.ll
@@ -2,7 +2,7 @@
; RUN: llvm-as %s -o %t.obj
; RUN: lld-link /dll /out:%t.dll %t.obj /mllvm:-debug-pass=Arguments 2>&1 | FileCheck %s
-target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-windows-msvc"
define void @dummy() {
diff --git a/lld/test/COFF/lto-icf.ll b/lld/test/COFF/lto-icf.ll
index ef98d7b0604..0b0c26eb2ad 100644
--- a/lld/test/COFF/lto-icf.ll
+++ b/lld/test/COFF/lto-icf.ll
@@ -13,7 +13,7 @@
; CHECK: RVA: 0x[[RVA]]
; CHECK-NOT: Export
-target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-windows-msvc19.12.25835"
define dllexport i8* @icf_ptr() {
diff --git a/lld/test/COFF/lto-lazy-reference.ll b/lld/test/COFF/lto-lazy-reference.ll
index 428a7b845d1..a6f4010eddd 100644
--- a/lld/test/COFF/lto-lazy-reference.ll
+++ b/lld/test/COFF/lto-lazy-reference.ll
@@ -6,7 +6,7 @@
; RUN: llvm-as -o %t.obj %s
; RUN: lld-link /out:%t.exe /entry:main /subsystem:console %t.obj %t.lib
-target datalayout = "e-m:x-p:32:32-i64:64-f80:32-n8:16:32-a:0:32-S32"
+target datalayout = "e-m:x-p:32:32-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:32-n8:16:32-a:0:32-S32"
target triple = "i686-pc-windows-msvc18.0.0"
; Define fltused, since we don't link against the MS C runtime but are
diff --git a/lld/test/COFF/lto-linker-opts.ll b/lld/test/COFF/lto-linker-opts.ll
index 1fc4f5eb048..bbe67ae41da 100644
--- a/lld/test/COFF/lto-linker-opts.ll
+++ b/lld/test/COFF/lto-linker-opts.ll
@@ -2,7 +2,7 @@
; RUN: llvm-as -o %T/lto-linker-opts.obj %s
; RUN: env LIB=%S/Inputs lld-link /out:%T/lto-linker-opts.exe /entry:main /subsystem:console %T/lto-linker-opts.obj
-target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-windows-msvc"
!llvm.linker.options = !{!0}
diff --git a/lld/test/COFF/lto-new-symbol.ll b/lld/test/COFF/lto-new-symbol.ll
index dadd49537cf..7f5a328466e 100644
--- a/lld/test/COFF/lto-new-symbol.ll
+++ b/lld/test/COFF/lto-new-symbol.ll
@@ -2,7 +2,7 @@
; RUN: llvm-as -o %t.obj %s
; RUN: lld-link /out:%t.exe /entry:foo /subsystem:console %t.obj
-target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-windows-msvc"
; Define fltused, since we don't link against the MS C runtime but are
diff --git a/lld/test/COFF/lto-obj-path.ll b/lld/test/COFF/lto-obj-path.ll
index db61ba97046..987e2bd7789 100644
--- a/lld/test/COFF/lto-obj-path.ll
+++ b/lld/test/COFF/lto-obj-path.ll
@@ -14,7 +14,7 @@
; CHECK: Format: COFF-x86-64
; SYMBOLS: @feat.00
-target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-windows-msvc19.0.24215"
declare void @g(...)
diff --git a/lld/test/COFF/lto-opt-level.ll b/lld/test/COFF/lto-opt-level.ll
index 92f88ea9e98..0e0e8667889 100644
--- a/lld/test/COFF/lto-opt-level.ll
+++ b/lld/test/COFF/lto-opt-level.ll
@@ -7,7 +7,7 @@
; RUN: lld-link /out:%t2a.exe /entry:main /subsystem:console /lldmap:%t2a.map %t.obj
; RUN: FileCheck --check-prefix=CHECK-O2 %s < %t2a.map
-target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-windows-msvc"
; CHECK-O0: foo
diff --git a/lld/test/COFF/lto-parallel.ll b/lld/test/COFF/lto-parallel.ll
index 7a38a39d77d..8e1f44a8ebb 100644
--- a/lld/test/COFF/lto-parallel.ll
+++ b/lld/test/COFF/lto-parallel.ll
@@ -3,7 +3,7 @@
; RUN: lld-link -opt:noicf /out:%t.exe /entry:foo /include:bar /opt:lldltopartitions=2 /subsystem:console /lldmap:%t.map %t.obj
; RUN: FileCheck %s < %t.map
-target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-windows-msvc"
; CHECK: lto.tmp
diff --git a/lld/test/COFF/lto-reloc-model.ll b/lld/test/COFF/lto-reloc-model.ll
index 9ac32ae3677..2b7e3a85191 100644
--- a/lld/test/COFF/lto-reloc-model.ll
+++ b/lld/test/COFF/lto-reloc-model.ll
@@ -3,7 +3,7 @@
; RUN: lld-link /entry:main /subsystem:console /out:%t.exe %t
; RUN: llvm-objdump -d %t.exe | FileCheck %s
-target datalayout = "e-m:x-p:32:32-i64:64-f80:32-n8:16:32-a:0:32-S32"
+target datalayout = "e-m:x-p:32:32-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:32-n8:16:32-a:0:32-S32"
target triple = "i686-pc-windows-msvc"
@foo = thread_local global i8 0
diff --git a/lld/test/COFF/lto.ll b/lld/test/COFF/lto.ll
index 54624906c32..7c61f1cf5bf 100644
--- a/lld/test/COFF/lto.ll
+++ b/lld/test/COFF/lto.ll
@@ -123,7 +123,7 @@
; TEXT-10-NEXT: addq $40, %rsp
; TEXT-10-NEXT: retq
-target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-windows-msvc"
define i32 @main() {
diff --git a/lld/test/COFF/savetemps.ll b/lld/test/COFF/savetemps.ll
index 7f2e11c1771..e755ba9920d 100644
--- a/lld/test/COFF/savetemps.ll
+++ b/lld/test/COFF/savetemps.ll
@@ -21,7 +21,7 @@
; CHECK: define i32 @main()
; CHECK-OBJDUMP: file format COFF
-target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-windows-msvc"
define i32 @main() {
diff --git a/lld/test/COFF/thinlto-archivecollision.ll b/lld/test/COFF/thinlto-archivecollision.ll
index 8b8865d03d3..b865402fdc0 100644
--- a/lld/test/COFF/thinlto-archivecollision.ll
+++ b/lld/test/COFF/thinlto-archivecollision.ll
@@ -16,7 +16,7 @@
; CHECK-NEXT: {{/|\\\\thinlto-archivecollision.ll.tmp/libbar.libbar.obj[0-9]+$}}
; CHECK-NEXT: {{^-r=.*/|\\\\thinlto-archivecollision.ll.tmp/libbar.libbar.obj[0-9]+,bar,p$}}
-target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-windows-msvc"
declare void @bar()
diff --git a/lld/test/COFF/thinlto-archives.ll b/lld/test/COFF/thinlto-archives.ll
index a3de6c9e557..9194db8f652 100644
--- a/lld/test/COFF/thinlto-archives.ll
+++ b/lld/test/COFF/thinlto-archives.ll
@@ -18,7 +18,7 @@
; CHECK-NEXT: {{/thinlto-archives/b.libbar.obj[0-9]+$}}
; CHECK-NEXT: {{^-r=.*/thinlto-archives/b.libbar.obj[0-9]+,bar,p$}}
-target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-windows-msvc"
declare void @bar()
diff --git a/lld/test/COFF/thinlto-emit-imports.ll b/lld/test/COFF/thinlto-emit-imports.ll
index b2ecd46c9e1..9ffe3b26770 100644
--- a/lld/test/COFF/thinlto-emit-imports.ll
+++ b/lld/test/COFF/thinlto-emit-imports.ll
@@ -47,7 +47,7 @@
; RUN: not ls %t2.obj.imports
; RUN: not ls %t3.obj.imports
-target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-windows-msvc19.0.24215"
declare void @g(...)
diff --git a/lld/test/COFF/thinlto-index-only.ll b/lld/test/COFF/thinlto-index-only.ll
index f1f2412b87b..db41309d83d 100644
--- a/lld/test/COFF/thinlto-index-only.ll
+++ b/lld/test/COFF/thinlto-index-only.ll
@@ -41,7 +41,7 @@
; BACKEND2-NEXT: <COMBINED
; BACKEND2-NEXT: </GLOBALVAL_SUMMARY_BLOCK
-target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-windows-msvc19.0.24215"
declare void @g(...)
diff --git a/lld/test/COFF/thinlto-mangled.ll b/lld/test/COFF/thinlto-mangled.ll
index 8c901cbd70b..e4a513dc7f6 100644
--- a/lld/test/COFF/thinlto-mangled.ll
+++ b/lld/test/COFF/thinlto-mangled.ll
@@ -3,7 +3,7 @@
; RUN: opt -thinlto-bc %S/Inputs/thinlto-mangled-qux.ll -o %T/thinlto-mangled-qux.obj
; RUN: lld-link -out:%t.exe -entry:main %t.obj %T/thinlto-mangled-qux.obj
-target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-windows-msvc19.0.24215"
%"class.bar" = type { i32 (...)**, i8*, i8*, i8*, i32 }
diff --git a/lld/test/COFF/thinlto-object-suffix-replace.ll b/lld/test/COFF/thinlto-object-suffix-replace.ll
index eea898de0c5..4c9f2c8fc0e 100644
--- a/lld/test/COFF/thinlto-object-suffix-replace.ll
+++ b/lld/test/COFF/thinlto-object-suffix-replace.ll
@@ -36,7 +36,7 @@
; RUN: -thinlto-object-suffix-replace:".abc;.obj" %t1.thinlink.bc -out:%t3.exe
; RUN: ls %t1.thinlink.bc.thinlto.bc
-target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-windows-msvc19.0.24215"
define void @main() {
diff --git a/lld/test/COFF/thinlto-prefix-replace.ll b/lld/test/COFF/thinlto-prefix-replace.ll
index a6a116d67e1..ed8713f2a87 100644
--- a/lld/test/COFF/thinlto-prefix-replace.ll
+++ b/lld/test/COFF/thinlto-prefix-replace.ll
@@ -18,7 +18,7 @@
; RUN: -out:%t/t.exe 2>&1 | FileCheck --check-prefix=ERR %s
; ERR: -thinlto-prefix-replace: expects 'old;new' format, but got abc:def
-target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-windows-msvc19.0.24215"
define void @main() {
diff --git a/lld/test/COFF/thinlto.ll b/lld/test/COFF/thinlto.ll
index 77ba9b91de7..f24f362cdf1 100644
--- a/lld/test/COFF/thinlto.ll
+++ b/lld/test/COFF/thinlto.ll
@@ -8,7 +8,7 @@
; CHECK-NOT: U foo
-target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-windows-msvc"
define i32 @main() {
diff --git a/lld/test/COFF/unresolved-lto-bitcode.ll b/lld/test/COFF/unresolved-lto-bitcode.ll
index 6147dd1005e..5ace81b1938 100644
--- a/lld/test/COFF/unresolved-lto-bitcode.ll
+++ b/lld/test/COFF/unresolved-lto-bitcode.ll
@@ -17,7 +17,7 @@
; FILE: foo.obj
; FILE: main.obj
-target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-windows-msvc"
define i32 @main() {
diff --git a/lld/test/COFF/unresolved-lto.ll b/lld/test/COFF/unresolved-lto.ll
index e3071cc88a8..a1e52294273 100644
--- a/lld/test/COFF/unresolved-lto.ll
+++ b/lld/test/COFF/unresolved-lto.ll
@@ -16,7 +16,7 @@
; FILE: foo.obj
; FILE: main.obj
-target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-windows-msvc"
define i32 @main() {
diff --git a/lld/test/COFF/used-lto.ll b/lld/test/COFF/used-lto.ll
index c269fbac85d..d1c87c16a5d 100644
--- a/lld/test/COFF/used-lto.ll
+++ b/lld/test/COFF/used-lto.ll
@@ -5,7 +5,7 @@
; CHECK: S_PUB32 {{.*}} `foo`
-target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-windows-msvc"
@llvm.used = appending global [1 x i8*] [i8* bitcast (void ()* @foo to i8*)], section "llvm.metadata"
diff --git a/lld/test/ELF/lto/Inputs/archive-2.ll b/lld/test/ELF/lto/Inputs/archive-2.ll
index 8236cfe5cd8..648dccbb069 100644
--- a/lld/test/ELF/lto/Inputs/archive-2.ll
+++ b/lld/test/ELF/lto/Inputs/archive-2.ll
@@ -1,4 +1,4 @@
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
define void @_start() {
diff --git a/lld/test/ELF/lto/Inputs/archive-3.ll b/lld/test/ELF/lto/Inputs/archive-3.ll
index 37442469aa7..af86e09d9bd 100644
--- a/lld/test/ELF/lto/Inputs/archive-3.ll
+++ b/lld/test/ELF/lto/Inputs/archive-3.ll
@@ -1,4 +1,4 @@
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
define void @foo() {
diff --git a/lld/test/ELF/lto/Inputs/archive.ll b/lld/test/ELF/lto/Inputs/archive.ll
index 71c1e4f3560..478f6ee182b 100644
--- a/lld/test/ELF/lto/Inputs/archive.ll
+++ b/lld/test/ELF/lto/Inputs/archive.ll
@@ -1,4 +1,4 @@
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
define void @f() {
diff --git a/lld/test/ELF/lto/Inputs/asmundef.ll b/lld/test/ELF/lto/Inputs/asmundef.ll
index 0992f79c9af..4197fafc4ad 100644
--- a/lld/test/ELF/lto/Inputs/asmundef.ll
+++ b/lld/test/ELF/lto/Inputs/asmundef.ll
@@ -1,4 +1,4 @@
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
declare void @patatino()
diff --git a/lld/test/ELF/lto/Inputs/available-externally.ll b/lld/test/ELF/lto/Inputs/available-externally.ll
index b8583eab829..ec459001986 100644
--- a/lld/test/ELF/lto/Inputs/available-externally.ll
+++ b/lld/test/ELF/lto/Inputs/available-externally.ll
@@ -1,4 +1,4 @@
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
define void @zed() {
diff --git a/lld/test/ELF/lto/Inputs/cache.ll b/lld/test/ELF/lto/Inputs/cache.ll
index 09289029917..1b827cd6988 100644
--- a/lld/test/ELF/lto/Inputs/cache.ll
+++ b/lld/test/ELF/lto/Inputs/cache.ll
@@ -1,4 +1,4 @@
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
define i32 @_start() {
diff --git a/lld/test/ELF/lto/Inputs/common3.ll b/lld/test/ELF/lto/Inputs/common3.ll
index 8f20a1e8ac2..bbd6c347ff3 100644
--- a/lld/test/ELF/lto/Inputs/common3.ll
+++ b/lld/test/ELF/lto/Inputs/common3.ll
@@ -1,4 +1,4 @@
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@a = common hidden global i64 0, align 4
diff --git a/lld/test/ELF/lto/Inputs/data-ordering-lto.ll b/lld/test/ELF/lto/Inputs/data-ordering-lto.ll
index a95fa6d5a58..8e872762e64 100644
--- a/lld/test/ELF/lto/Inputs/data-ordering-lto.ll
+++ b/lld/test/ELF/lto/Inputs/data-ordering-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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-scei-ps4"
@pat = global i32 33, align 4
diff --git a/lld/test/ELF/lto/Inputs/defsym-bar.ll b/lld/test/ELF/lto/Inputs/defsym-bar.ll
index 748c7b23f6a..840fecd1bed 100644
--- a/lld/test/ELF/lto/Inputs/defsym-bar.ll
+++ b/lld/test/ELF/lto/Inputs/defsym-bar.ll
@@ -1,4 +1,4 @@
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
declare void @this_is_bar1()
diff --git a/lld/test/ELF/lto/Inputs/drop-linkage.ll b/lld/test/ELF/lto/Inputs/drop-linkage.ll
index 0e3dc7a4142..d86055794d9 100644
--- a/lld/test/ELF/lto/Inputs/drop-linkage.ll
+++ b/lld/test/ELF/lto/Inputs/drop-linkage.ll
@@ -1,5 +1,5 @@
target triple = "x86_64-unknown-linux-gnu"
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
$foo = comdat any
define linkonce void @foo() comdat {
diff --git a/lld/test/ELF/lto/Inputs/duplicated-name.ll b/lld/test/ELF/lto/Inputs/duplicated-name.ll
index 78678c0c5ad..86c410efb5d 100644
--- a/lld/test/ELF/lto/Inputs/duplicated-name.ll
+++ b/lld/test/ELF/lto/Inputs/duplicated-name.ll
@@ -1,4 +1,4 @@
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
define void @f2() {
diff --git a/lld/test/ELF/lto/Inputs/i386-empty.ll b/lld/test/ELF/lto/Inputs/i386-empty.ll
index 6029cb6d090..6ff84a75c10 100644
--- a/lld/test/ELF/lto/Inputs/i386-empty.ll
+++ b/lld/test/ELF/lto/Inputs/i386-empty.ll
@@ -1,2 +1,2 @@
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "i686-linux-gnu"
diff --git a/lld/test/ELF/lto/Inputs/internalize-exportdyn.ll b/lld/test/ELF/lto/Inputs/internalize-exportdyn.ll
index 21ac3580762..585b99ae5a5 100644
--- a/lld/test/ELF/lto/Inputs/internalize-exportdyn.ll
+++ b/lld/test/ELF/lto/Inputs/internalize-exportdyn.ll
@@ -1,5 +1,5 @@
target triple = "x86_64-unknown-linux-gnu"
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
define weak_odr void @bah() {
ret void
diff --git a/lld/test/ELF/lto/Inputs/internalize-undef.ll b/lld/test/ELF/lto/Inputs/internalize-undef.ll
index 71c1e4f3560..478f6ee182b 100644
--- a/lld/test/ELF/lto/Inputs/internalize-undef.ll
+++ b/lld/test/ELF/lto/Inputs/internalize-undef.ll
@@ -1,4 +1,4 @@
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
define void @f() {
diff --git a/lld/test/ELF/lto/Inputs/irmover-error.ll b/lld/test/ELF/lto/Inputs/irmover-error.ll
index 86ed259b2a0..de2e9f03ccc 100644
--- a/lld/test/ELF/lto/Inputs/irmover-error.ll
+++ b/lld/test/ELF/lto/Inputs/irmover-error.ll
@@ -1,5 +1,5 @@
target triple = "x86_64-unknown-linux-gnu"
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
!0 = !{ i32 1, !"foo", i32 2 }
diff --git a/lld/test/ELF/lto/Inputs/irmover-warning.ll b/lld/test/ELF/lto/Inputs/irmover-warning.ll
index 72d437fb62c..2948654b944 100644
--- a/lld/test/ELF/lto/Inputs/irmover-warning.ll
+++ b/lld/test/ELF/lto/Inputs/irmover-warning.ll
@@ -1,5 +1,5 @@
target triple = "x86_64-unknown-linux-gnu"
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
define void @f() {
ret void
diff --git a/lld/test/ELF/lto/Inputs/lazy-internal.ll b/lld/test/ELF/lto/Inputs/lazy-internal.ll
index 918791c5d20..3b79ff6fbbb 100644
--- a/lld/test/ELF/lto/Inputs/lazy-internal.ll
+++ b/lld/test/ELF/lto/Inputs/lazy-internal.ll
@@ -1,4 +1,4 @@
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
define hidden void @bar() {
diff --git a/lld/test/ELF/lto/Inputs/libcall-archive.ll b/lld/test/ELF/lto/Inputs/libcall-archive.ll
index 4e6421c3020..11eaefc6ac5 100644
--- a/lld/test/ELF/lto/Inputs/libcall-archive.ll
+++ b/lld/test/ELF/lto/Inputs/libcall-archive.ll
@@ -1,4 +1,4 @@
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
define void @memcpy() {
diff --git a/lld/test/ELF/lto/Inputs/linker-script-symbols-ipo.ll b/lld/test/ELF/lto/Inputs/linker-script-symbols-ipo.ll
index c872f9e1dd5..3031557c3e5 100644
--- a/lld/test/ELF/lto/Inputs/linker-script-symbols-ipo.ll
+++ b/lld/test/ELF/lto/Inputs/linker-script-symbols-ipo.ll
@@ -1,4 +1,4 @@
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
declare i32 @bar()
diff --git a/lld/test/ELF/lto/Inputs/linkonce-odr.ll b/lld/test/ELF/lto/Inputs/linkonce-odr.ll
index 0b3828846eb..b465a4bc655 100644
--- a/lld/test/ELF/lto/Inputs/linkonce-odr.ll
+++ b/lld/test/ELF/lto/Inputs/linkonce-odr.ll
@@ -1,4 +1,4 @@
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
define linkonce_odr void @f() {
diff --git a/lld/test/ELF/lto/Inputs/linkonce.ll b/lld/test/ELF/lto/Inputs/linkonce.ll
index a6738b3ad71..cb6f99a76d0 100644
--- a/lld/test/ELF/lto/Inputs/linkonce.ll
+++ b/lld/test/ELF/lto/Inputs/linkonce.ll
@@ -1,4 +1,4 @@
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
define linkonce void @f() {
diff --git a/lld/test/ELF/lto/Inputs/obj-path.ll b/lld/test/ELF/lto/Inputs/obj-path.ll
index 31c72ec4653..7cf01bc86c3 100644
--- a/lld/test/ELF/lto/Inputs/obj-path.ll
+++ b/lld/test/ELF/lto/Inputs/obj-path.ll
@@ -1,4 +1,4 @@
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
define void @g() {
diff --git a/lld/test/ELF/lto/Inputs/relocation-model-pic.ll b/lld/test/ELF/lto/Inputs/relocation-model-pic.ll
index e76605435e8..d5c69a5e3db 100644
--- a/lld/test/ELF/lto/Inputs/relocation-model-pic.ll
+++ b/lld/test/ELF/lto/Inputs/relocation-model-pic.ll
@@ -1,4 +1,4 @@
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@foo = external global i32
diff --git a/lld/test/ELF/lto/Inputs/save-temps.ll b/lld/test/ELF/lto/Inputs/save-temps.ll
index d6e6eb661f3..67cdbaf2215 100644
--- a/lld/test/ELF/lto/Inputs/save-temps.ll
+++ b/lld/test/ELF/lto/Inputs/save-temps.ll
@@ -1,5 +1,5 @@
target triple = "x86_64-unknown-linux-gnu"
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
define void @bar() {
ret void
diff --git a/lld/test/ELF/lto/Inputs/start-lib1.ll b/lld/test/ELF/lto/Inputs/start-lib1.ll
index 9f42e6afff0..8e09f4adc8a 100644
--- a/lld/test/ELF/lto/Inputs/start-lib1.ll
+++ b/lld/test/ELF/lto/Inputs/start-lib1.ll
@@ -1,4 +1,4 @@
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
declare void @bar()
diff --git a/lld/test/ELF/lto/Inputs/start-lib2.ll b/lld/test/ELF/lto/Inputs/start-lib2.ll
index 68b3c836280..7986919be34 100644
--- a/lld/test/ELF/lto/Inputs/start-lib2.ll
+++ b/lld/test/ELF/lto/Inputs/start-lib2.ll
@@ -1,4 +1,4 @@
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
define void @bar() {
diff --git a/lld/test/ELF/lto/Inputs/symbol-ordering-lto.ll b/lld/test/ELF/lto/Inputs/symbol-ordering-lto.ll
index 164659ce27b..9bb2c7d58b2 100644
--- a/lld/test/ELF/lto/Inputs/symbol-ordering-lto.ll
+++ b/lld/test/ELF/lto/Inputs/symbol-ordering-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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-scei-ps4"
define i32 @tin() {
diff --git a/lld/test/ELF/lto/Inputs/thin1.ll b/lld/test/ELF/lto/Inputs/thin1.ll
index 93029837714..011eee616e3 100644
--- a/lld/test/ELF/lto/Inputs/thin1.ll
+++ b/lld/test/ELF/lto/Inputs/thin1.ll
@@ -1,4 +1,4 @@
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-scei-ps4"
define i32 @foo(i32 %goo) {
diff --git a/lld/test/ELF/lto/Inputs/thin2.ll b/lld/test/ELF/lto/Inputs/thin2.ll
index 6cffbdcc53f..7c3e61ee4ac 100644
--- a/lld/test/ELF/lto/Inputs/thin2.ll
+++ b/lld/test/ELF/lto/Inputs/thin2.ll
@@ -1,4 +1,4 @@
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-scei-ps4"
define i32 @blah(i32 %meh) #0 {
diff --git a/lld/test/ELF/lto/Inputs/thinlto.ll b/lld/test/ELF/lto/Inputs/thinlto.ll
index 31c72ec4653..7cf01bc86c3 100644
--- a/lld/test/ELF/lto/Inputs/thinlto.ll
+++ b/lld/test/ELF/lto/Inputs/thinlto.ll
@@ -1,4 +1,4 @@
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
define void @g() {
diff --git a/lld/test/ELF/lto/Inputs/thinlto_empty.ll b/lld/test/ELF/lto/Inputs/thinlto_empty.ll
index a3c99cdfe77..a4e3140422e 100644
--- a/lld/test/ELF/lto/Inputs/thinlto_empty.ll
+++ b/lld/test/ELF/lto/Inputs/thinlto_empty.ll
@@ -1,2 +1,2 @@
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
diff --git a/lld/test/ELF/lto/Inputs/type-merge.ll b/lld/test/ELF/lto/Inputs/type-merge.ll
index c31642105f3..aceacd4b326 100644
--- a/lld/test/ELF/lto/Inputs/type-merge.ll
+++ b/lld/test/ELF/lto/Inputs/type-merge.ll
@@ -1,4 +1,4 @@
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
define void @zed() {
diff --git a/lld/test/ELF/lto/Inputs/type-merge2.ll b/lld/test/ELF/lto/Inputs/type-merge2.ll
index 79fd1f88630..de92d2cfea1 100644
--- a/lld/test/ELF/lto/Inputs/type-merge2.ll
+++ b/lld/test/ELF/lto/Inputs/type-merge2.ll
@@ -1,5 +1,5 @@
target triple = "x86_64-unknown-linux-gnu"
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
%zed = type { i16 }
define void @bar(%zed* %this) {
diff --git a/lld/test/ELF/lto/Inputs/unnamed-addr-drop.ll b/lld/test/ELF/lto/Inputs/unnamed-addr-drop.ll
index b91bc8e5a89..fa16353a1e0 100644
--- a/lld/test/ELF/lto/Inputs/unnamed-addr-drop.ll
+++ b/lld/test/ELF/lto/Inputs/unnamed-addr-drop.ll
@@ -1,4 +1,4 @@
target triple = "x86_64-unknown-linux-gnu"
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
@foo = unnamed_addr constant i32 42
diff --git a/lld/test/ELF/lto/Inputs/weakodr-visibility.ll b/lld/test/ELF/lto/Inputs/weakodr-visibility.ll
index 1bd956059d2..00c68fe5813 100644
--- a/lld/test/ELF/lto/Inputs/weakodr-visibility.ll
+++ b/lld/test/ELF/lto/Inputs/weakodr-visibility.ll
@@ -1,4 +1,4 @@
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
define weak_odr protected i32 @foo(i8* %this) {
diff --git a/lld/test/ELF/lto/Inputs/wrap-bar.ll b/lld/test/ELF/lto/Inputs/wrap-bar.ll
index 407ebfbf6ec..7a4f2e02d2e 100644
--- a/lld/test/ELF/lto/Inputs/wrap-bar.ll
+++ b/lld/test/ELF/lto/Inputs/wrap-bar.ll
@@ -1,4 +1,4 @@
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
define hidden void @bar() {
diff --git a/lld/test/ELF/lto/abs-resol.ll b/lld/test/ELF/lto/abs-resol.ll
index 4b0fb47a9e2..01de6adce13 100644
--- a/lld/test/ELF/lto/abs-resol.ll
+++ b/lld/test/ELF/lto/abs-resol.ll
@@ -7,7 +7,7 @@
; RUN: echo "blah = 0xdeadfeef;" > %t.script
; RUN: ld.lld %t.o -T%t.script -o %t4.out -pie
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@blah = external global i8, align 1
diff --git a/lld/test/ELF/lto/archive-2.ll b/lld/test/ELF/lto/archive-2.ll
index 40d1aba36f1..72350590a9a 100644
--- a/lld/test/ELF/lto/archive-2.ll
+++ b/lld/test/ELF/lto/archive-2.ll
@@ -16,7 +16,7 @@
; CHECK-NEXT: Other: 0
; CHECK-NEXT: Section: .text
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
define void @g() {
diff --git a/lld/test/ELF/lto/archive-3.ll b/lld/test/ELF/lto/archive-3.ll
index fec1b615523..a5270b8fc55 100644
--- a/lld/test/ELF/lto/archive-3.ll
+++ b/lld/test/ELF/lto/archive-3.ll
@@ -12,7 +12,7 @@
; CHECK: define internal void @foo() {
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
define void @_start() {
ret void
diff --git a/lld/test/ELF/lto/archive-no-index.ll b/lld/test/ELF/lto/archive-no-index.ll
index f7a2cf81c4f..79052db38cc 100644
--- a/lld/test/ELF/lto/archive-no-index.ll
+++ b/lld/test/ELF/lto/archive-no-index.ll
@@ -12,7 +12,7 @@
; RUN: ld.lld -o %t -emain %t1.o %t1.a
; RUN: ld.lld -o %t -emain %t1.o %t2.a
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
declare void @f()
diff --git a/lld/test/ELF/lto/archive.ll b/lld/test/ELF/lto/archive.ll
index 655c48ece03..e6a42849a61 100644
--- a/lld/test/ELF/lto/archive.ll
+++ b/lld/test/ELF/lto/archive.ll
@@ -24,7 +24,7 @@
; CHECK-NEXT: Other: 0
; CHECK-NEXT: Section: .text
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
define void @g() {
diff --git a/lld/test/ELF/lto/asmundef.ll b/lld/test/ELF/lto/asmundef.ll
index 604af8f9380..697fddfbf99 100644
--- a/lld/test/ELF/lto/asmundef.ll
+++ b/lld/test/ELF/lto/asmundef.ll
@@ -4,7 +4,7 @@
; RUN: ld.lld %t.o %t2.o -o %t -save-temps
; RUN: llvm-dis %t.0.4.opt.bc -o - | FileCheck %s
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
module asm ".weak patatino"
diff --git a/lld/test/ELF/lto/available-externally.ll b/lld/test/ELF/lto/available-externally.ll
index 516bec8c8a4..b06971d0f56 100644
--- a/lld/test/ELF/lto/available-externally.ll
+++ b/lld/test/ELF/lto/available-externally.ll
@@ -4,7 +4,7 @@
; RUN: ld.lld %t1.o %t2.o -o %t.so -shared -save-temps
; RUN: llvm-dis < %t.so.0.2.internalize.bc | FileCheck %s
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
define void @foo() {
diff --git a/lld/test/ELF/lto/cache.ll b/lld/test/ELF/lto/cache.ll
index fe123989f22..c17dee02847 100644
--- a/lld/test/ELF/lto/cache.ll
+++ b/lld/test/ELF/lto/cache.ll
@@ -51,7 +51,7 @@
; CHECK: llvmcache-newer
; CHECK-NOT: llvmcache-old
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
define void @globalfunc() #0 {
diff --git a/lld/test/ELF/lto/codemodel.ll b/lld/test/ELF/lto/codemodel.ll
index 995575a9a0a..15d32caafd5 100644
--- a/lld/test/ELF/lto/codemodel.ll
+++ b/lld/test/ELF/lto/codemodel.ll
@@ -6,7 +6,7 @@
; RUN: llvm-objdump -d %tl | FileCheck %s --check-prefix=CHECK-LARGE
target triple = "x86_64-unknown-linux-gnu"
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
@data = internal constant [0 x i32] []
diff --git a/lld/test/ELF/lto/combined-lto-object-name.ll b/lld/test/ELF/lto/combined-lto-object-name.ll
index e0b98740e0f..6f2d30d5bd3 100644
--- a/lld/test/ELF/lto/combined-lto-object-name.ll
+++ b/lld/test/ELF/lto/combined-lto-object-name.ll
@@ -3,7 +3,7 @@
; RUN: not ld.lld %t.o -o %t2 2>&1 | FileCheck %s
target triple = "x86_64-unknown-linux-gnu"
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
declare void @foo()
define void @_start() {
diff --git a/lld/test/ELF/lto/comdat.ll b/lld/test/ELF/lto/comdat.ll
index d61058f2e67..9895e083ae6 100644
--- a/lld/test/ELF/lto/comdat.ll
+++ b/lld/test/ELF/lto/comdat.ll
@@ -12,7 +12,7 @@
; CHECK-NEXT: Section: .text
target triple = "x86_64-unknown-linux-gnu"
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
$foo = comdat any
define void @foo() comdat {
diff --git a/lld/test/ELF/lto/comdat2.ll b/lld/test/ELF/lto/comdat2.ll
index 8cd45598cc3..ecfdc75ec15 100644
--- a/lld/test/ELF/lto/comdat2.ll
+++ b/lld/test/ELF/lto/comdat2.ll
@@ -11,7 +11,7 @@
; RUN: llvm-readobj --symbols %t2.so | FileCheck %s --check-prefix=OTHER
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
$c = comdat any
diff --git a/lld/test/ELF/lto/common.ll b/lld/test/ELF/lto/common.ll
index 82f00bc4221..e76ca7f9e37 100644
--- a/lld/test/ELF/lto/common.ll
+++ b/lld/test/ELF/lto/common.ll
@@ -25,7 +25,7 @@
; CHECK-NEXT: Other: 0
; CHECK-NEXT: Section: .bss
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@a = common global i32 0, align 8
diff --git a/lld/test/ELF/lto/common2.ll b/lld/test/ELF/lto/common2.ll
index a7463cb1e26..1e886b81b83 100644
--- a/lld/test/ELF/lto/common2.ll
+++ b/lld/test/ELF/lto/common2.ll
@@ -4,7 +4,7 @@
; RUN: llvm-dis < %t.0.2.internalize.bc | FileCheck %s
; RUN: llvm-readobj --symbols %t | FileCheck %s --check-prefix=SHARED
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@a = common global i8 0, align 8
diff --git a/lld/test/ELF/lto/common3.ll b/lld/test/ELF/lto/common3.ll
index de52615e24f..66cf9189779 100644
--- a/lld/test/ELF/lto/common3.ll
+++ b/lld/test/ELF/lto/common3.ll
@@ -4,7 +4,7 @@
; RUN: ld.lld %t1.o %t2.o -o %t -shared -save-temps
; RUN: llvm-dis < %t.0.2.internalize.bc | FileCheck %s
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@a = common hidden global i32 0, align 8
define i32 @f() {
diff --git a/lld/test/ELF/lto/common4.ll b/lld/test/ELF/lto/common4.ll
index 1d2f2d9e0a4..7a40e4be32f 100644
--- a/lld/test/ELF/lto/common4.ll
+++ b/lld/test/ELF/lto/common4.ll
@@ -14,7 +14,7 @@
; RUN: ld.lld -pie -o %t.exe -save-temps %t.o
; RUN: llvm-dis < %t.exe.0.2.internalize.bc | FileCheck %s
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@a = common dso_local local_unnamed_addr global i32 0, align 4
diff --git a/lld/test/ELF/lto/cpu-string.ll b/lld/test/ELF/lto/cpu-string.ll
index ff80dbb9a7b..df881015a1c 100644
--- a/lld/test/ELF/lto/cpu-string.ll
+++ b/lld/test/ELF/lto/cpu-string.ll
@@ -13,7 +13,7 @@
; RUN: ld.lld -plugin-opt=mcpu=znver1 %t.o -o %t.znver1.so -shared
; RUN: llvm-objdump -d -section=".text" -no-leading-addr -no-show-raw-insn %t.znver1.so | FileCheck -check-prefix=ZNVER1 %s
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
define void @foo() #0 {
diff --git a/lld/test/ELF/lto/ctors.ll b/lld/test/ELF/lto/ctors.ll
index a17e5b78500..0d14725f6f6 100644
--- a/lld/test/ELF/lto/ctors.ll
+++ b/lld/test/ELF/lto/ctors.ll
@@ -3,7 +3,7 @@
; RUN: ld.lld %t.o -o %t.so -shared
; RUN: llvm-readobj --sections %t.so | FileCheck %s
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@llvm.global_ctors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 65535, void ()* @ctor, i8* null }]
diff --git a/lld/test/ELF/lto/debugger-tune.ll b/lld/test/ELF/lto/debugger-tune.ll
index b7457756bcb..193bc632aae 100644
--- a/lld/test/ELF/lto/debugger-tune.ll
+++ b/lld/test/ELF/lto/debugger-tune.ll
@@ -13,7 +13,7 @@
; RUN: llvm-dwarfdump %t.exe | FileCheck --check-prefix=SCE %s
; SCE-NOT: name_of_foo
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@foo = global i32 0, align 4, !dbg !0
diff --git a/lld/test/ELF/lto/defsym.ll b/lld/test/ELF/lto/defsym.ll
index 1073ab8820f..1c5c743ea3d 100644
--- a/lld/test/ELF/lto/defsym.ll
+++ b/lld/test/ELF/lto/defsym.ll
@@ -25,7 +25,7 @@
; CHECK-NEXT: popq %rax
; CHECK-NEXT: jmp
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
declare void @bar1()
diff --git a/lld/test/ELF/lto/discard-value-names.ll b/lld/test/ELF/lto/discard-value-names.ll
index 485014e94d9..d3f10ddaa35 100644
--- a/lld/test/ELF/lto/discard-value-names.ll
+++ b/lld/test/ELF/lto/discard-value-names.ll
@@ -11,7 +11,7 @@
; CHECK: %add = add i32 %in, %GV
; CHECK: ret i32 %add
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@GlobalValueName = global i32 0
diff --git a/lld/test/ELF/lto/drop-linkage.ll b/lld/test/ELF/lto/drop-linkage.ll
index f02fa02bc4f..de305914e96 100644
--- a/lld/test/ELF/lto/drop-linkage.ll
+++ b/lld/test/ELF/lto/drop-linkage.ll
@@ -5,7 +5,7 @@
; RUN: llvm-dis %t.so.0.4.opt.bc -o - | FileCheck %s
target triple = "x86_64-unknown-linux-gnu"
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
define void @foo() {
ret void
diff --git a/lld/test/ELF/lto/duplicated-name.ll b/lld/test/ELF/lto/duplicated-name.ll
index b9e6c54564b..0a6dce55bca 100644
--- a/lld/test/ELF/lto/duplicated-name.ll
+++ b/lld/test/ELF/lto/duplicated-name.ll
@@ -7,7 +7,7 @@
; RUN: llvm-ar rcS %t2.a %t.o
; RUN: ld.lld -m elf_x86_64 -shared -o %t.so -uf1 -uf2 %t1.a %t2.a
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
define void @f1() {
diff --git a/lld/test/ELF/lto/duplicated.ll b/lld/test/ELF/lto/duplicated.ll
index fc60fbab23c..f278c45272b 100644
--- a/lld/test/ELF/lto/duplicated.ll
+++ b/lld/test/ELF/lto/duplicated.ll
@@ -7,7 +7,7 @@
; CHECK-NEXT: >>> defined in {{.*}}.o
target triple = "x86_64-unknown-linux-gnu"
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
define void @f() {
ret void
diff --git a/lld/test/ELF/lto/dynamic-list.ll b/lld/test/ELF/lto/dynamic-list.ll
index 5504ad0e1ed..043b35ab45d 100644
--- a/lld/test/ELF/lto/dynamic-list.ll
+++ b/lld/test/ELF/lto/dynamic-list.ll
@@ -17,7 +17,7 @@
; CHECK-NEXT: }
target triple = "x86_64-unknown-linux-gnu"
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
define void @_start() {
ret void
diff --git a/lld/test/ELF/lto/dynsym.ll b/lld/test/ELF/lto/dynsym.ll
index 392ac561e27..7eab9e473b8 100644
--- a/lld/test/ELF/lto/dynsym.ll
+++ b/lld/test/ELF/lto/dynsym.ll
@@ -10,7 +10,7 @@
; RUN: -o %t
; RUN: llvm-readobj --dyn-syms %t | FileCheck %s
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
define void @_start() {
diff --git a/lld/test/ELF/lto/emit-llvm.ll b/lld/test/ELF/lto/emit-llvm.ll
index bf38c982f02..a2020b46069 100644
--- a/lld/test/ELF/lto/emit-llvm.ll
+++ b/lld/test/ELF/lto/emit-llvm.ll
@@ -6,7 +6,7 @@
; CHECK: define internal void @main()
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
define void @main() {
diff --git a/lld/test/ELF/lto/inline-asm.ll b/lld/test/ELF/lto/inline-asm.ll
index e0732e6def5..1f543bcc7a6 100644
--- a/lld/test/ELF/lto/inline-asm.ll
+++ b/lld/test/ELF/lto/inline-asm.ll
@@ -2,7 +2,7 @@
; RUN: llvm-as %s -o %t.o
; RUN: ld.lld %t.o -o %t.so -shared
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
define void @foo() {
diff --git a/lld/test/ELF/lto/internalize-basic.ll b/lld/test/ELF/lto/internalize-basic.ll
index 5197654d588..704ea011f7d 100644
--- a/lld/test/ELF/lto/internalize-basic.ll
+++ b/lld/test/ELF/lto/internalize-basic.ll
@@ -4,7 +4,7 @@
; RUN: llvm-dis < %t2.0.2.internalize.bc | FileCheck %s
target triple = "x86_64-unknown-linux-gnu"
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
define void @_start() {
ret void
diff --git a/lld/test/ELF/lto/internalize-exportdyn.ll b/lld/test/ELF/lto/internalize-exportdyn.ll
index 7c996e19f35..5e0ec78addc 100644
--- a/lld/test/ELF/lto/internalize-exportdyn.ll
+++ b/lld/test/ELF/lto/internalize-exportdyn.ll
@@ -5,7 +5,7 @@
; RUN: llvm-dis < %t2.0.2.internalize.bc | FileCheck %s
target triple = "x86_64-unknown-linux-gnu"
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
define void @_start() {
ret void
diff --git a/lld/test/ELF/lto/internalize-llvmused.ll b/lld/test/ELF/lto/internalize-llvmused.ll
index 7e3d867da59..064a8c817b5 100644
--- a/lld/test/ELF/lto/internalize-llvmused.ll
+++ b/lld/test/ELF/lto/internalize-llvmused.ll
@@ -4,7 +4,7 @@
; RUN: llvm-dis < %t2.0.2.internalize.bc | FileCheck %s
target triple = "x86_64-unknown-linux-gnu"
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
define void @_start() {
ret void
diff --git a/lld/test/ELF/lto/internalize-undef.ll b/lld/test/ELF/lto/internalize-undef.ll
index c0860d8943b..1133f1d6345 100644
--- a/lld/test/ELF/lto/internalize-undef.ll
+++ b/lld/test/ELF/lto/internalize-undef.ll
@@ -4,7 +4,7 @@
; RUN: ld.lld %t.o %t2.o -o %t -save-temps
; RUN: llvm-dis < %t.0.2.internalize.bc | FileCheck %s
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
declare void @f()
diff --git a/lld/test/ELF/lto/internalize-version-script.ll b/lld/test/ELF/lto/internalize-version-script.ll
index 7e242e1a7ef..8ab62c85e4e 100644
--- a/lld/test/ELF/lto/internalize-version-script.ll
+++ b/lld/test/ELF/lto/internalize-version-script.ll
@@ -5,7 +5,7 @@
; RUN: llvm-dis < %t2.0.2.internalize.bc | FileCheck %s
target triple = "x86_64-unknown-linux-gnu"
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
define void @foo() {
ret void
diff --git a/lld/test/ELF/lto/irmover-error.ll b/lld/test/ELF/lto/irmover-error.ll
index d1c962ff725..6e1a61d541a 100644
--- a/lld/test/ELF/lto/irmover-error.ll
+++ b/lld/test/ELF/lto/irmover-error.ll
@@ -5,7 +5,7 @@
; CHECK: linking module flags 'foo': IDs have conflicting values
target triple = "x86_64-unknown-linux-gnu"
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
!0 = !{ i32 1, !"foo", i32 1 }
diff --git a/lld/test/ELF/lto/irmover-warning.ll b/lld/test/ELF/lto/irmover-warning.ll
index 7b0db782cca..5896ed6fe39 100644
--- a/lld/test/ELF/lto/irmover-warning.ll
+++ b/lld/test/ELF/lto/irmover-warning.ll
@@ -9,7 +9,7 @@
; CHECK-SAME: irmover-warning.ll.tmp.a(irmover-warning.ll.tmp2.bc at {{[0-9]+}})
target triple = "x86_64-unknown-linux-gnu"
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
declare void @f()
diff --git a/lld/test/ELF/lto/keep-undefined.ll b/lld/test/ELF/lto/keep-undefined.ll
index 55d2a05b48f..4e265123c8f 100644
--- a/lld/test/ELF/lto/keep-undefined.ll
+++ b/lld/test/ELF/lto/keep-undefined.ll
@@ -8,7 +8,7 @@
; CHECK: T foo
target triple = "x86_64-unknown-linux-gnu"
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
define void @foo() {
ret void
diff --git a/lld/test/ELF/lto/lazy-internal.ll b/lld/test/ELF/lto/lazy-internal.ll
index 1bb2bac3d59..dc1ba45c0d7 100644
--- a/lld/test/ELF/lto/lazy-internal.ll
+++ b/lld/test/ELF/lto/lazy-internal.ll
@@ -9,7 +9,7 @@
; CHECK: define internal void @foo()
; CHECK: define internal void @bar()
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
define hidden void @foo() {
diff --git a/lld/test/ELF/lto/libcall-archive.ll b/lld/test/ELF/lto/libcall-archive.ll
index 7e8ac183317..28c65fe656f 100644
--- a/lld/test/ELF/lto/libcall-archive.ll
+++ b/lld/test/ELF/lto/libcall-archive.ll
@@ -13,7 +13,7 @@
; CHECK: T _start
; CHECK: T memcpy
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
define void @_start(i8* %a, i8* %b) {
diff --git a/lld/test/ELF/lto/linkage.ll b/lld/test/ELF/lto/linkage.ll
index 9b9390002c7..89a833900c8 100644
--- a/lld/test/ELF/lto/linkage.ll
+++ b/lld/test/ELF/lto/linkage.ll
@@ -3,7 +3,7 @@
; RUN: ld.lld %t1.o %t1.o -o %t.so -shared
; RUN: llvm-nm %t.so | FileCheck %s
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
; Should not encounter a duplicate symbol error for @.str
diff --git a/lld/test/ELF/lto/linker-script-symbols-assign.ll b/lld/test/ELF/lto/linker-script-symbols-assign.ll
index 30a69f8ace1..e5e267507cc 100644
--- a/lld/test/ELF/lto/linker-script-symbols-assign.ll
+++ b/lld/test/ELF/lto/linker-script-symbols-assign.ll
@@ -33,7 +33,7 @@
; ABS-NEXT: }
target triple = "x86_64-unknown-linux-gnu"
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
@foo = global i32 0
@bar = global i32 0
diff --git a/lld/test/ELF/lto/linker-script-symbols-ipo.ll b/lld/test/ELF/lto/linker-script-symbols-ipo.ll
index ba12bd578f5..f22f1348780 100644
--- a/lld/test/ELF/lto/linker-script-symbols-ipo.ll
+++ b/lld/test/ELF/lto/linker-script-symbols-ipo.ll
@@ -20,7 +20,7 @@
; NOIPO: _start:
; NOIPO-NEXT: jmp -21 <foo>
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
define i32 @bar() {
diff --git a/lld/test/ELF/lto/linker-script-symbols.ll b/lld/test/ELF/lto/linker-script-symbols.ll
index 1fdafefe4e7..155cd20a60b 100644
--- a/lld/test/ELF/lto/linker-script-symbols.ll
+++ b/lld/test/ELF/lto/linker-script-symbols.ll
@@ -19,7 +19,7 @@
; CHECK-NOT: zed
target triple = "x86_64-unknown-linux-gnu"
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
define void @bar() {
ret void
diff --git a/lld/test/ELF/lto/linkonce-odr.ll b/lld/test/ELF/lto/linkonce-odr.ll
index 44233513d1f..cb801a5558c 100644
--- a/lld/test/ELF/lto/linkonce-odr.ll
+++ b/lld/test/ELF/lto/linkonce-odr.ll
@@ -4,7 +4,7 @@
; RUN: ld.lld %t1.o %t2.o -o %t.so -shared -save-temps
; RUN: llvm-dis %t.so.0.4.opt.bc -o - | FileCheck %s
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
declare void @f()
diff --git a/lld/test/ELF/lto/linkonce.ll b/lld/test/ELF/lto/linkonce.ll
index 6dba6a3fded..172c034d993 100644
--- a/lld/test/ELF/lto/linkonce.ll
+++ b/lld/test/ELF/lto/linkonce.ll
@@ -4,7 +4,7 @@
; RUN: ld.lld %t1.o %t2.o -o %t.so -shared -save-temps
; RUN: llvm-dis %t.so.0.4.opt.bc -o - | FileCheck %s
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
declare void @f()
diff --git a/lld/test/ELF/lto/lto-start.ll b/lld/test/ELF/lto/lto-start.ll
index d50b488e9c2..e39c35f17e0 100644
--- a/lld/test/ELF/lto/lto-start.ll
+++ b/lld/test/ELF/lto/lto-start.ll
@@ -16,7 +16,7 @@
; CHECK-NEXT: Section: .text
target triple = "x86_64-unknown-linux-gnu"
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
define void @_start() {
ret void
diff --git a/lld/test/ELF/lto/ltopasses-basic.ll b/lld/test/ELF/lto/ltopasses-basic.ll
index 6789bdc95fe..8489e70e18d 100644
--- a/lld/test/ELF/lto/ltopasses-basic.ll
+++ b/lld/test/ELF/lto/ltopasses-basic.ll
@@ -3,7 +3,7 @@
; RUN: ld.lld %t.o -o %t.so -save-temps -mllvm -debug-pass=Arguments -shared 2>&1 | FileCheck %s --check-prefix=MLLVM
; RUN: llvm-dis %t.so.0.4.opt.bc -o - | FileCheck %s
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@llvm.global_ctors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 65535, void ()* @ctor, i8* null }]
diff --git a/lld/test/ELF/lto/ltopasses-custom.ll b/lld/test/ELF/lto/ltopasses-custom.ll
index 23f15642682..f0322f8e417 100644
--- a/lld/test/ELF/lto/ltopasses-custom.ll
+++ b/lld/test/ELF/lto/ltopasses-custom.ll
@@ -6,7 +6,7 @@
; RUN: llvm-dis %t.so.0.4.opt.bc -o - | FileCheck %s
; RUN: llvm-dis %t2.so.0.4.opt.bc -o - | FileCheck %s --check-prefix=ATOMIC
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
define void @barrier() {
diff --git a/lld/test/ELF/lto/metadata.ll b/lld/test/ELF/lto/metadata.ll
index 238b5bd43b7..c35eecab70f 100644
--- a/lld/test/ELF/lto/metadata.ll
+++ b/lld/test/ELF/lto/metadata.ll
@@ -2,7 +2,7 @@
; RUN: llvm-as %s -o %t1.o
; RUN: ld.lld %t1.o %t1.o -o %t.so -shared
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
define weak void @foo(i32* %p) {
diff --git a/lld/test/ELF/lto/mix-platforms.ll b/lld/test/ELF/lto/mix-platforms.ll
index 3478caa5cff..4625f87b5e2 100644
--- a/lld/test/ELF/lto/mix-platforms.ll
+++ b/lld/test/ELF/lto/mix-platforms.ll
@@ -4,7 +4,7 @@
; RUN: llvm-as %s -o %tx64.o
; RUN: not ld.lld %ti386.so %tx64.o -o %t 2>&1 | FileCheck %s
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
; CHECK: {{.*}}x64.o is incompatible with {{.*}}i386.so
diff --git a/lld/test/ELF/lto/mix-platforms2.ll b/lld/test/ELF/lto/mix-platforms2.ll
index 1bd989e8674..7b5c95655bf 100644
--- a/lld/test/ELF/lto/mix-platforms2.ll
+++ b/lld/test/ELF/lto/mix-platforms2.ll
@@ -5,5 +5,5 @@
; CHECK: {{.*}}x64.o is incompatible with {{.*}}i386.o
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
diff --git a/lld/test/ELF/lto/module-asm.ll b/lld/test/ELF/lto/module-asm.ll
index eaf27621422..f3644f4f7b1 100644
--- a/lld/test/ELF/lto/module-asm.ll
+++ b/lld/test/ELF/lto/module-asm.ll
@@ -3,7 +3,7 @@
; RUN: ld.lld %t.o -o %t
; RUN: llvm-nm %t | FileCheck %s
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
module asm ".text"
diff --git a/lld/test/ELF/lto/new-pass-manager.ll b/lld/test/ELF/lto/new-pass-manager.ll
index 918b5050016..84f4ad1856e 100644
--- a/lld/test/ELF/lto/new-pass-manager.ll
+++ b/lld/test/ELF/lto/new-pass-manager.ll
@@ -10,5 +10,5 @@
; CHECK: Starting llvm::Module pass manager run
; CHECK: Finished llvm::Module pass manager run
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
diff --git a/lld/test/ELF/lto/obj-path.ll b/lld/test/ELF/lto/obj-path.ll
index 0f720d7a5df..07e30e2a500 100644
--- a/lld/test/ELF/lto/obj-path.ll
+++ b/lld/test/ELF/lto/obj-path.ll
@@ -21,7 +21,7 @@
; NM2: T g
; ELF2: Format: ELF64-x86-64
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
declare void @g(...)
diff --git a/lld/test/ELF/lto/opt-level.ll b/lld/test/ELF/lto/opt-level.ll
index 5c4ec43a21a..94c96c7d423 100644
--- a/lld/test/ELF/lto/opt-level.ll
+++ b/lld/test/ELF/lto/opt-level.ll
@@ -28,7 +28,7 @@
; RUN: FileCheck --check-prefix=INVALIDNEGATIVE2 %s
; INVALIDNEGATIVE2: invalid optimization level for LTO: 4294967295
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
; CHECK-O0: foo
diff --git a/lld/test/ELF/lto/opt-remarks.ll b/lld/test/ELF/lto/opt-remarks.ll
index 013e28e79bf..8132b75e217 100644
--- a/lld/test/ELF/lto/opt-remarks.ll
+++ b/lld/test/ELF/lto/opt-remarks.ll
@@ -56,7 +56,7 @@
; YAML-PASSES: Pass: inline
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-scei-ps4"
declare i32 @patatino()
diff --git a/lld/test/ELF/lto/parallel-internalize.ll b/lld/test/ELF/lto/parallel-internalize.ll
index 3b1b1062765..1d3399b92b8 100644
--- a/lld/test/ELF/lto/parallel-internalize.ll
+++ b/lld/test/ELF/lto/parallel-internalize.ll
@@ -59,7 +59,7 @@
; CHECK-NEXT: DynamicSymbols [
; CHECK-NEXT: ]
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
; CHECK0: U bar
diff --git a/lld/test/ELF/lto/parallel.ll b/lld/test/ELF/lto/parallel.ll
index 4ba3fd69d52..f400e434253 100644
--- a/lld/test/ELF/lto/parallel.ll
+++ b/lld/test/ELF/lto/parallel.ll
@@ -5,7 +5,7 @@
; RUN: llvm-nm %t.lto.o | FileCheck --check-prefix=CHECK0 %s
; RUN: llvm-nm %t1.lto.o | FileCheck --check-prefix=CHECK1 %s
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
; CHECK0-NOT: bar
diff --git a/lld/test/ELF/lto/pic.ll b/lld/test/ELF/lto/pic.ll
index abc514d7ca3..bedbb1c512a 100644
--- a/lld/test/ELF/lto/pic.ll
+++ b/lld/test/ELF/lto/pic.ll
@@ -10,7 +10,7 @@
; CHECK-NEXT: }
; CHECK-NEXT: ]
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
declare void @bar()
diff --git a/lld/test/ELF/lto/relax-relocs.ll b/lld/test/ELF/lto/relax-relocs.ll
index 80e5dac77d8..a375d253310 100644
--- a/lld/test/ELF/lto/relax-relocs.ll
+++ b/lld/test/ELF/lto/relax-relocs.ll
@@ -6,7 +6,7 @@
; Test that we produce R_X86_64_REX_GOTPCRELX instead of R_X86_64_GOTPCREL
; CHECK: R_X86_64_REX_GOTPCRELX foo
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@foo = external global i32
diff --git a/lld/test/ELF/lto/relocatable.ll b/lld/test/ELF/lto/relocatable.ll
index 9c7a0c280da..a67eb12e160 100644
--- a/lld/test/ELF/lto/relocatable.ll
+++ b/lld/test/ELF/lto/relocatable.ll
@@ -60,7 +60,7 @@
; CHECK-NEXT: }
; CHECK-NEXT: ]
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
define void @foo() {
diff --git a/lld/test/ELF/lto/relocation-model.ll b/lld/test/ELF/lto/relocation-model.ll
index 825e9fe40a7..beb693ebeab 100644
--- a/lld/test/ELF/lto/relocation-model.ll
+++ b/lld/test/ELF/lto/relocation-model.ll
@@ -45,7 +45,7 @@
; PIC: R_X86_64_REX_GOTPCRELX foo
; STATIC: R_X86_64_PC32 foo
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@foo = external global i32
diff --git a/lld/test/ELF/lto/resolution.ll b/lld/test/ELF/lto/resolution.ll
index d4ab1bf1c67..ce6f4d0b3b5 100644
--- a/lld/test/ELF/lto/resolution.ll
+++ b/lld/test/ELF/lto/resolution.ll
@@ -21,7 +21,7 @@
; CHECK-NEXT: 0000: 09000000 |{{.*}}|
; CHECK-NEXT: )
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@a = weak global i32 8
diff --git a/lld/test/ELF/lto/sample-profile.ll b/lld/test/ELF/lto/sample-profile.ll
index a8b11044442..989ed059155 100644
--- a/lld/test/ELF/lto/sample-profile.ll
+++ b/lld/test/ELF/lto/sample-profile.ll
@@ -10,7 +10,7 @@
; RUN: ld.lld --plugin-opt=sample-profile=%p/Inputs/sample-profile.prof %t1.o %t2.o -o %t3
; RUN opt -S %t3.lto.o | FileCheck %s
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
; CHECK: ProfileSummary
diff --git a/lld/test/ELF/lto/save-temps.ll b/lld/test/ELF/lto/save-temps.ll
index b34134cc5d7..b71cd1e92d6 100644
--- a/lld/test/ELF/lto/save-temps.ll
+++ b/lld/test/ELF/lto/save-temps.ll
@@ -17,7 +17,7 @@
; RUN: llvm-dis a.out.0.0.preopt.bc
target triple = "x86_64-unknown-linux-gnu"
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
define void @foo() {
ret void
diff --git a/lld/test/ELF/lto/section-name.ll b/lld/test/ELF/lto/section-name.ll
index 0ecc3778aef..ac744926db6 100644
--- a/lld/test/ELF/lto/section-name.ll
+++ b/lld/test/ELF/lto/section-name.ll
@@ -5,7 +5,7 @@
; RUN: ld.lld %t.o -o %t.so -shared --gc-sections
; RUN: llvm-readelf -S %t.so | FileCheck --check-prefix=GC %s
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@foo = hidden global i32 42, section "foo_section"
diff --git a/lld/test/ELF/lto/setting-dso-local.ll b/lld/test/ELF/lto/setting-dso-local.ll
index d2d9c29fc46..542db409bb6 100644
--- a/lld/test/ELF/lto/setting-dso-local.ll
+++ b/lld/test/ELF/lto/setting-dso-local.ll
@@ -6,7 +6,7 @@
; We used to crash setting foobar to non-dso_local
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@foobar = external hidden global i32
diff --git a/lld/test/ELF/lto/shlib-undefined.ll b/lld/test/ELF/lto/shlib-undefined.ll
index b2f0d4a36e2..babbf6a7cbb 100644
--- a/lld/test/ELF/lto/shlib-undefined.ll
+++ b/lld/test/ELF/lto/shlib-undefined.ll
@@ -16,7 +16,7 @@
; CHECK-NEXT: }
target triple = "x86_64-unknown-linux-gnu"
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
define void @_start() {
ret void
diff --git a/lld/test/ELF/lto/start-lib.ll b/lld/test/ELF/lto/start-lib.ll
index 024d887a7d0..d46e5d5cdd8 100644
--- a/lld/test/ELF/lto/start-lib.ll
+++ b/lld/test/ELF/lto/start-lib.ll
@@ -19,7 +19,7 @@
; TEST3-NOT: Name: bar
; TEST3-NOT: Name: foo
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
define void @_start() {
diff --git a/lld/test/ELF/lto/thin-archivecollision.ll b/lld/test/ELF/lto/thin-archivecollision.ll
index 554c2b02fc4..47a0beef7a2 100644
--- a/lld/test/ELF/lto/thin-archivecollision.ll
+++ b/lld/test/ELF/lto/thin-archivecollision.ll
@@ -23,7 +23,7 @@
; CHECK: T blah
; CHECK: T foo
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-scei-ps4"
define i32 @_start() {
diff --git a/lld/test/ELF/lto/thinlto-cant-write-index.ll b/lld/test/ELF/lto/thinlto-cant-write-index.ll
index 784fbafd2a4..d071406e336 100644
--- a/lld/test/ELF/lto/thinlto-cant-write-index.ll
+++ b/lld/test/ELF/lto/thinlto-cant-write-index.ll
@@ -12,7 +12,7 @@
; RUN: chmod u+w %t2.o.thinlto.bc
; CHECK: cannot open {{.*}}2.o.thinlto.bc: {{P|p}}ermission denied
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
declare void @g(...)
diff --git a/lld/test/ELF/lto/thinlto-debug-fission.ll b/lld/test/ELF/lto/thinlto-debug-fission.ll
index b779ad4a45f..8855d100b4d 100644
--- a/lld/test/ELF/lto/thinlto-debug-fission.ll
+++ b/lld/test/ELF/lto/thinlto-debug-fission.ll
@@ -9,7 +9,7 @@
; CHECK: Format: ELF64-x86-64
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
declare void @g(...)
diff --git a/lld/test/ELF/lto/thinlto-emit-imports.ll b/lld/test/ELF/lto/thinlto-emit-imports.ll
index cae7922682b..f85f409a26a 100644
--- a/lld/test/ELF/lto/thinlto-emit-imports.ll
+++ b/lld/test/ELF/lto/thinlto-emit-imports.ll
@@ -43,7 +43,7 @@
; RUN: not ls %t2.o.imports
; RUN: not ls %t3.o.imports
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
declare void @g(...)
diff --git a/lld/test/ELF/lto/thinlto-index-file.ll b/lld/test/ELF/lto/thinlto-index-file.ll
index 91f0b298ca3..18f4350b3a4 100644
--- a/lld/test/ELF/lto/thinlto-index-file.ll
+++ b/lld/test/ELF/lto/thinlto-index-file.ll
@@ -12,7 +12,7 @@
; CHECK: {{.*}}thinlto-index-file.ll.tmp2.o
; CHECK: {{.*}}thinlto-index-file.ll.tmp3.o
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
declare void @g(...)
diff --git a/lld/test/ELF/lto/thinlto-index-only.ll b/lld/test/ELF/lto/thinlto-index-only.ll
index 594b4bcf767..86510f6cd3d 100644
--- a/lld/test/ELF/lto/thinlto-index-only.ll
+++ b/lld/test/ELF/lto/thinlto-index-only.ll
@@ -73,7 +73,7 @@
; BACKEND2-NEXT: <COMBINED
; BACKEND2-NEXT: </GLOBALVAL_SUMMARY_BLOCK
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
declare void @g(...)
diff --git a/lld/test/ELF/lto/thinlto-no-index.ll b/lld/test/ELF/lto/thinlto-no-index.ll
index f80cf0e6381..d328eef73a1 100644
--- a/lld/test/ELF/lto/thinlto-no-index.ll
+++ b/lld/test/ELF/lto/thinlto-no-index.ll
@@ -12,7 +12,7 @@
; RUN: not ls %t2.o.thinlto.bc
; RUN: not ls %t3.o.thinlto.bc
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
declare void @g(...)
diff --git a/lld/test/ELF/lto/thinlto-obj-path.ll b/lld/test/ELF/lto/thinlto-obj-path.ll
index 2806d164a54..8878c8984d0 100644
--- a/lld/test/ELF/lto/thinlto-obj-path.ll
+++ b/lld/test/ELF/lto/thinlto-obj-path.ll
@@ -12,7 +12,7 @@
; CHECK: Format: ELF64-x86-64
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
declare void @g(...)
diff --git a/lld/test/ELF/lto/thinlto-object-suffix-replace.ll b/lld/test/ELF/lto/thinlto-object-suffix-replace.ll
index c58a1f2ded0..1749f816cd1 100644
--- a/lld/test/ELF/lto/thinlto-object-suffix-replace.ll
+++ b/lld/test/ELF/lto/thinlto-object-suffix-replace.ll
@@ -36,7 +36,7 @@
; RUN: --plugin-opt=thinlto-object-suffix-replace=".abc;.o" -shared %t1.thinlink.bc -o /dev/null
; RUN: ls %t1.thinlink.bc.thinlto.bc
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
define void @f() {
diff --git a/lld/test/ELF/lto/thinlto-prefix-replace.ll b/lld/test/ELF/lto/thinlto-prefix-replace.ll
index c276dae7b26..67b11c74abf 100644
--- a/lld/test/ELF/lto/thinlto-prefix-replace.ll
+++ b/lld/test/ELF/lto/thinlto-prefix-replace.ll
@@ -14,7 +14,7 @@
; RUN: not ld.lld --plugin-opt=thinlto-index-only --plugin-opt=thinlto-prefix-replace=abc:def -shared %t/oldpath/thinlto_prefix_replace.o -o %t/thinlto_prefix_replace 2>&1 | FileCheck %s --check-prefix=ERR
; ERR: --plugin-opt=thinlto-prefix-replace= expects 'old;new' format, but got abc:def
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
define void @f() {
diff --git a/lld/test/ELF/lto/thinlto.ll b/lld/test/ELF/lto/thinlto.ll
index 51c82ece587..63761151ba5 100644
--- a/lld/test/ELF/lto/thinlto.ll
+++ b/lld/test/ELF/lto/thinlto.ll
@@ -24,7 +24,7 @@
; NM1: T f
; NM2: T g
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
declare void @g(...)
diff --git a/lld/test/ELF/lto/timepasses.ll b/lld/test/ELF/lto/timepasses.ll
index 86c9b8ed795..97eda05b2f6 100644
--- a/lld/test/ELF/lto/timepasses.ll
+++ b/lld/test/ELF/lto/timepasses.ll
@@ -3,7 +3,7 @@
; RUN: env LLD_IN_TEST=0 ld.lld %t.o -o %t.so -shared -mllvm \
; RUN: -time-passes 2>&1 | FileCheck %s
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
define void @patatino() {
diff --git a/lld/test/ELF/lto/tls-mixed.ll b/lld/test/ELF/lto/tls-mixed.ll
index 9d5a6930372..2016e239cb9 100644
--- a/lld/test/ELF/lto/tls-mixed.ll
+++ b/lld/test/ELF/lto/tls-mixed.ll
@@ -3,7 +3,7 @@
; RUN: llvm-mc %p/Inputs/tls-mixed.s -o %t2.o -filetype=obj -triple=x86_64-pc-linux
; RUN: ld.lld %t1.o %t2.o -o %t.so -shared
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
; Should not encounter TLS-ness mismatch for @foo
diff --git a/lld/test/ELF/lto/tls-preserve.ll b/lld/test/ELF/lto/tls-preserve.ll
index a3d767c0dad..f99a1ae93b0 100644
--- a/lld/test/ELF/lto/tls-preserve.ll
+++ b/lld/test/ELF/lto/tls-preserve.ll
@@ -4,7 +4,7 @@
; RUN: ld.lld -shared %t1.o -o %t1
; RUN: llvm-readobj --symbols %t1 | FileCheck %s
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@tsp_int = thread_local global i32 1
diff --git a/lld/test/ELF/lto/type-merge.ll b/lld/test/ELF/lto/type-merge.ll
index 985c44b796e..c0207033735 100644
--- a/lld/test/ELF/lto/type-merge.ll
+++ b/lld/test/ELF/lto/type-merge.ll
@@ -4,7 +4,7 @@
; RUN: ld.lld %t.o %t2.o -o %t -shared -save-temps
; RUN: llvm-dis < %t.0.0.preopt.bc | FileCheck %s
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
define void @foo() {
diff --git a/lld/test/ELF/lto/type-merge2.ll b/lld/test/ELF/lto/type-merge2.ll
index 5944be7e6c0..95fed45db9a 100644
--- a/lld/test/ELF/lto/type-merge2.ll
+++ b/lld/test/ELF/lto/type-merge2.ll
@@ -5,7 +5,7 @@
; RUN: llvm-dis %t.so.0.0.preopt.bc -o - | FileCheck %s
target triple = "x86_64-unknown-linux-gnu"
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
%zed = type { i8 }
define void @foo() {
diff --git a/lld/test/ELF/lto/undef-mixed.ll b/lld/test/ELF/lto/undef-mixed.ll
index defda599f40..0d4827a3ffa 100644
--- a/lld/test/ELF/lto/undef-mixed.ll
+++ b/lld/test/ELF/lto/undef-mixed.ll
@@ -12,7 +12,7 @@
; CHECK-NEXT: Other: 0
; CHECK-NEXT: Section: .text
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
declare void @bar()
diff --git a/lld/test/ELF/lto/undef-weak.ll b/lld/test/ELF/lto/undef-weak.ll
index a84adb42441..e3b623ca14f 100644
--- a/lld/test/ELF/lto/undef-weak.ll
+++ b/lld/test/ELF/lto/undef-weak.ll
@@ -8,7 +8,7 @@
; RUN: llvm-readobj --symbols %t2.so | FileCheck %s
target triple = "x86_64-unknown-linux-gnu"
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
declare extern_weak void @f()
define void @foo() {
diff --git a/lld/test/ELF/lto/undef.ll b/lld/test/ELF/lto/undef.ll
index 74127db2e05..2ccebb6fc78 100644
--- a/lld/test/ELF/lto/undef.ll
+++ b/lld/test/ELF/lto/undef.ll
@@ -3,7 +3,7 @@
; RUN: ld.lld %t.o -o %t.so -shared
; RUN: llvm-readobj --symbols %t.so | FileCheck %s
target triple = "x86_64-unknown-linux-gnu"
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
declare void @bar()
define void @foo() {
diff --git a/lld/test/ELF/lto/undefined-puts.ll b/lld/test/ELF/lto/undefined-puts.ll
index 8f98789ed9f..b11d7651602 100644
--- a/lld/test/ELF/lto/undefined-puts.ll
+++ b/lld/test/ELF/lto/undefined-puts.ll
@@ -5,7 +5,7 @@
; RUN: ld.lld %t1.so %t2.o -o %t
; RUN: llvm-readobj --dyn-syms --dyn-relocations %t | FileCheck %s
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"blah\0A\00", align 1
diff --git a/lld/test/ELF/lto/unnamed-addr-comdat.ll b/lld/test/ELF/lto/unnamed-addr-comdat.ll
index 38b08ab23ee..52abc214ca7 100644
--- a/lld/test/ELF/lto/unnamed-addr-comdat.ll
+++ b/lld/test/ELF/lto/unnamed-addr-comdat.ll
@@ -4,7 +4,7 @@
; RUN: llvm-dis %t.so.0.2.internalize.bc -o - | FileCheck %s
target triple = "x86_64-unknown-linux-gnu"
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
$foo = comdat any
@foo = linkonce_odr unnamed_addr constant i32 42, comdat
diff --git a/lld/test/ELF/lto/unnamed-addr-drop.ll b/lld/test/ELF/lto/unnamed-addr-drop.ll
index ad662b7fe7b..2b658038b9d 100644
--- a/lld/test/ELF/lto/unnamed-addr-drop.ll
+++ b/lld/test/ELF/lto/unnamed-addr-drop.ll
@@ -5,7 +5,7 @@
; RUN: llvm-dis %t.so.0.2.internalize.bc -o - | FileCheck %s
target triple = "x86_64-unknown-linux-gnu"
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
@foo = weak constant i32 41
diff --git a/lld/test/ELF/lto/unnamed-addr-lib.ll b/lld/test/ELF/lto/unnamed-addr-lib.ll
index 0c47468e6b4..7b9dd530c23 100644
--- a/lld/test/ELF/lto/unnamed-addr-lib.ll
+++ b/lld/test/ELF/lto/unnamed-addr-lib.ll
@@ -14,7 +14,7 @@
; CHECK: @foo = internal unnamed_addr constant i8 42
; CHECK: @bar = weak_odr unnamed_addr constant i8 42
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@foo = linkonce_odr unnamed_addr constant i8 42
diff --git a/lld/test/ELF/lto/unnamed-addr.ll b/lld/test/ELF/lto/unnamed-addr.ll
index 7504fdf6733..5dcc7b0cb94 100644
--- a/lld/test/ELF/lto/unnamed-addr.ll
+++ b/lld/test/ELF/lto/unnamed-addr.ll
@@ -4,7 +4,7 @@
; RUN: llvm-dis %t.so.0.4.opt.bc -o - | FileCheck %s
target triple = "x86_64-unknown-linux-gnu"
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
@a = internal unnamed_addr constant i8 42
diff --git a/lld/test/ELF/lto/verify-invalid.ll b/lld/test/ELF/lto/verify-invalid.ll
index 9fa0f9e0b5f..d44c483dbcb 100644
--- a/lld/test/ELF/lto/verify-invalid.ll
+++ b/lld/test/ELF/lto/verify-invalid.ll
@@ -8,7 +8,7 @@
; RUN: --plugin-opt=disable-verify 2>&1 | FileCheck -check-prefix=DISABLE %s
target triple = "x86_64-unknown-linux-gnu"
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
define void @_start() {
ret void
diff --git a/lld/test/ELF/lto/version-script.ll b/lld/test/ELF/lto/version-script.ll
index ae6441b2480..52b9afc38ee 100644
--- a/lld/test/ELF/lto/version-script.ll
+++ b/lld/test/ELF/lto/version-script.ll
@@ -6,7 +6,7 @@
; RUN: llvm-readobj --dyn-syms %t2 | FileCheck --check-prefix=DSO %s
target triple = "x86_64-unknown-linux-gnu"
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
define void @foo() {
ret void
diff --git a/lld/test/ELF/lto/version-script2.ll b/lld/test/ELF/lto/version-script2.ll
index 29fa3f9f22e..cd1da747a7b 100644
--- a/lld/test/ELF/lto/version-script2.ll
+++ b/lld/test/ELF/lto/version-script2.ll
@@ -10,7 +10,7 @@
; CHECK: Name: foo@@VER1 (
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
module asm ".global foo"
diff --git a/lld/test/ELF/lto/visibility.ll b/lld/test/ELF/lto/visibility.ll
index 11518ab8e0f..7315b8fea5f 100644
--- a/lld/test/ELF/lto/visibility.ll
+++ b/lld/test/ELF/lto/visibility.ll
@@ -25,7 +25,7 @@
; CHECK-NEXT: ]
; CHECK-NEXT: Section: .data
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
declare hidden void @g()
diff --git a/lld/test/ELF/lto/weak.ll b/lld/test/ELF/lto/weak.ll
index d683c3463e4..d2891a998a1 100644
--- a/lld/test/ELF/lto/weak.ll
+++ b/lld/test/ELF/lto/weak.ll
@@ -7,7 +7,7 @@
; RUN: llvm-readobj --symbols %t.so | FileCheck %s
target triple = "x86_64-unknown-linux-gnu"
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
define weak void @f() {
ret void
diff --git a/lld/test/ELF/lto/weakodr-visibility.ll b/lld/test/ELF/lto/weakodr-visibility.ll
index 496de3c60c7..b041d79a891 100644
--- a/lld/test/ELF/lto/weakodr-visibility.ll
+++ b/lld/test/ELF/lto/weakodr-visibility.ll
@@ -32,7 +32,7 @@
; SECOND: foo:
; SECOND-NEXT: movl $42, %eax
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
define weak_odr i32 @foo(i8* %this) {
diff --git a/lld/test/ELF/lto/wrap-1.ll b/lld/test/ELF/lto/wrap-1.ll
index 310a7dab384..5ff46274d08 100644
--- a/lld/test/ELF/lto/wrap-1.ll
+++ b/lld/test/ELF/lto/wrap-1.ll
@@ -23,7 +23,7 @@
; RESOLS: ,__wrap_bar,plx
; RESOLS: ,__real_bar,plxr
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
declare void @bar()
diff --git a/lld/test/ELF/lto/wrap-2.ll b/lld/test/ELF/lto/wrap-2.ll
index 7a312f881b7..20505307194 100644
--- a/lld/test/ELF/lto/wrap-2.ll
+++ b/lld/test/ELF/lto/wrap-2.ll
@@ -36,7 +36,7 @@
; BIND-NEXT: Size:
; BIND-NEXT: Binding: Local
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
declare void @bar()
diff --git a/lld/test/wasm/lto/incompatible.ll b/lld/test/wasm/lto/incompatible.ll
index ee98cb4b4e6..6f7c154e959 100644
--- a/lld/test/wasm/lto/incompatible.ll
+++ b/lld/test/wasm/lto/incompatible.ll
@@ -2,7 +2,7 @@
; RUN: llvm-as %s -o %t.bc
; RUN: not wasm-ld %t.bc -o out.wasm 2>&1 | FileCheck %s
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
; CHECK: {{.*}}incompatible.ll.tmp.bc: machine type must be wasm32
OpenPOWER on IntegriCloud