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 4cb7fb0e85f..4aed5d22a9e 100644
--- a/lld/test/COFF/Inputs/bar.ll
+++ b/lld/test/COFF/Inputs/bar.ll
@@ -1,4 +1,4 @@
-target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-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 0b2772a095f..8cd7d706e5f 100644
--- a/lld/test/COFF/Inputs/conflict.ll
+++ b/lld/test/COFF/Inputs/conflict.ll
@@ -1,4 +1,4 @@
-target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-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 f0fa136dd5e..666c18f1303 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:32-n8:16:32-a:0:32-S32"
+target datalayout = "e-m:x-p:32:32-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 a4702d7770d..b6fac214dfc 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-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 96f99d78098..d254683cdd6 100644
--- a/lld/test/COFF/Inputs/export.ll
+++ b/lld/test/COFF/Inputs/export.ll
@@ -1,4 +1,4 @@
-target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-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 6ff9a6e7471..3f8a24df4c3 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:32-n8:16:32-a:0:32-S32"
+target datalayout = "e-m:x-p:32:32-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 f51bd56f6e3..acbee7be014 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-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 6e214815046..7a9f50c0f9d 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-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 a6a332d719f..c2af2a4de59 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-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 71ae8c52733..d6d47f23491 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-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 3c39f0f4c4f..0309f89c38f 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:32-n8:16:32-a:0:32-S32"
+target datalayout = "e-m:x-p:32:32-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 cc2faf6bfdf..99c1d2bdbc5 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:32-n8:16:32-a:0:32-S32"
+target datalayout = "e-m:x-p:32:32-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 9f7633caa92..804e201ff99 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-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 b4a3ce0515a..57f23898e6a 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-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 0b4067bfbf2..b3c546a434e 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-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 a9e89249674..4c9cc8e9e74 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-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 e5e2a714f04..44ff9a0f1f1 100644
--- a/lld/test/COFF/Inputs/thinlto.ll
+++ b/lld/test/COFF/Inputs/thinlto.ll
@@ -1,4 +1,4 @@
-target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-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 62632ec65b4..6793ec718e8 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-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 a030094f2b2..ff73e7c6ba6 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-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 72f5901893d..4775d50456c 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-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 378fda4138a..2102c3b6a52 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-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 d229e496635..f9a51360a89 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-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 e9707a47f17..602b4ff6333 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-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 a7f4568968c..6658b60815d 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-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 c0cb8d10117..d5ae546ab71 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-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 42c6797838c..0431af9b0f9 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:32-n8:16:32-a:0:32-S32"
+target datalayout = "e-m:x-p:32:32-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 c78c1d41fde..631503d0dd9 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:32-n8:16:32-a:0:32-S32"
+target datalayout = "e-m:x-p:32:32-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 46f613472c2..96b4b8e5966 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-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 ced0c5251d1..828f5e5a97c 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-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 c2a15180b76..1df93c6b954 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-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 cf5a137ff50..fbb7104bf11 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-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 be52bfb53c5..840adcebf46 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-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 6ecc8645d29..4381590ff13 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-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 0b0c26eb2ad..ef98d7b0604 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-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 a6f4010eddd..428a7b845d1 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:32-n8:16:32-a:0:32-S32"
+target datalayout = "e-m:x-p:32:32-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 bbe67ae41da..1fc4f5eb048 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-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 7f5a328466e..dadd49537cf 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-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 987e2bd7789..db61ba97046 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-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 0e0e8667889..92f88ea9e98 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-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 8e1f44a8ebb..7a38a39d77d 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-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 2b7e3a85191..9ac32ae3677 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:32-n8:16:32-a:0:32-S32"
+target datalayout = "e-m:x-p:32:32-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 7c61f1cf5bf..54624906c32 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-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 e755ba9920d..7f2e11c1771 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-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 b865402fdc0..8b8865d03d3 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-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 9194db8f652..a3de6c9e557 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-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 9ffe3b26770..b2ecd46c9e1 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-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 db41309d83d..f1f2412b87b 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-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 e4a513dc7f6..8c901cbd70b 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-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 4c9f2c8fc0e..eea898de0c5 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-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 ed8713f2a87..a6a116d67e1 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-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 f24f362cdf1..77ba9b91de7 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-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 5ace81b1938..6147dd1005e 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-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 a1e52294273..e3071cc88a8 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-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 d1c87c16a5d..c269fbac85d 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:w-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 648dccbb069..8236cfe5cd8 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 af86e09d9bd..37442469aa7 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 478f6ee182b..71c1e4f3560 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 4197fafc4ad..0992f79c9af 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 ec459001986..b8583eab829 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 1b827cd6988..09289029917 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 bbd6c347ff3..8f20a1e8ac2 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 8e872762e64..a95fa6d5a58 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 840fecd1bed..748c7b23f6a 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 d86055794d9..0e3dc7a4142 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 86c410efb5d..78678c0c5ad 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 6ff84a75c10..6029cb6d090 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 585b99ae5a5..21ac3580762 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 478f6ee182b..71c1e4f3560 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 de2e9f03ccc..86ed259b2a0 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 2948654b944..72d437fb62c 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 3b79ff6fbbb..918791c5d20 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 11eaefc6ac5..4e6421c3020 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 3031557c3e5..c872f9e1dd5 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 b465a4bc655..0b3828846eb 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 cb6f99a76d0..a6738b3ad71 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 7cf01bc86c3..31c72ec4653 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 d5c69a5e3db..e76605435e8 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 67cdbaf2215..d6e6eb661f3 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 8e09f4adc8a..9f42e6afff0 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 7986919be34..68b3c836280 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 9bb2c7d58b2..164659ce27b 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 011eee616e3..93029837714 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 7c3e61ee4ac..6cffbdcc53f 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 7cf01bc86c3..31c72ec4653 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 a4e3140422e..a3c99cdfe77 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 aceacd4b326..c31642105f3 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 de92d2cfea1..79fd1f88630 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 fa16353a1e0..b91bc8e5a89 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 00c68fe5813..1bd956059d2 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 7a4f2e02d2e..407ebfbf6ec 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 01de6adce13..4b0fb47a9e2 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 72350590a9a..40d1aba36f1 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 a5270b8fc55..fec1b615523 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 79052db38cc..f7a2cf81c4f 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 e6a42849a61..655c48ece03 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 697fddfbf99..604af8f9380 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 b06971d0f56..516bec8c8a4 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 c17dee02847..fe123989f22 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 15d32caafd5..995575a9a0a 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 6f2d30d5bd3..e0b98740e0f 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 9895e083ae6..d61058f2e67 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 d87b8f005dd..3a23198de2c 100644
--- a/lld/test/ELF/lto/comdat2.ll
+++ b/lld/test/ELF/lto/comdat2.ll
@@ -7,7 +7,7 @@
; RUN: llvm-readobj --symbols %t2.so | FileCheck %s --check-prefix=OTHER
-target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 e76ca7f9e37..82f00bc4221 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 1e886b81b83..a7463cb1e26 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 66cf9189779..de52615e24f 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 7a40e4be32f..1d2f2d9e0a4 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 df881015a1c..ff80dbb9a7b 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 0d14725f6f6..a17e5b78500 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 193bc632aae..b7457756bcb 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 1c5c743ea3d..1073ab8820f 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 d3f10ddaa35..485014e94d9 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 de305914e96..f02fa02bc4f 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 0a6dce55bca..b9e6c54564b 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 f278c45272b..fc60fbab23c 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 8e8738f18bd..05a5f39a6b8 100644
--- a/lld/test/ELF/lto/dynamic-list.ll
+++ b/lld/test/ELF/lto/dynamic-list.ll
@@ -14,7 +14,7 @@
; CHECK-NEXT: }
target triple = "x86_64-unknown-linux-gnu"
-target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 7eab9e473b8..392ac561e27 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 a2020b46069..bf38c982f02 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 1f543bcc7a6..e0732e6def5 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 704ea011f7d..5197654d588 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 5e0ec78addc..7c996e19f35 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 064a8c817b5..7e3d867da59 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 1133f1d6345..c0860d8943b 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 8ab62c85e4e..7e242e1a7ef 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 6e1a61d541a..d1c962ff725 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 5896ed6fe39..7b0db782cca 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 4e265123c8f..55d2a05b48f 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 dc1ba45c0d7..1bb2bac3d59 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 28c65fe656f..7e8ac183317 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 89a833900c8..9b9390002c7 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 e5e267507cc..30a69f8ace1 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 5b5a34293dc..4cc95c6caca 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 155cd20a60b..1fdafefe4e7 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 cb801a5558c..44233513d1f 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 172c034d993..6dba6a3fded 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 e39c35f17e0..d50b488e9c2 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 8489e70e18d..6789bdc95fe 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 f0322f8e417..23f15642682 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 c35eecab70f..238b5bd43b7 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 4625f87b5e2..3478caa5cff 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 7b5c95655bf..1bd989e8674 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 f3644f4f7b1..eaf27621422 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 84f4ad1856e..918b5050016 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 fb0a51a73f3..808e17b2427 100644
--- a/lld/test/ELF/lto/obj-path.ll
+++ b/lld/test/ELF/lto/obj-path.ll
@@ -23,7 +23,7 @@
; NM2: T g
; ELF2: Format: ELF64-x86-64
-target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 94c96c7d423..5c4ec43a21a 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 8132b75e217..013e28e79bf 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 cd505fb7ee3..907ba478d87 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 f400e434253..4ba3fd69d52 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 bedbb1c512a..abc514d7ca3 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 a375d253310..80e5dac77d8 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 a67eb12e160..9c7a0c280da 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 beb693ebeab..825e9fe40a7 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 ce6f4d0b3b5..d4ab1bf1c67 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 989ed059155..a8b11044442 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 b71cd1e92d6..b34134cc5d7 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 ac744926db6..0ecc3778aef 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 542db409bb6..d2d9c29fc46 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 b35f87e5f0d..01fe915d6b0 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 d46e5d5cdd8..024d887a7d0 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 47a0beef7a2..554c2b02fc4 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 d071406e336..784fbafd2a4 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 8855d100b4d..b779ad4a45f 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 f85f409a26a..cae7922682b 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 18f4350b3a4..91f0b298ca3 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 86510f6cd3d..594b4bcf767 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 d328eef73a1..f80cf0e6381 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 8878c8984d0..2806d164a54 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 1749f816cd1..c58a1f2ded0 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 67b11c74abf..c276dae7b26 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 63761151ba5..51c82ece587 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 97eda05b2f6..86c9b8ed795 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 2016e239cb9..9d5a6930372 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 f99a1ae93b0..a3d767c0dad 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 c0207033735..985c44b796e 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 95fed45db9a..5944be7e6c0 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 0d4827a3ffa..defda599f40 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 e3b623ca14f..a84adb42441 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 2ccebb6fc78..74127db2e05 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 2cbe0c30321..777ca56eae3 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 52abc214ca7..38b08ab23ee 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 2b658038b9d..ad662b7fe7b 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 7b9dd530c23..0c47468e6b4 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 5dcc7b0cb94..7504fdf6733 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 d44c483dbcb..9fa0f9e0b5f 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 2da42efb449..f12d7b6f6df 100644
--- a/lld/test/ELF/lto/version-script.ll
+++ b/lld/test/ELF/lto/version-script.ll
@@ -6,7 +6,7 @@
; RUN: llvm-readobj -V --dyn-syms %t2 | FileCheck --check-prefix=DSO %s
target triple = "x86_64-unknown-linux-gnu"
-target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 34fe377fc63..899a42b0e44 100644
--- a/lld/test/ELF/lto/version-script2.ll
+++ b/lld/test/ELF/lto/version-script2.ll
@@ -7,7 +7,7 @@
; test that we have the correct version.
; CHECK: Name: foo@@VER1 (
-target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 07b08515dbd..fdf579a51f1 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 95b1dc5d044..f716e332776 100644
--- a/lld/test/ELF/lto/weak.ll
+++ b/lld/test/ELF/lto/weak.ll
@@ -4,7 +4,7 @@
; RUN: llvm-readobj --symbols %t.so | FileCheck %s
target triple = "x86_64-unknown-linux-gnu"
-target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 b041d79a891..496de3c60c7 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 5ff46274d08..310a7dab384 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 20505307194..7a312f881b7 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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 6f7c154e959..ee98cb4b4e6 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-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target datalayout = "e-m:e-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