Skip to content

Commit 91955c7

Browse files
[𝘀𝗽𝗿] initial version
Created using spr 1.3.6
2 parents 3ed91d8 + 1a911aa commit 91955c7

21 files changed

+114
-68
lines changed

lld/test/COFF/color-diagnostics.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Windows command prompt doesn't support ANSI escape sequences.
2-
# REQUIRES: shell
2+
# UNSUPPORTED: system-windows
33

44
# RUN: not lld-link -xyz --color-diagnostics /nosuchfile 2>&1 \
55
# RUN: | FileCheck -check-prefix=COLOR %s

lld/test/COFF/linkrepro-res.test

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
# REQUIRES: x86, shell
1+
# REQUIRES: x86
2+
# Unsupported on Windows due to maximum path length limitations.
3+
# UNSUPPORTED: system-windows
24

35
# RUN: rm -rf %t.dir
46
# RUN: mkdir -p %t.dir/build

lld/test/COFF/linkrepro.test

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
# REQUIRES: x86, shell
1+
# REQUIRES: x86
2+
# Unsupported on Windows due to maximum path length limitations.
3+
# UNSUPPORTED: system-windows
24

35
# RUN: rm -rf %t.dir
46
# RUN: split-file %s %t.dir

lld/test/ELF/arm-exidx-range.s

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
// REQUIRES: arm, shell
1+
// REQUIRES: arm
2+
// Fails for unclear reasons on 32-bit windows
3+
// UNSUPPORTED: system-windows
24
// RUN: llvm-mc --arm-add-build-attributes --triple=armv7a-linux-gnueabihf -filetype=obj %s -o %t.o
35
// RUN: echo "SECTIONS { \
46
// RUN: . = 0x80000000; \

lld/test/ELF/color-diagnostics.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Windows command prompt doesn't support ANSI escape sequences.
2-
# REQUIRES: shell
2+
# UNSUPPORTED: system-windows
33

44
# RUN: not ld.lld -xyz --color-diagnostics /nosuchfile 2>&1 \
55
# RUN: | FileCheck -check-prefix=COLOR %s

lld/test/ELF/file-access.s

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# REQUIRES: x86, shell
1+
# REQUIRES: x86
2+
# UNSUPPORTED: system-windows
23

34
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
45
# RUN: ld.lld -r %t.o -o %t1.o

lld/test/ELF/linkerscript/invalid.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
## We can't write quoted strings that are interpreted the same way
66
## by all echo commands. So, we don't want to run this on Windows.
77

8-
# REQUIRES: shell
8+
# UNSUPPORTED: system-windows
99

1010
# RUN: mkdir -p %t.dir
1111

lld/test/ELF/lto/comdat-nodeduplicate.ll

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; REQUIRES: x86, shell
1+
; REQUIRES: x86
22

33
;; Keep __profd_foo in a nodeduplicate comdat, despite a comdat of the same name
44
;; in a previous object file.
@@ -36,19 +36,25 @@
3636

3737
; RUN: ld.lld --thinlto-index-only --save-temps -u foo %t/a.bc %t/b.bc -o %t/ab
3838
; RUN: FileCheck %s --check-prefix=RESOL_AB < %t/ab.resolution.txt
39-
; RUN: (llvm-dis < %t/b.bc && llvm-dis < %t/b.bc.thinlto.bc) | FileCheck %s --check-prefix=IR_AB
39+
; RUN: llvm-dis < %t/b.bc > %t.out
40+
; RUN: llvm-dis < %t/b.bc.thinlto.bc >> %t.out
41+
; RUN: FileCheck %s --check-prefix=IR_AB --input-file %t.out
4042
; RUN: ld.lld -u foo %t/a.bc %t/b.bc -o %t/ab
4143
; RUN: llvm-readelf -x .data %t/ab | FileCheck %s --check-prefix=DATA
4244

4345
; RUN: ld.lld --thinlto-index-only --save-temps -u foo %t/a.bc --start-lib %t/b.bc --end-lib -o %t/ab
4446
; RUN: FileCheck %s --check-prefix=RESOL_AB < %t/ab.resolution.txt
45-
; RUN: (llvm-dis < %t/b.bc && llvm-dis < %t/b.bc.thinlto.bc) | FileCheck %s --check-prefix=IR_AB
47+
; RUN: llvm-dis < %t/b.bc > %t.out
48+
; RUN: llvm-dis < %t/b.bc.thinlto.bc >> %t.out
49+
; RUN: FileCheck %s --check-prefix=IR_AB --input-file %t.out
4650
; RUN: ld.lld -u foo %t/a.bc --start-lib %t/b.bc --end-lib -o %t/ab
4751
; RUN: llvm-readelf -x .data %t/ab | FileCheck %s --check-prefix=DATA
4852

