Skip to content

Commit 57076d3

Browse files
committed
Revert "Change the X86 datalayout to add three address spaces for 32 bit signed,"
This reverts commit r370083 because it caused check-lld failures on sanitizer-x86_64-linux-fast. llvm-svn: 370142
1 parent 712a9b0 commit 57076d3

File tree

520 files changed

+538
-550
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

520 files changed

+538
-550
lines changed

clang/lib/Basic/Targets/OSTargets.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -775,11 +775,9 @@ class LLVM_LIBRARY_VISIBILITY NaClTargetInfo : public OSTargetInfo<Target> {
775775
if (Triple.getArch() == llvm::Triple::arm) {
776776
// Handled in ARM's setABI().
777777
} else if (Triple.getArch() == llvm::Triple::x86) {
778-
this->resetDataLayout("e-m:e-p:32:32-p270:32:32-p271:32:32-p272:64:64-"
779-
"i64:64-n8:16:32-S128");
778+
this->resetDataLayout("e-m:e-p:32:32-i64:64-n8:16:32-S128");
780779
} else if (Triple.getArch() == llvm::Triple::x86_64) {
781-
this->resetDataLayout("e-m:e-p:32:32-p270:32:32-p271:32:32-p272:64:64-"
782-
"i64:64-n8:16:32:64-S128");
780+
this->resetDataLayout("e-m:e-p:32:32-i64:64-n8:16:32:64-S128");
783781
} else if (Triple.getArch() == llvm::Triple::mipsel) {
784782
// Handled on mips' setDataLayout.
785783
} else {

clang/lib/Basic/Targets/X86.h

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -340,8 +340,7 @@ class LLVM_LIBRARY_VISIBILITY X86_32TargetInfo : public X86TargetInfo {
340340
LongDoubleWidth = 96;
341341
LongDoubleAlign = 32;
342342
SuitableAlign = 128;
343-
resetDataLayout("e-m:e-p:32:32-p270:32:32-p271:32:32-p272:64:64-f64:32:64-"
344-
"f80:32-n8:16:32-S128");
343+
resetDataLayout("e-m:e-p:32:32-f64:32:64-f80:32-n8:16:32-S128");
345344
SizeType = UnsignedInt;
346345
PtrDiffType = SignedInt;
347346
IntPtrType = SignedInt;
@@ -441,8 +440,7 @@ class LLVM_LIBRARY_VISIBILITY DarwinI386TargetInfo
441440
UseSignedCharForObjCBool = false;
442441
SizeType = UnsignedLong;
443442
IntPtrType = SignedLong;
444-
resetDataLayout("e-m:o-p:32:32-p270:32:32-p271:32:32-p272:64:64-f64:32:64-"
445-
"f80:128-n8:16:32-S128");
443+
resetDataLayout("e-m:o-p:32:32-f64:32:64-f80:128-n8:16:32-S128");
446444
HasAlignMac68kSupport = true;
447445
}
448446

@@ -467,10 +465,9 @@ class LLVM_LIBRARY_VISIBILITY WindowsX86_32TargetInfo
467465
DoubleAlign = LongLongAlign = 64;
468466
bool IsWinCOFF =
469467
getTriple().isOSWindows() && getTriple().isOSBinFormatCOFF();
470-
resetDataLayout(IsWinCOFF ? "e-m:x-p:32:32-p270:32:32-p271:32:32-p272:64:"
471-
"64-i64:64-f80:32-n8:16:32-a:0:32-S32"
472-
: "e-m:e-p:32:32-p270:32:32-p271:32:32-p272:64:"
473-
"64-i64:64-f80:32-n8:16:32-a:0:32-S32");
468+
resetDataLayout(IsWinCOFF
469+
? "e-m:x-p:32:32-i64:64-f80:32-n8:16:32-a:0:32-S32"
470+
: "e-m:e-p:32:32-i64:64-f80:32-n8:16:32-a:0:32-S32");
474471
}
475472
};
476473

