Skip to content

Commit a657440

Browse files
committed
[tools,test] Convert text files from CRLF to LF
1 parent d53425e commit a657440

File tree

16 files changed

+662
-662
lines changed

16 files changed

+662
-662
lines changed

llvm/test/tools/dxil-dis/shuffle.ll

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
1-
; RUN: llc --filetype=obj %s -o - 2>&1 | dxil-dis -o - | FileCheck %s
2-
target datalayout = "e-m:e-p:32:32-i1:32-i8:8-i16:16-i32:32-i64:64-f16:16-f32:32-f64:64-n8:16:32:64"
3-
target triple = "dxil-unknown-shadermodel6.7-library"
4-
5-
; Make sure alloca is the same.
6-
; CHECK:alloca <2 x float>, align 8
7-
; Make sure shufflevector works for DXIL bitcode writer.
8-
; CHECK:shufflevector <2 x float> %{{.*}}, <2 x float> undef, <2 x i32> <i32 1, i32 0>
9-
10-
; Function Attrs: noinline nounwind optnone
11-
define noundef <2 x float> @foo(<2 x float> noundef %a) #0 {
12-
entry:
13-
%a.addr = alloca <2 x float>, align 8
14-
store <2 x float> %a, ptr %a.addr, align 8
15-
%0 = load <2 x float>, ptr %a.addr, align 8
16-
%1 = shufflevector <2 x float> %0, <2 x float> poison, <2 x i32> <i32 1, i32 0>
17-
ret <2 x float> %1
18-
}
19-
20-
attributes #0 = { noinline nounwind optnone "frame-pointer"="all" "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" }
21-
22-
!llvm.module.flags = !{!0, !1, !3}
23-
24-
!0 = !{i32 1, !"wchar_size", i32 4}
25-
!1 = !{i32 6, !"dx.valver", !2}
26-
!2 = !{i32 1, i32 7}
27-
!3 = !{i32 7, !"frame-pointer", i32 2}
1+
; RUN: llc --filetype=obj %s -o - 2>&1 | dxil-dis -o - | FileCheck %s
2+
target datalayout = "e-m:e-p:32:32-i1:32-i8:8-i16:16-i32:32-i64:64-f16:16-f32:32-f64:64-n8:16:32:64"
3+
target triple = "dxil-unknown-shadermodel6.7-library"
4+
5+
; Make sure alloca is the same.
6+
; CHECK:alloca <2 x float>, align 8
7+
; Make sure shufflevector works for DXIL bitcode writer.
8+
; CHECK:shufflevector <2 x float> %{{.*}}, <2 x float> undef, <2 x i32> <i32 1, i32 0>
9+
10+
; Function Attrs: noinline nounwind optnone
11+
define noundef <2 x float> @foo(<2 x float> noundef %a) #0 {
12+
entry:
13+
%a.addr = alloca <2 x float>, align 8
14+
store <2 x float> %a, ptr %a.addr, align 8
15+
%0 = load <2 x float>, ptr %a.addr, align 8
16+
%1 = shufflevector <2 x float> %0, <2 x float> poison, <2 x i32> <i32 1, i32 0>
17+
ret <2 x float> %1
18+
}
19+
20+
attributes #0 = { noinline nounwind optnone "frame-pointer"="all" "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" }
21+
22+
!llvm.module.flags = !{!0, !1, !3}
23+
24+
!0 = !{i32 1, !"wchar_size", i32 4}
25+
!1 = !{i32 6, !"dx.valver", !2}
26+
!2 = !{i32 1, i32 7}
27+
!3 = !{i32 7, !"frame-pointer", i32 2}
Lines changed: 67 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,67 @@
1-
# RUN: yaml2obj %s -o %t.o
2-
# RUN: llvm-dwarfdump --debug-info=0x00000020 -p -parent-recurse-depth 0 %t.o | FileCheck %s --check-prefixes=COMMON,ALL
3-
# RUN: llvm-dwarfdump --debug-info=0x00000020 -p -parent-recurse-depth 1 %t.o | FileCheck %s --check-prefixes=COMMON,ONE
4-
# RUN: llvm-dwarfdump --debug-info=0x00000020 -p -parent-recurse-depth 2 %t.o | FileCheck %s --check-prefixes=COMMON,TWO
5-
# RUN: llvm-dwarfdump --debug-info=0x00000020 -p -parent-recurse-depth 3 %t.o | FileCheck %s --check-prefixes=COMMON,ALL
6-
7-
# COMMON: .o: file format
8-
9-
# ALL: by_hand
10-
# ALL: main
11-
# ALL: test
12-
# ALL: int
13-
14-
# ONE-NOT: by_hand
15-
# ONE-NOT: main
16-
# ONE: test
17-
# ONE: int
18-
19-
# TWO-NOT: by_hand
20-
# TWO: main
21-
# TWO: test
22-
# TWO: int
23-
24-
--- !ELF
25-
FileHeader:
26-
Class: ELFCLASS64
27-
Data: ELFDATA2LSB
28-
Type: ET_EXEC
29-
Machine: EM_X86_64
30-
DWARF:
31-
debug_abbrev:
32-
- Table:
33-
- Tag: DW_TAG_compile_unit
34-
Children: DW_CHILDREN_yes
35-
Attributes:
36-
- Attribute: DW_AT_producer
37-
Form: DW_FORM_string
38-
- Tag: DW_TAG_subprogram
39-
Children: DW_CHILDREN_yes
40-
Attributes:
41-
- Attribute: DW_AT_name
42-
Form: DW_FORM_string
43-
- Tag: DW_TAG_namespace
44-
Children: DW_CHILDREN_yes
45-
Attributes:
46-
- Attribute: DW_AT_name
47-
Form: DW_FORM_string
48-
- Tag: DW_TAG_base_type
49-
Children: DW_CHILDREN_no
50-
Attributes:
51-
- Attribute: DW_AT_name
52-
Form: DW_FORM_string
53-
debug_info:
54-
- Version: 4
55-
Entries:
56-
- AbbrCode: 1
57-
Values:
58-
- CStr: by_hand
59-
- AbbrCode: 2
60-
Values:
61-
- CStr: main
62-
- AbbrCode: 3
63-
Values:
64-
- CStr: test
65-
- AbbrCode: 4
66-
Values:
67-
- CStr: int
1+
# RUN: yaml2obj %s -o %t.o
2+
# RUN: llvm-dwarfdump --debug-info=0x00000020 -p -parent-recurse-depth 0 %t.o | FileCheck %s --check-prefixes=COMMON,ALL
3+
# RUN: llvm-dwarfdump --debug-info=0x00000020 -p -parent-recurse-depth 1 %t.o | FileCheck %s --check-prefixes=COMMON,ONE
4+
# RUN: llvm-dwarfdump --debug-info=0x00000020 -p -parent-recurse-depth 2 %t.o | FileCheck %s --check-prefixes=COMMON,TWO
5+
# RUN: llvm-dwarfdump --debug-info=0x00000020 -p -parent-recurse-depth 3 %t.o | FileCheck %s --check-prefixes=COMMON,ALL
6+
7+
# COMMON: .o: file format
8+
9+
# ALL: by_hand
10+
# ALL: main
11+
# ALL: test
12+
# ALL: int
13+
14+
# ONE-NOT: by_hand
15+
# ONE-NOT: main
16+
# ONE: test
17+
# ONE: int
18+
19+
# TWO-NOT: by_hand
20+
# TWO: main
21+
# TWO: test
22+
# TWO: int
23+
24+
--- !ELF
25+
FileHeader:
26+
Class: ELFCLASS64
27+
Data: ELFDATA2LSB
28+
Type: ET_EXEC
29+
Machine: EM_X86_64
30+
DWARF:
31+
debug_abbrev:
32+
- Table:
33+
- Tag: DW_TAG_compile_unit
34+
Children: DW_CHILDREN_yes
35+
Attributes:
36+
- Attribute: DW_AT_producer
37+
Form: DW_FORM_string
38+
- Tag: DW_TAG_subprogram
39+
Children: DW_CHILDREN_yes
40+
Attributes:
41+
- Attribute: DW_AT_name
42+
Form: DW_FORM_string
43+
- Tag: DW_TAG_namespace
44+
Children: DW_CHILDREN_yes
45+
Attributes:
46+
- Attribute: DW_AT_name
47+
Form: DW_FORM_string
48+
- Tag: DW_TAG_base_type
49+
Children: DW_CHILDREN_no
50+
Attributes:
51+
- Attribute: DW_AT_name
52+
Form: DW_FORM_string
53+
debug_info:
54+
- Version: 4
55+
Entries:
56+
- AbbrCode: 1
57+
Values:
58+
- CStr: by_hand
59+
- AbbrCode: 2
60+
Values:
61+
- CStr: main
62+
- AbbrCode: 3
63+
Values:
64+
- CStr: test
65+
- AbbrCode: 4
66+
Values:
67+
- CStr: int
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# RUN: llvm-mc %S/brief.s -filetype obj -triple x86_64-apple-darwin -o %t.o
2-
# RUN: llvm-dwarfdump --verify %t.o | FileCheck %s
3-
# RUN: llvm-dwarfdump --verify --quiet %t.o | FileCheck %s --check-prefix=QUIET --allow-empty
4-
5-
# RUN: llvm-mc %S/empty-CU.s -filetype obj -triple x86_64-apple-darwin -o %t-error.o
6-
# RUN: not llvm-dwarfdump --verify %t-error.o | FileCheck %s
7-
# RUN: not llvm-dwarfdump --verify --quiet %t-error.o | FileCheck %s --check-prefix=QUIET --allow-empty
8-
9-
# CHECK: {{.}}
10-
# QUIET-NOT: {{.}}
1+
# RUN: llvm-mc %S/brief.s -filetype obj -triple x86_64-apple-darwin -o %t.o
2+
# RUN: llvm-dwarfdump --verify %t.o | FileCheck %s
3+
# RUN: llvm-dwarfdump --verify --quiet %t.o | FileCheck %s --check-prefix=QUIET --allow-empty
4+
5+
# RUN: llvm-mc %S/empty-CU.s -filetype obj -triple x86_64-apple-darwin -o %t-error.o
6+
# RUN: not llvm-dwarfdump --verify %t-error.o | FileCheck %s
7+
# RUN: not llvm-dwarfdump --verify --quiet %t-error.o | FileCheck %s --check-prefix=QUIET --allow-empty
8+
9+
# CHECK: {{.}}
10+
# QUIET-NOT: {{.}}
Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
1-
# RUN: yaml2obj %s -o %t
2-
# RUN: llvm-objcopy -R .got.plt %t %t2
3-
4-
## .rela.plt is a dynamic relocation section that has a connection
5-
## via sh_info field with its target section .got.plt.
6-
## Here we check that if the target section is removed then dynamic
7-
## relocation section is also removed and we do not end up with a broken
8-
## sh_info value, for example.
9-
10-
# RUN: llvm-readelf --sections %t2 \
11-
# RUN: | FileCheck %s --implicit-check-not=".got.plt" --implicit-check-not=".rela.plt"
12-
13-
--- !ELF
14-
FileHeader:
15-
Class: ELFCLASS64
16-
Data: ELFDATA2LSB
17-
Type: ET_DYN
18-
Machine: EM_X86_64
19-
Sections:
20-
- Name: .rela.plt
21-
Type: SHT_RELA
22-
Flags: [ SHF_ALLOC ]
23-
Link: .dynsym
24-
Info: .got.plt
25-
- Name: .got.plt
26-
Type: SHT_PROGBITS
27-
Flags: [ SHF_WRITE, SHF_ALLOC ]
28-
DynamicSymbols:
29-
- Name: bar
30-
Binding: STB_GLOBAL
1+
# RUN: yaml2obj %s -o %t
2+
# RUN: llvm-objcopy -R .got.plt %t %t2
3+
4+
## .rela.plt is a dynamic relocation section that has a connection
5+
## via sh_info field with its target section .got.plt.
6+
## Here we check that if the target section is removed then dynamic
7+
## relocation section is also removed and we do not end up with a broken
8+
## sh_info value, for example.
9+
10+
# RUN: llvm-readelf --sections %t2 \
11+
# RUN: | FileCheck %s --implicit-check-not=".got.plt" --implicit-check-not=".rela.plt"
12+
13+
--- !ELF
14+
FileHeader:
15+
Class: ELFCLASS64
16+
Data: ELFDATA2LSB
17+
Type: ET_DYN
18+
Machine: EM_X86_64
19+
Sections:
20+
- Name: .rela.plt
21+
Type: SHT_RELA
22+
Flags: [ SHF_ALLOC ]
23+
Link: .dynsym
24+
Info: .got.plt
25+
- Name: .got.plt
26+
Type: SHT_PROGBITS
27+
Flags: [ SHF_WRITE, SHF_ALLOC ]
28+
DynamicSymbols:
29+
- Name: bar
30+
Binding: STB_GLOBAL
Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
1-
# RUN: yaml2obj %s -o %t
2-
3-
## Check we cannot remove the .dynsym symbol table because dynamic
4-
## relocation section .rela.dyn still references it via sh_link field.
5-
# RUN: not llvm-objcopy -R .dynsym %t %t2 2>&1 >/dev/null | FileCheck %s --check-prefix=ERR -DINPUT=%t
6-
# ERR: error: '[[INPUT]]': symbol table '.dynsym' cannot be removed because it is referenced by the relocation section '.rela.dyn'
7-
8-
## Check we can remove .dynsym after removing the reference.
9-
# RUN: llvm-objcopy -R .dynsym -R .rela.dyn %t %t2
10-
# RUN: llvm-readelf --sections %t2 | FileCheck %s --implicit-check-not=".dynsym"
11-
12-
## Check we zero out sh_link field and allow producing output with the --allow-broken-links switch.
13-
# RUN: llvm-objcopy -R .dynsym --allow-broken-links %t %t2
14-
# RUN: llvm-readelf --sections %t2 | FileCheck %s --check-prefix=DROP-LINK
15-
# DROP-LINK: [Nr] Name Type Address Off Size ES Flg L
16-
# DROP-LINK: [ 1] .rela.dyn RELA 0000000000000270 000040 000000 18 A 0
17-
# DROP-LINK-NOT: .dynsym
18-
19-
!ELF
20-
FileHeader:
21-
Class: ELFCLASS64
22-
Data: ELFDATA2LSB
23-
Type: ET_DYN
24-
Machine: EM_X86_64
25-
Sections:
26-
- Name: .rela.dyn
27-
Type: SHT_RELA
28-
Flags: [ SHF_ALLOC ]
29-
Address: 0x0000000000000270
30-
Link: .dynsym
31-
EntSize: 0x0000000000000018
32-
DynamicSymbols:
33-
- Name: bar
34-
Binding: STB_GLOBAL
1+
# RUN: yaml2obj %s -o %t
2+
3+
## Check we cannot remove the .dynsym symbol table because dynamic
4+
## relocation section .rela.dyn still references it via sh_link field.
5+
# RUN: not llvm-objcopy -R .dynsym %t %t2 2>&1 >/dev/null | FileCheck %s --check-prefix=ERR -DINPUT=%t
6+
# ERR: error: '[[INPUT]]': symbol table '.dynsym' cannot be removed because it is referenced by the relocation section '.rela.dyn'
7+
8+
## Check we can remove .dynsym after removing the reference.
9+
# RUN: llvm-objcopy -R .dynsym -R .rela.dyn %t %t2
10+
# RUN: llvm-readelf --sections %t2 | FileCheck %s --implicit-check-not=".dynsym"
11+
12+
## Check we zero out sh_link field and allow producing output with the --allow-broken-links switch.
13+
# RUN: llvm-objcopy -R .dynsym --allow-broken-links %t %t2
14+
# RUN: llvm-readelf --sections %t2 | FileCheck %s --check-prefix=DROP-LINK
15+
# DROP-LINK: [Nr] Name Type Address Off Size ES Flg L
16+
# DROP-LINK: [ 1] .rela.dyn RELA 0000000000000270 000040 000000 18 A 0
17+
# DROP-LINK-NOT: .dynsym
18+
19+
!ELF
20+
FileHeader:
21+
Class: ELFCLASS64
22+
Data: ELFDATA2LSB
23+
Type: ET_DYN
24+
Machine: EM_X86_64
25+
Sections:
26+
- Name: .rela.dyn
27+
Type: SHT_RELA
28+
Flags: [ SHF_ALLOC ]
29+
Address: 0x0000000000000270
30+
Link: .dynsym
31+
EntSize: 0x0000000000000018
32+
DynamicSymbols:
33+
- Name: bar
34+
Binding: STB_GLOBAL

0 commit comments

Comments
 (0)