Skip to content

Commit b9ae06b

Browse files
committed
[test] Convert text files from CRLF to LF
Skip *.pdb, *.rc, *crlf*, and FileCheck/dos-style-eol.txt
1 parent 2265df9 commit b9ae06b

23 files changed

+2207
-2207
lines changed
Lines changed: 47 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,47 @@
1-
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2-
; RUN: opt -disable-output -passes=print-mustexecute %s 2>&1 | FileCheck %s
3-
; RUN: opt -disable-output -passes=print-mustexecute %s 2>&1 | FileCheck %s
4-
5-
; In general the CFG below is easily simplified but this is useful for
6-
; pass ordering issue elimination.
7-
define i1 @const_cond(i32 %high) {
8-
; CHECK-LABEL: @const_cond(
9-
; CHECK-NEXT: entry:
10-
; CHECK-NEXT: br label [[LOOP:%.*]]
11-
; CHECK: loop:
12-
; CHECK-NEXT: [[IV:%.*]] = phi i32 [ 0, [[ENTRY:%.*]] ], [ [[IV_NEXT:%.*]], [[BACKEDGE:%.*]] ] ; (mustexec in: loop)
13-
; CHECK-NEXT: br i1 true, label [[NEXT:%.*]], label [[NEVER1:%.*]] ; (mustexec in: loop)
14-
; CHECK: next:
15-
; CHECK-NEXT: br i1 false, label [[NEVER2:%.*]], label [[BACKEDGE]] ; (mustexec in: loop)
16-
; CHECK: backedge:
17-
; CHECK-NEXT: [[IV_NEXT]] = add nuw nsw i32 [[IV]], 1 ; (mustexec in: loop)
18-
; CHECK-NEXT: [[EXIT_TEST:%.*]] = icmp slt i32 [[IV]], [[HIGH:%.*]] ; (mustexec in: loop)
19-
; CHECK-NEXT: br i1 [[EXIT_TEST]], label [[LOOP]], label [[EXIT:%.*]] ; (mustexec in: loop)
20-
; CHECK: exit:
21-
; CHECK-NEXT: ret i1 false
22-
; CHECK: never1:
23-
; CHECK-NEXT: unreachable
24-
; CHECK: never2:
25-
; CHECK-NEXT: unreachable
26-
;
27-
entry:
28-
br label %loop
29-
30-
loop:
31-
%iv = phi i32 [0, %entry], [%iv.next, %backedge]
32-
br i1 true, label %next, label %never1
33-
next:
34-
br i1 false, label %never2, label %backedge
35-
backedge:
36-
%iv.next = add nsw nuw i32 %iv, 1
37-
%exit.test = icmp slt i32 %iv, %high
38-
br i1 %exit.test, label %loop, label %exit
39-
40-
exit:
41-
ret i1 false
42-
never1:
43-
unreachable
44-
never2:
45-
unreachable
46-
}
47-
1+
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2+
; RUN: opt -disable-output -passes=print-mustexecute %s 2>&1 | FileCheck %s
3+
; RUN: opt -disable-output -passes=print-mustexecute %s 2>&1 | FileCheck %s
4+
5+
; In general the CFG below is easily simplified but this is useful for
6+
; pass ordering issue elimination.
7+
define i1 @const_cond(i32 %high) {
8+
; CHECK-LABEL: @const_cond(
9+
; CHECK-NEXT: entry:
10+
; CHECK-NEXT: br label [[LOOP:%.*]]
11+
; CHECK: loop:
12+
; CHECK-NEXT: [[IV:%.*]] = phi i32 [ 0, [[ENTRY:%.*]] ], [ [[IV_NEXT:%.*]], [[BACKEDGE:%.*]] ] ; (mustexec in: loop)
13+
; CHECK-NEXT: br i1 true, label [[NEXT:%.*]], label [[NEVER1:%.*]] ; (mustexec in: loop)
14+
; CHECK: next:
15+
; CHECK-NEXT: br i1 false, label [[NEVER2:%.*]], label [[BACKEDGE]] ; (mustexec in: loop)
16+
; CHECK: backedge:
17+
; CHECK-NEXT: [[IV_NEXT]] = add nuw nsw i32 [[IV]], 1 ; (mustexec in: loop)
18+
; CHECK-NEXT: [[EXIT_TEST:%.*]] = icmp slt i32 [[IV]], [[HIGH:%.*]] ; (mustexec in: loop)
19+
; CHECK-NEXT: br i1 [[EXIT_TEST]], label [[LOOP]], label [[EXIT:%.*]] ; (mustexec in: loop)
20+
; CHECK: exit:
21+
; CHECK-NEXT: ret i1 false
22+
; CHECK: never1:
23+
; CHECK-NEXT: unreachable
24+
; CHECK: never2:
25+
; CHECK-NEXT: unreachable
26+
;
27+
entry:
28+
br label %loop
29+
30+
loop:
31+
%iv = phi i32 [0, %entry], [%iv.next, %backedge]
32+
br i1 true, label %next, label %never1
33+
next:
34+
br i1 false, label %never2, label %backedge
35+
backedge:
36+
%iv.next = add nsw nuw i32 %iv, 1
37+
%exit.test = icmp slt i32 %iv, %high
38+
br i1 %exit.test, label %loop, label %exit
39+
40+
exit:
41+
ret i1 false
42+
never1:
43+
unreachable
44+
never2:
45+
unreachable
46+
}
47+
Lines changed: 64 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,64 @@
1-
# RUN: llc -march=x86-64 -run-pass machineverifier -o - %s | FileCheck %s
2-
# Simple round-trip test for DBG_VALUE_LIST.
3-
# CHECK: [[VAR_C:![0-9]+]] = !DILocalVariable(name: "c"
4-
# CHECK: DBG_VALUE_LIST [[VAR_C]], !DIExpression(DW_OP_LLVM_arg, 0, DW_OP_LLVM_arg, 1, DW_OP_plus, DW_OP_stack_value), $edi, $esi, debug-location
5-
--- |
6-
; ModuleID = 'test.cpp'
7-
source_filename = "test.cpp"
8-
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
9-
target triple = "x86_64-unknown-linux-gnu"
10-
11-
; Function Attrs: norecurse nounwind readnone uwtable
12-
define dso_local i32 @_Z3fooii(i32 %a, i32 %b) local_unnamed_addr !dbg !7 {
13-
entry:
14-
call void @llvm.dbg.value(metadata i32 %a, metadata !12, metadata !DIExpression()), !dbg !15
15-
call void @llvm.dbg.value(metadata i32 %b, metadata !13, metadata !DIExpression()), !dbg !15
16-
call void @llvm.dbg.value(metadata i32 undef, metadata !14, metadata !DIExpression()), !dbg !15
17-
%mul = mul nsw i32 %b, %a, !dbg !16
18-
ret i32 %mul, !dbg !17
19-
}
20-
21-
; Function Attrs: nounwind readnone speculatable willreturn
22-
declare void @llvm.dbg.value(metadata, metadata, metadata)
23-
24-
!llvm.dbg.cu = !{!0}
25-
!llvm.module.flags = !{!3, !4, !5}
26-
!llvm.ident = !{!6}
27-
28-
!0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus_14, file: !1, producer: "clang version 11.0.0", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, splitDebugInlining: false, nameTableKind: None)
29-
!1 = !DIFile(filename: "test.cpp", directory: "/")
30-
!2 = !{}
31-
!3 = !{i32 7, !"Dwarf Version", i32 4}
32-
!4 = !{i32 2, !"Debug Info Version", i32 3}
33-
!5 = !{i32 1, !"wchar_size", i32 4}
34-
!6 = !{!"clang version 11.0.0"}
35-
!7 = distinct !DISubprogram(name: "foo", linkageName: "_Z3fooii", scope: !1, file: !1, line: 2, type: !8, scopeLine: 2, flags: DIFlagPrototyped | DIFlagAllCallsDescribed, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !0, retainedNodes: !11)
36-
!8 = !DISubroutineType(types: !9)
37-
!9 = !{!10, !10, !10}
38-
!10 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)
39-
!11 = !{!12, !13, !14}
40-
!12 = !DILocalVariable(name: "a", arg: 1, scope: !7, file: !1, line: 2, type: !10)
41-
!13 = !DILocalVariable(name: "b", arg: 2, scope: !7, file: !1, line: 2, type: !10)
42-
!14 = !DILocalVariable(name: "c", scope: !7, file: !1, line: 3, type: !10)
43-
!15 = !DILocation(line: 0, scope: !7)
44-
!16 = !DILocation(line: 4, column: 12, scope: !7)
45-
!17 = !DILocation(line: 4, column: 3, scope: !7)
46-
47-
...
48-
---
49-
name: _Z3fooii
50-
body: |
51-
bb.0.entry:
52-
liveins: $edi, $esi
53-
54-
DBG_VALUE $edi, $noreg, !12, !DIExpression(), debug-location !15
55-
DBG_VALUE $esi, $noreg, !13, !DIExpression(), debug-location !15
56-
$eax = MOV32rr $edi
57-
DBG_VALUE_LIST !14, !DIExpression(DW_OP_LLVM_arg, 0, DW_OP_LLVM_arg, 1, DW_OP_plus, DW_OP_stack_value), $edi, $esi, debug-location !15
58-
DBG_VALUE $esi, $noreg, !13, !DIExpression(), debug-location !15
59-
DBG_VALUE $eax, $noreg, !12, !DIExpression(), debug-location !15
60-
renamable $eax = nsw IMUL32rr killed renamable $eax, killed renamable $esi, implicit-def dead $eflags, debug-location !16
61-
RET64 $eax, debug-location !17
62-
63-
...
64-
1+
# RUN: llc -march=x86-64 -run-pass machineverifier -o - %s | FileCheck %s
2+
# Simple round-trip test for DBG_VALUE_LIST.
3+
# CHECK: [[VAR_C:![0-9]+]] = !DILocalVariable(name: "c"
4+
# CHECK: DBG_VALUE_LIST [[VAR_C]], !DIExpression(DW_OP_LLVM_arg, 0, DW_OP_LLVM_arg, 1, DW_OP_plus, DW_OP_stack_value), $edi, $esi, debug-location
5+
--- |
6+
; ModuleID = 'test.cpp'
7+
source_filename = "test.cpp"
8+
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
9+
target triple = "x86_64-unknown-linux-gnu"
10+
11+
; Function Attrs: norecurse nounwind readnone uwtable
12+
define dso_local i32 @_Z3fooii(i32 %a, i32 %b) local_unnamed_addr !dbg !7 {
13+
entry:
14+
call void @llvm.dbg.value(metadata i32 %a, metadata !12, metadata !DIExpression()), !dbg !15
15+
call void @llvm.dbg.value(metadata i32 %b, metadata !13, metadata !DIExpression()), !dbg !15
16+
call void @llvm.dbg.value(metadata i32 undef, metadata !14, metadata !DIExpression()), !dbg !15
17+
%mul = mul nsw i32 %b, %a, !dbg !16
18+
ret i32 %mul, !dbg !17
19+
}
20+
21+
; Function Attrs: nounwind readnone speculatable willreturn
22+
declare void @llvm.dbg.value(metadata, metadata, metadata)
23+
24+
!llvm.dbg.cu = !{!0}
25+
!llvm.module.flags = !{!3, !4, !5}
26+
!llvm.ident = !{!6}
27+
28+
!0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus_14, file: !1, producer: "clang version 11.0.0", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, splitDebugInlining: false, nameTableKind: None)
29+
!1 = !DIFile(filename: "test.cpp", directory: "/")
30+
!2 = !{}
31+
!3 = !{i32 7, !"Dwarf Version", i32 4}
32+
!4 = !{i32 2, !"Debug Info Version", i32 3}
33+
!5 = !{i32 1, !"wchar_size", i32 4}
34+
!6 = !{!"clang version 11.0.0"}
35+
!7 = distinct !DISubprogram(name: "foo", linkageName: "_Z3fooii", scope: !1, file: !1, line: 2, type: !8, scopeLine: 2, flags: DIFlagPrototyped | DIFlagAllCallsDescribed, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !0, retainedNodes: !11)
36+
!8 = !DISubroutineType(types: !9)
37+
!9 = !{!10, !10, !10}
38+
!10 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)
39+
!11 = !{!12, !13, !14}
40+
!12 = !DILocalVariable(name: "a", arg: 1, scope: !7, file: !1, line: 2, type: !10)
41+
!13 = !DILocalVariable(name: "b", arg: 2, scope: !7, file: !1, line: 2, type: !10)
42+
!14 = !DILocalVariable(name: "c", scope: !7, file: !1, line: 3, type: !10)
43+
!15 = !DILocation(line: 0, scope: !7)
44+
!16 = !DILocation(line: 4, column: 12, scope: !7)
45+
!17 = !DILocation(line: 4, column: 3, scope: !7)
46+
47+
...
48+
---
49+
name: _Z3fooii
50+
body: |
51+
bb.0.entry:
52+
liveins: $edi, $esi
53+
54+
DBG_VALUE $edi, $noreg, !12, !DIExpression(), debug-location !15
55+
DBG_VALUE $esi, $noreg, !13, !DIExpression(), debug-location !15
56+
$eax = MOV32rr $edi
57+
DBG_VALUE_LIST !14, !DIExpression(DW_OP_LLVM_arg, 0, DW_OP_LLVM_arg, 1, DW_OP_plus, DW_OP_stack_value), $edi, $esi, debug-location !15
58+
DBG_VALUE $esi, $noreg, !13, !DIExpression(), debug-location !15
59+
DBG_VALUE $eax, $noreg, !12, !DIExpression(), debug-location !15
60+
renamable $eax = nsw IMUL32rr killed renamable $eax, killed renamable $esi, implicit-def dead $eflags, debug-location !16
61+
RET64 $eax, debug-location !17
62+
63+
...
64+
Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,42 @@
1-
; RUN: llc < %s -march=nvptx64 -mcpu=sm_80 -mattr=+ptx71 --enable-unsafe-fp-math | FileCheck --check-prefixes=CHECK %s
2-
; RUN: %if ptxas-11.8 %{ llc < %s -march=nvptx64 -mcpu=sm_80 -mattr=+ptx71 --enable-unsafe-fp-math | %ptxas-verify -arch=sm_80 %}
3-
4-
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128"
5-
6-
declare <2 x bfloat> @llvm.sin.f16(<2 x bfloat> %a) #0
7-
declare <2 x bfloat> @llvm.cos.f16(<2 x bfloat> %a) #0
8-
9-
; CHECK-LABEL: test_sin(
10-
; CHECK: ld.param.b32 [[A:%r[0-9]+]], [test_sin_param_0];
11-
; CHECK: mov.b32 {[[A0:%rs[0-9]+]], [[A1:%rs[0-9]+]]}, [[A]]
12-
; CHECK-DAG: cvt.f32.bf16 [[AF0:%f[0-9]+]], [[A0]];
13-
; CHECK-DAG: cvt.f32.bf16 [[AF1:%f[0-9]+]], [[A1]];
14-
; CHECK-DAG: sin.approx.f32 [[RF0:%f[0-9]+]], [[AF0]];
15-
; CHECK-DAG: sin.approx.f32 [[RF1:%f[0-9]+]], [[AF1]];
16-
; CHECK-DAG: cvt.rn.bf16.f32 [[R0:%rs[0-9]+]], [[RF0]];
17-
; CHECK-DAG: cvt.rn.bf16.f32 [[R1:%rs[0-9]+]], [[RF1]];
18-
; CHECK: mov.b32 [[R:%r[0-9]+]], {[[R0]], [[R1]]}
19-
; CHECK: st.param.b32 [func_retval0+0], [[R]];
20-
; CHECK: ret;
21-
define <2 x bfloat> @test_sin(<2 x bfloat> %a) #0 #1 {
22-
%r = call <2 x bfloat> @llvm.sin.f16(<2 x bfloat> %a)
23-
ret <2 x bfloat> %r
24-
}
25-
26-
; CHECK-LABEL: test_cos(
27-
; CHECK: ld.param.b32 [[A:%r[0-9]+]], [test_cos_param_0];
28-
; CHECK: mov.b32 {[[A0:%rs[0-9]+]], [[A1:%rs[0-9]+]]}, [[A]]
29-
; CHECK-DAG: cvt.f32.bf16 [[AF0:%f[0-9]+]], [[A0]];
30-
; CHECK-DAG: cvt.f32.bf16 [[AF1:%f[0-9]+]], [[A1]];
31-
; CHECK-DAG: cos.approx.f32 [[RF0:%f[0-9]+]], [[AF0]];
32-
; CHECK-DAG: cos.approx.f32 [[RF1:%f[0-9]+]], [[AF1]];
33-
; CHECK-DAG: cvt.rn.bf16.f32 [[R0:%rs[0-9]+]], [[RF0]];
34-
; CHECK-DAG: cvt.rn.bf16.f32 [[R1:%rs[0-9]+]], [[RF1]];
35-
; CHECK: mov.b32 [[R:%r[0-9]+]], {[[R0]], [[R1]]}
36-
; CHECK: st.param.b32 [func_retval0+0], [[R]];
37-
; CHECK: ret;
38-
define <2 x bfloat> @test_cos(<2 x bfloat> %a) #0 #1 {
39-
%r = call <2 x bfloat> @llvm.cos.f16(<2 x bfloat> %a)
40-
ret <2 x bfloat> %r
41-
}
42-
1+
; RUN: llc < %s -march=nvptx64 -mcpu=sm_80 -mattr=+ptx71 --enable-unsafe-fp-math | FileCheck --check-prefixes=CHECK %s
2+
; RUN: %if ptxas-11.8 %{ llc < %s -march=nvptx64 -mcpu=sm_80 -mattr=+ptx71 --enable-unsafe-fp-math | %ptxas-verify -arch=sm_80 %}
3+
4+
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128"
5+
6+
declare <2 x bfloat> @llvm.sin.f16(<2 x bfloat> %a) #0
7+
declare <2 x bfloat> @llvm.cos.f16(<2 x bfloat> %a) #0
8+
9+
; CHECK-LABEL: test_sin(
10+
; CHECK: ld.param.b32 [[A:%r[0-9]+]], [test_sin_param_0];
11+
; CHECK: mov.b32 {[[A0:%rs[0-9]+]], [[A1:%rs[0-9]+]]}, [[A]]
12+
; CHECK-DAG: cvt.f32.bf16 [[AF0:%f[0-9]+]], [[A0]];
13+
; CHECK-DAG: cvt.f32.bf16 [[AF1:%f[0-9]+]], [[A1]];
14+
; CHECK-DAG: sin.approx.f32 [[RF0:%f[0-9]+]], [[AF0]];
15+
; CHECK-DAG: sin.approx.f32 [[RF1:%f[0-9]+]], [[AF1]];
16+
; CHECK-DAG: cvt.rn.bf16.f32 [[R0:%rs[0-9]+]], [[RF0]];
17+
; CHECK-DAG: cvt.rn.bf16.f32 [[R1:%rs[0-9]+]], [[RF1]];
18+
; CHECK: mov.b32 [[R:%r[0-9]+]], {[[R0]], [[R1]]}
19+
; CHECK: st.param.b32 [func_retval0+0], [[R]];
20+
; CHECK: ret;
21+
define <2 x bfloat> @test_sin(<2 x bfloat> %a) #0 #1 {
22+
%r = call <2 x bfloat> @llvm.sin.f16(<2 x bfloat> %a)
23+
ret <2 x bfloat> %r
24+
}
25+
26+
; CHECK-LABEL: test_cos(
27+
; CHECK: ld.param.b32 [[A:%r[0-9]+]], [test_cos_param_0];
28+
; CHECK: mov.b32 {[[A0:%rs[0-9]+]], [[A1:%rs[0-9]+]]}, [[A]]
29+
; CHECK-DAG: cvt.f32.bf16 [[AF0:%f[0-9]+]], [[A0]];
30+
; CHECK-DAG: cvt.f32.bf16 [[AF1:%f[0-9]+]], [[A1]];
31+
; CHECK-DAG: cos.approx.f32 [[RF0:%f[0-9]+]], [[AF0]];
32+
; CHECK-DAG: cos.approx.f32 [[RF1:%f[0-9]+]], [[AF1]];
33+
; CHECK-DAG: cvt.rn.bf16.f32 [[R0:%rs[0-9]+]], [[RF0]];
34+
; CHECK-DAG: cvt.rn.bf16.f32 [[R1:%rs[0-9]+]], [[RF1]];
35+
; CHECK: mov.b32 [[R:%r[0-9]+]], {[[R0]], [[R1]]}
36+
; CHECK: st.param.b32 [func_retval0+0], [[R]];
37+
; CHECK: ret;
38+
define <2 x bfloat> @test_cos(<2 x bfloat> %a) #0 #1 {
39+
%r = call <2 x bfloat> @llvm.cos.f16(<2 x bfloat> %a)
40+
ret <2 x bfloat> %r
41+
}
42+

0 commit comments

Comments
 (0)