4953
; RUN: ld.lld --thinlto-index-only --save-temps -u foo -u c %t/a.bc --start-lib %t/b.bc %t/c.bc --end-lib -o %t/abc
5054
; RUN: FileCheck %s --check-prefix=RESOL_ABC < %t/abc.resolution.txt
51-
; RUN: (llvm-dis < %t/b.bc && llvm-dis < %t/b.bc.thinlto.bc) | FileCheck %s --check-prefix=IR_ABC
55+
; RUN: llvm-dis < %t/b.bc > %t.out
56+
; RUN: llvm-dis < %t/b.bc.thinlto.bc >> %t.out
57+
; RUN: FileCheck %s --check-prefix=IR_ABC --input-file %t.out
5258
; RUN: ld.lld -u foo %t/a.bc --start-lib %t/b.bc %t/c.bc --end-lib -o %t/abc
5359
; RUN: llvm-readelf -x .data %t/abc | FileCheck %s --check-prefix=DATA
5460

lld/test/ELF/lto/resolution-err.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; UNSUPPORTED: system-windows
2-
; REQUIRES: shell, non-root-user
2+
; REQUIRES: non-root-user
33
; RUN: llvm-as %s -o %t.bc
44
; RUN: touch %t.resolution.txt
55
; RUN: chmod u-w %t.resolution.txt

lld/test/MachO/cgdata-generate-merge.s

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,15 @@
55

66
# Synthesize raw cgdata without the header (32 byte) from the indexed cgdata.
77
# RUN: llvm-cgdata --convert --format binary %t/raw-1.cgtext -o %t/raw-1.cgdata
8-
# RUN: od -t x1 -j 32 -An %t/raw-1.cgdata | tr -d '\n\r\t' | sed 's/[ ][ ]*/ /g; s/^[ ]*//; s/[ ]*$//; s/[ ]/,0x/g; s/^/0x/' > %t/raw-1-bytes.txt
9-
# RUN: sed "s/<RAW_BYTES>/$(cat %t/raw-1-bytes.txt)/g" %t/merge-template.s > %t/merge-1.s
8+
# RUN: echo -n "s/<RAW_BYTES>/" > %t/raw-1-sed.txt
9+
# RUN: od -t x1 -j 32 -An %t/raw-1.cgdata | tr -d '\n\r\t' | sed 's/[ ][ ]*/ /g; s/^[ ]*//; s/[ ]*$//; s/[ ]/,0x/g; s/^/0x/' >> %t/raw-1-sed.txt
10+
# RUN: echo "/g" >> %t/raw-1-sed.txt
11+
# RUN: sed -f %t/raw-1-sed.txt %t/merge-template.s > %t/merge-1.s
1012
# RUN: llvm-cgdata --convert --format binary %t/raw-2.cgtext -o %t/raw-2.cgdata
11-
# RUN: od -t x1 -j 32 -An %t/raw-2.cgdata | tr -d '\n\r\t' | sed 's/[ ][ ]*/ /g; s/^[ ]*//; s/[ ]*$//; s/[ ]/,0x/g; s/^/0x/' > %t/raw-2-bytes.txt
12-
# RUN: sed "s/<RAW_BYTES>/$(cat %t/raw-2-bytes.txt)/g" %t/merge-template.s > %t/merge-2.s
13+
# RUN: echo -n "s/<RAW_BYTES>/" > %t/raw-2-sed.txt
14+
# RUN: od -t x1 -j 32 -An %t/raw-2.cgdata | tr -d '\n\r\t' | sed 's/[ ][ ]*/ /g; s/^[ ]*//; s/[ ]*$//; s/[ ]/,0x/g; s/^/0x/' >> %t/raw-2-sed.txt
15+
# RUN: echo "/g" >> %t/raw-2-sed.txt
16+
# RUN: sed -f %t/raw-2-sed.txt %t/merge-template.s > %t/merge-2.s
1317

1418
# RUN: llvm-mc -filetype obj -triple arm64-apple-darwin %t/merge-1.s -o %t/merge-1.o
1519
# RUN: llvm-mc -filetype obj -triple arm64-apple-darwin %t/merge-2.s -o %t/merge-2.o

0 commit comments

Comments
 (0)