[lld] 0236564 - [PowerPC][LLD] Update DataLayout in tests
David Tenty via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 18 11:25:07 PDT 2023
Author: David Tenty
Date: 2023-04-18T14:24:55-04:00
New Revision: 0236564771b432ebf050144eda4ef4b7424db8c3
URL: https://github.com/llvm/llvm-project/commit/0236564771b432ebf050144eda4ef4b7424db8c3
DIFF: https://github.com/llvm/llvm-project/commit/0236564771b432ebf050144eda4ef4b7424db8c3.diff
LOG: [PowerPC][LLD] Update DataLayout in tests
Missed by the original commit of D147016 which updated the DataLayout for Power.
Differential Revision: https://reviews.llvm.org/D147016
Added:
Modified:
lld/test/ELF/common-archive-lookup.s
lld/test/ELF/lto/ppc.ll
Removed:
################################################################################
diff --git a/lld/test/ELF/common-archive-lookup.s b/lld/test/ELF/common-archive-lookup.s
index 2a813324a2775..297d3d9b6f36e 100644
--- a/lld/test/ELF/common-archive-lookup.s
+++ b/lld/test/ELF/common-archive-lookup.s
@@ -173,19 +173,19 @@ _start:
#--- blockdata.ll
-target datalayout = "e-m:e-i64:64-n32:64-S128-v256:256:256-v512:512:512"
+target datalayout = "e-m:e-Fn32-i64:64-n32:64-S128-v256:256:256-v512:512:512"
target triple = "powerpc64le-unknown-linux-gnu"
@block = dso_local local_unnamed_addr global [5 x i32] [i32 5, i32 0, i32 0, i32 0, i32 0], align 4
#--- weak.ll
-target datalayout = "e-m:e-i64:64-n32:64-S128-v256:256:256-v512:512:512"
+target datalayout = "e-m:e-Fn32-i64:64-n32:64-S128-v256:256:256-v512:512:512"
target triple = "powerpc64le-unknown-linux-gnu"
@block = weak dso_local global [5 x i32] [i32 5, i32 0, i32 0, i32 0, i32 0], align 4
#--- commonblock.ll
-target datalayout = "e-m:e-i64:64-n32:64-S128-v256:256:256-v512:512:512"
+target datalayout = "e-m:e-Fn32-i64:64-n32:64-S128-v256:256:256-v512:512:512"
target triple = "powerpc64le-unknown-linux-gnu"
@block = common dso_local local_unnamed_addr global [5 x i32] zeroinitializer, align 4
diff --git a/lld/test/ELF/lto/ppc.ll b/lld/test/ELF/lto/ppc.ll
index 38312e8e530c5..a825fd994bfc2 100644
--- a/lld/test/ELF/lto/ppc.ll
+++ b/lld/test/ELF/lto/ppc.ll
@@ -27,7 +27,7 @@
; LE64: Machine: EM_PPC64
;--- 32le.ll
-target datalayout = "e-m:e-p:32:32-i64:64-n32"
+target datalayout = "e-m:e-p:32:32-Fn32-i64:64-n32"
target triple = "powerpcle-pc-freebsd"
define void @_start() {
@@ -35,7 +35,7 @@ define void @_start() {
}
;--- 32be.ll
-target datalayout = "E-m:e-p:32:32-i64:64-n32"
+target datalayout = "E-m:e-p:32:32-Fn32-i64:64-n32"
target triple = "powerpc-unknown-linux-gnu"
define void @_start() {
@@ -43,7 +43,7 @@ define void @_start() {
}
;--- 64.ll
-target datalayout = "e-m:e-i64:64-n32:64-S128-v256:256:256-v512:512:512"
+target datalayout = "e-m:e-Fn32-i64:64-n32:64-S128-v256:256:256-v512:512:512"
target triple = "powerpc64le-unknown-linux-gnu"
define void @_start() {
More information about the llvm-commits
mailing list