@@ -518,8 +515,7 @@ class LLVM_LIBRARY_VISIBILITY CygwinX86_32TargetInfo : public X86_32TargetInfo {
518515
: X86_32TargetInfo(Triple, Opts) {
519516
this->WCharType = TargetInfo::UnsignedShort;
520517
DoubleAlign = LongLongAlign = 64;
521-
resetDataLayout("e-m:x-p:32:32-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:"
522-
"32-n8:16:32-a:0:32-S32");
518+
resetDataLayout("e-m:x-p:32:32-i64:64-f80:32-n8:16:32-a:0:32-S32");
523519
}
524520

525521
void getTargetDefines(const LangOptions &Opts,
@@ -556,8 +552,7 @@ class LLVM_LIBRARY_VISIBILITY MCUX86_32TargetInfo : public X86_32TargetInfo {
556552
: X86_32TargetInfo(Triple, Opts) {
557553
LongDoubleWidth = 64;
558554
LongDoubleFormat = &llvm::APFloat::IEEEdouble();
559-
resetDataLayout("e-m:e-p:32:32-p270:32:32-p271:32:32-p272:64:64-i64:32-f64:"
560-
"32-f128:32-n8:16:32-a:0:32-S32");
555+
resetDataLayout("e-m:e-p:32:32-i64:32-f64:32-f128:32-n8:16:32-a:0:32-S32");
561556
WIntType = UnsignedInt;
562557
}
563558

@@ -616,12 +611,10 @@ class LLVM_LIBRARY_VISIBILITY X86_64TargetInfo : public X86TargetInfo {
616611
RegParmMax = 6;
617612

618613
// Pointers are 32-bit in x32.
619-
resetDataLayout(IsX32 ? "e-m:e-p:32:32-p270:32:32-p271:32:32-p272:64:64-"
620-
"i64:64-f80:128-n8:16:32:64-S128"
621-
: IsWinCOFF ? "e-m:w-p270:32:32-p271:32:32-p272:64:"
622-
"64-i64:64-f80:128-n8:16:32:64-S128"
623-
: "e-m:e-p270:32:32-p271:32:32-p272:64:"
624-
"64-i64:64-f80:128-n8:16:32:64-S128");
614+
resetDataLayout(IsX32
615+
? "e-m:e-p:32:32-i64:64-f80:128-n8:16:32:64-S128"
616+
: IsWinCOFF ? "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
617+
: "e-m:e-i64:64-f80:128-n8:16:32:64-S128");
625618

626619
// Use fpret only for long double.
627620
RealTypeUsesObjCFPRet = (1 << TargetInfo::LongDouble);
@@ -811,8 +804,7 @@ class LLVM_LIBRARY_VISIBILITY DarwinX86_64TargetInfo
811804
llvm::Triple T = llvm::Triple(Triple);
812805
if (T.isiOS())
813806
UseSignedCharForObjCBool = false;
814-
resetDataLayout("e-m:o-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:"
815-
"16:32:64-S128");
807+
resetDataLayout("e-m:o-i64:64-f80:128-n8:16:32:64-S128");
816808
}
817809

818810
bool handleTargetFeatures(std::vector<std::string> &Features,

clang/test/CodeGen/Inputs/thinlto-multi-module.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
1+
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
22
target triple = "x86_64-unknown-linux-gnu"
33

44
define void @f2() {

clang/test/CodeGen/Inputs/thinlto_backend.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
1+
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
22
target triple = "x86_64-unknown-linux-gnu"
33

44
define void @f2() {

clang/test/CodeGen/Inputs/thinlto_backend_local_name_conflict1.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
; ModuleID = 'local_name_conflict_var.o'
22
source_filename = "local_name_conflict_var.c"
3-
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
3+
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
44
target triple = "x86_64-unknown-linux-gnu"
55

66
@baz = internal global i32 10, align 4

clang/test/CodeGen/Inputs/thinlto_backend_local_name_conflict2.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
; ModuleID = 'local_name_conflict_var.o'
22
source_filename = "local_name_conflict_var.c"
3-
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
3+
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
44
target triple = "x86_64-unknown-linux-gnu"
55

66
@baz = internal global i32 10, align 4

clang/test/CodeGen/iamcu-abi.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
// RUN: %clang_cc1 -triple i386-pc-elfiamcu -emit-llvm -o - %s | FileCheck %s
22

3-
// CHECK: target datalayout = "e-m:e-p:32:32-p270:32:32-p271:32:32-p272:64:64-i64:32-f64:32-f128:32-n8:16:32-a:0:32-S32"
3+
// CHECK: target datalayout = "e-m:e-p:32:32-i64:32-f64:32-f128:32-n8:16:32-a:0:32-S32"
44
// CHECK: target triple = "i386-pc-elfiamcu"
55

6+
67
void food(double *d);
78
void fooll(long long *ll);
89
void fooull(unsigned long long *ull);

clang/test/CodeGen/target-data.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
// RUN: %clang_cc1 -triple i686-unknown-unknown -emit-llvm -o - %s | \
22
// RUN: FileCheck --check-prefix=I686-UNKNOWN %s
3-
// I686-UNKNOWN: target datalayout = "e-m:e-p:32:32-p270:32:32-p271:32:32-p272:64:64-f64:32:64-f80:32-n8:16:32-S128"
3+
// I686-UNKNOWN: target datalayout = "e-m:e-p:32:32-f64:32:64-f80:32-n8:16:32-S128"
44

55
// RUN: %clang_cc1 -triple i686-apple-darwin9 -emit-llvm -o - %s | \
66
// RUN: FileCheck --check-prefix=I686-DARWIN %s
7-
// I686-DARWIN: target datalayout = "e-m:o-p:32:32-p270:32:32-p271:32:32-p272:64:64-f64:32:64-f80:128-n8:16:32-S128"
7+
// I686-DARWIN: target datalayout = "e-m:o-p:32:32-f64:32:64-f80:128-n8:16:32-S128"
88

99
// RUN: %clang_cc1 -triple i686-unknown-win32 -emit-llvm -o - %s | \
1010
// RUN: FileCheck --check-prefix=I686-WIN32 %s
11-
// I686-WIN32: 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"
11+
// I686-WIN32: target datalayout = "e-m:x-p:32:32-i64:64-f80:32-n8:16:32-a:0:32-S32"
1212

1313
// RUN: %clang_cc1 -triple i686-unknown-cygwin -emit-llvm -o - %s | \
1414
// RUN: FileCheck --check-prefix=I686-CYGWIN %s
15-
// I686-CYGWIN: 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"
15+
// I686-CYGWIN: target datalayout = "e-m:x-p:32:32-i64:64-f80:32-n8:16:32-a:0:32-S32"
1616

1717
// RUN: %clang_cc1 -triple x86_64-unknown-unknown -emit-llvm -o - %s | \
1818
// RUN: FileCheck --check-prefix=X86_64 %s
19-
// 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"
19+
// X86_64: target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
2020

2121
// RUN: %clang_cc1 -triple xcore-unknown-unknown -emit-llvm -o - %s | \
2222
// RUN: FileCheck --check-prefix=XCORE %s
@@ -88,11 +88,11 @@
8888

8989
// RUN: %clang_cc1 -triple i686-nacl -o - -emit-llvm %s | \
9090
// RUN: FileCheck %s -check-prefix=I686-NACL
91-
// I686-NACL: target datalayout = "e-m:e-p:32:32-p270:32:32-p271:32:32-p272:64:64-i64:64-n8:16:32-S128"
91+
// I686-NACL: target datalayout = "e-m:e-p:32:32-i64:64-n8:16:32-S128"
9292

9393
// RUN: %clang_cc1 -triple x86_64-nacl -o - -emit-llvm %s | \
9494
// RUN: FileCheck %s -check-prefix=X86_64-NACL
95-
// X86_64-NACL: target datalayout = "e-m:e-p:32:32-p270:32:32-p271:32:32-p272:64:64-i64:64-n8:16:32:64-S128"
95+
// X86_64-NACL: target datalayout = "e-m:e-p:32:32-i64:64-n8:16:32:64-S128"
9696

9797
// RUN: %clang_cc1 -triple arm-nacl -o - -emit-llvm %s | \
9898
// RUN: FileCheck %s -check-prefix=ARM-NACL

clang/test/CodeGen/thinlto-diagnostic-handler-remarks-with-hotness.ll

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

3333
; CHECK: tinkywinky inlined into main with (cost=0, threshold=337) (hotness: 300)
3434

35-
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
35+
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
3636
target triple = "x86_64-scei-ps4"
3737

3838
declare i32 @patatino()

clang/test/CodeGen/thinlto-distributed-backend-skip.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
; RUN: -fthinlto-index=%S/Inputs/thinlto-distributed-backend-skip.bc \
1010
; RUN: -emit-llvm -o - -x ir %t.o | FileCheck %s
1111

12-
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
12+
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
1313
target triple = "x86_64-grtev4-linux-gnu"
1414

1515
; CHECK: "empty"

clang/test/CodeGen/thinlto-distributed-cfi-devirt.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
; RUN: -emit-obj -fthinlto-index=%t.o.thinlto.bc -O2 \
4848
; RUN: -o %t.native.o -x ir %t.o
4949

50-
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
50+
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
5151
target triple = "x86_64-grtev4-linux-gnu"
5252

5353
%struct.A = type { i32 (...)** }

clang/test/CodeGen/thinlto-distributed-cfi.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
; RUN: -emit-obj -fthinlto-index=%t.o.thinlto.bc \
3737
; RUN: -o %t.native.o -x ir %t.o
3838

39-
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
39+
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
4040
target triple = "x86_64-grtev4-linux-gnu"
4141

4242
%struct.B = type { %struct.A }

clang/test/CodeGen/thinlto-distributed.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
; RUN: -emit-obj -fthinlto-index=%t.o.thinlto.bc \
1313
; RUN: -o %t.native.o -x ir %t.o
1414

15-
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
15+
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
1616
target triple = "x86_64-grtev4-linux-gnu"
1717

1818
define i32 @main() {

clang/test/CodeGen/thinlto-multi-module.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
; CHECK-OBJ: T f1
1212
; CHECK-OBJ: U f2
1313

14-
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
14+
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
1515
target triple = "x86_64-unknown-linux-gnu"
1616

1717
declare void @f2()

clang/test/CodeGen/thinlto_backend.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
; RUN: %clang -target x86_64-unknown-linux-gnu -O2 -o %t3.o -x ir %t1.o -c -fthinlto-index=%t.thinlto.bc 2>&1 | FileCheck %s -check-prefix=CHECK-ERROR2
4848
; CHECK-ERROR2: Error loading imported file '{{.*}}': Could not find module summary
4949

50-
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
50+
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
5151
target triple = "x86_64-unknown-linux-gnu"
5252

5353
declare void @f2()

clang/test/CodeGen/thinlto_backend_local_name_conflict.ll

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

2222
; ModuleID = 'local_name_conflict_var_main.o'
2323
source_filename = "local_name_conflict_var_main.c"
24-
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
24+
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
2525
target triple = "x86_64-unknown-linux-gnu"
2626

2727
; Function Attrs: noinline nounwind uwtable

lld/test/COFF/Inputs/bar.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
1+
target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
22
target triple = "x86_64-pc-windows-msvc"
33

44
define void @bar() {

lld/test/COFF/Inputs/conflict.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
1+
target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
22
target triple = "x86_64-pc-windows-msvc"
33

44
define void @foo() {

lld/test/COFF/Inputs/constant-export.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
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"
1+
target datalayout = "e-m:x-p:32:32-i64:64-f80:32-n8:16:32-a:0:32-S32"
22
target triple = "i686-unknown-windows-msvc18.0.0"
33

44
@__CFConstantStringClassReference = common global [32 x i32] zeroinitializer, align 4

lld/test/COFF/Inputs/entry-mangled.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
1+
target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
22
target triple = "x86_64-pc-windows-msvc18.0.0"
33

44
define void @"\01?main@@YAHXZ"() {

lld/test/COFF/Inputs/export.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
1+
target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
22
target triple = "x86_64-pc-windows-msvc"
33

44
define void @_DllMainCRTStartup() {

lld/test/COFF/Inputs/libcall-archive.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
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"
1+
target datalayout = "e-m:x-p:32:32-i64:64-f80:32-n8:16:32-a:0:32-S32"
22
target triple = "i686-unknown-windows"
33

44
define void @memcpy() {

lld/test/COFF/Inputs/lto-cache.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
1+
target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
22
target triple = "x86_64-pc-windows-msvc"
33

44
define i32 @main() {

lld/test/COFF/Inputs/lto-comdat1.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
1+
target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
22
target triple = "x86_64-pc-windows-msvc"
33

44
$comdat = comdat any

lld/test/COFF/Inputs/lto-comdat2.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
1+
target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
22
target triple = "x86_64-pc-windows-msvc"
33

44
$comdat = comdat any

lld/test/COFF/Inputs/lto-dep.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
1+
target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
22
target triple = "x86_64-pc-windows-msvc"
33

44
define void @foo() {

lld/test/COFF/Inputs/lto-lazy-reference-dummy.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
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"
1+
target datalayout = "e-m:x-p:32:32-i64:64-f80:32-n8:16:32-a:0:32-S32"
22
target triple = "i686-pc-windows-msvc18.0.0"
33

44
define void @dummy() {

lld/test/COFF/Inputs/lto-lazy-reference-quadruple.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
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"
1+
target datalayout = "e-m:x-p:32:32-i64:64-f80:32-n8:16:32-a:0:32-S32"
22
target triple = "i686-pc-windows-msvc18.0.0"
33

44
define double @quadruple(double %x) {

lld/test/COFF/Inputs/msvclto-order-a.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
1+
target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
22
target triple = "x86_64-pc-windows-msvc"
33

44
define void @foo() {

lld/test/COFF/Inputs/msvclto-order-b.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
1+
target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
22
target triple = "x86_64-pc-windows-msvc"
33

44
declare void @doesntexist()

lld/test/COFF/Inputs/thinlto-empty.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
1+
target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
22
target triple = "x86_64-pc-windows-msvc19.0.24215"

lld/test/COFF/Inputs/thinlto-mangled-qux.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
1+
target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
22
target triple = "x86_64-pc-windows-msvc19.0.24215"
33

44
%class.baz = type { %class.bar }

lld/test/COFF/Inputs/thinlto.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
1+
target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
22
target triple = "x86_64-pc-windows-msvc19.0.24215"
33

44
define void @g() {

lld/test/COFF/Inputs/undefined-symbol-lto-a.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
; ModuleID = 't.obj'
22
source_filename = "t.cpp"
3-
target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
3+
target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
44
target triple = "x86_64-pc-windows-msvc19.21.27702"
55

66
%struct.Init = type { %struct.S }

lld/test/COFF/Inputs/undefined-symbol-lto-b.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
; ModuleID = 'b.obj'
22
source_filename = "b.cpp"
3-
target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
3+
target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
44
target triple = "x86_64-pc-windows-msvc19.21.27702"
55

66
%struct.S = type { i32 (...)** }

lld/test/COFF/Inputs/weak-external.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
1+
target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
22
target triple = "x86_64-pc-windows-msvc"
33

44
define void @g() {

lld/test/COFF/Inputs/weak-external2.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
1+
target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
22
target triple = "x86_64-pc-windows-msvc"
33

44
define void @f() {

lld/test/COFF/Inputs/weak-external3.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
1+
target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
22
target triple = "x86_64-pc-windows-msvc"
33

44
@f = weak alias void(), void()* @g

lld/test/COFF/entrylib.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
; RUN: llvm-ar cru %t.lib %t.obj
55
; RUN: lld-link /out:%t.exe /entry:main %t.lib
66

7-
target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
7+
target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
88
target triple = "x86_64-pc-windows-msvc"
99

1010
define i32 @main() {

lld/test/COFF/guardcf-lto.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
; CHECK-NEXT: 0x180{{.*}}
2424
; CHECK-NEXT: ]
2525

26-
target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
26+
target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
2727
target triple = "x86_64-pc-windows-msvc19.12.25835"
2828

2929
declare dllimport void @do_indirect_call(void ()*)

0 commit comments

Comments
 (0)