Skip to content

Commit f6189e6

Browse files
committed
fix tests using "S0"
1 parent a3d1c65 commit f6189e6

File tree

5 files changed

+6
-7
lines changed

5 files changed

+6
-7
lines changed

llvm/test/CodeGen/PowerPC/pr15359.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
; RUN: llc -verify-machineinstrs -O0 -mcpu=pwr7 -filetype=obj %s -o - | \
22
; RUN: llvm-readobj --symbols - | FileCheck %s
33

4-
target datalayout = "E-p:64:64:64-S0-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f16:16:16-f32:32:32-f64:64:64-f128:128:128-v64:64:64-v128:128:128-a0:0:64-n32:64"
4+
target datalayout = "E-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f16:16:16-f32:32:32-f64:64:64-f128:128:128-v64:64:64-v128:128:128-a0:0:64-n32:64"
55
target triple = "powerpc64-unknown-linux-gnu"
66

77
@nextIdx = external thread_local global i32

llvm/test/CodeGen/PowerPC/pr16556-2.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
; This test formerly failed because of wrong custom lowering for
44
; fptosi of ppc_fp128.
55

6-
target datalayout = "E-p:32:32:32-S0-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f16:16:16-f32:32:32-f64:64:64-f128:64:128-v64:64:64-v128:128:128-a0:0:64-n32"
6+
target datalayout = "E-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f16:16:16-f32:32:32-f64:64:64-f128:64:128-v64:64:64-v128:128:128-a0:0:64-n32"
77
target triple = "powerpc-unknown-linux-gnu"
88

99
%core.time.TickDuration = type { i64 }

llvm/test/CodeGen/PowerPC/pr16556.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
; This test formerly failed due to no handling for a ppc_fp128 undef.
44

5-
target datalayout = "E-p:32:32:32-S0-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f16:16:16-f32:32:32-f64:64:64-f128:64:128-v64:64:64-v128:128:128-a0:0:64-n32"
5+
target datalayout = "E-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f16:16:16-f32:32:32-f64:64:64-f128:64:128-v64:64:64-v128:128:128-a0:0:64-n32"
66
target triple = "powerpc-unknown-linux-gnu"
77

88
%core.time.TickDuration.37.125 = type { i64 }

mlir/lib/Target/LLVMIR/DataLayoutImporter.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,9 @@ DataLayoutImporter::tryToEmplaceStackAlignmentEntry(StringRef token) {
197197
if (failed(alignment))
198198
return failure();
199199

200-
// Only store the stack alignment if it has a non-default value.
200+
// Stack alignment shouldn't be zero.
201201
if (*alignment == 0)
202-
return success();
202+
return failure();
203203
OpBuilder builder(context);
204204
keyEntries.try_emplace(key, DataLayoutEntryAttr::get(
205205
key, builder.getI64IntegerAttr(*alignment)));

mlir/test/Target/LLVMIR/Import/data-layout.ll

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,4 @@ target datalayout = "A1-E-p270:16:32:64:8-p271:16:32:64-i64:64:128"
4747
; CHECK: dlti.dl_spec =
4848
; CHECK: #dlti.dl_spec<
4949
; CHECK-NOT: #dlti.dl_entry<"dlti.alloca_memory_space"
50-
; CHECK-NOT: #dlti.dl_entry<"dlti.stack_alignment"
51-
target datalayout = "A0-S0"
50+
target datalayout = "A0"

0 commit comments

Comments
 (0)