OSDN Git Service

Fix line endings. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 15 Sep 2018 14:20:53 +0000 (14:20 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 15 Sep 2018 14:20:53 +0000 (14:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@342323 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/X86/debuginfo-locations-dce.ll [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index 359d5aa..6e1884f
@@ -1,71 +1,71 @@
-; RUN: llc -O2 %s -o %t -filetype=obj\r
-; RUN: llvm-dwarfdump -debug-info %t | FileCheck %s\r
-\r
-; Check that Machine CSE correctly handles during the transformation, the\r
-; debug location information for variables.\r
-\r
-; Generated with clang -c -g -O2\r
-\r
-; typedef float __attribute__((__vector_size__(16))) f4;\r
-; f4 get();\r
-; int main() {\r
-;   float MyVar = get()[0];\r
-;   if (MyVar)\r
-;     return 1;\r
-; }\r
-\r
-; ModuleID = 'test.cpp'\r
-source_filename = "test.cpp"\r
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"\r
-target triple = "x86_64-pc-linux-gnu"\r
-\r
-define dso_local i32 @main() !dbg !7 {\r
-entry:\r
-  %call = tail call <4 x float> @_Z3getv(), !dbg !14\r
-  %vecext = extractelement <4 x float> %call, i32 0, !dbg !14\r
-  call void @llvm.dbg.value(metadata float %vecext, metadata !12, metadata !DIExpression()), !dbg !15\r
-  %tobool = fcmp une float %vecext, 0.000000e+00, !dbg !16\r
-  %. = zext i1 %tobool to i32, !dbg !18\r
-  ret i32 %., !dbg !19\r
-}\r
-\r
-declare dso_local <4 x float> @_Z3getv()\r
-\r
-declare void @llvm.dbg.value(metadata, metadata, metadata) #2\r
-\r
-!llvm.dbg.cu = !{!0}\r
-!llvm.module.flags = !{!3, !4, !5}\r
-!llvm.ident = !{!6}\r
-\r
-!0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !1, producer: "clang version 8.0.0 (trunk 339665)", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !2)\r
-!1 = !DIFile(filename: "test.cpp", directory: ".")\r
-!2 = !{}\r
-!3 = !{i32 2, !"Dwarf Version", i32 4}\r
-!4 = !{i32 2, !"Debug Info Version", i32 3}\r
-!5 = !{i32 1, !"wchar_size", i32 4}\r
-!6 = !{!"clang version 8.0.0 (trunk 339665)"}\r
-!7 = distinct !DISubprogram(name: "main", scope: !1, file: !1, line: 3, type: !8, isLocal: false, isDefinition: true, scopeLine: 3, flags: DIFlagPrototyped, isOptimized: true, unit: !0, retainedNodes: !11)\r
-!8 = !DISubroutineType(types: !9)\r
-!9 = !{!10}\r
-!10 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)\r
-!11 = !{!12}\r
-!12 = !DILocalVariable(name: "MyVar", scope: !7, file: !1, line: 4, type: !13)\r
-!13 = !DIBasicType(name: "float", size: 32, encoding: DW_ATE_float)\r
-!14 = !DILocation(line: 4, column: 18, scope: !7)\r
-!15 = !DILocation(line: 4, column: 9, scope: !7)\r
-!16 = !DILocation(line: 5, column: 7, scope: !17)\r
-!17 = distinct !DILexicalBlock(scope: !7, file: !1, line: 5, column: 7)\r
-!18 = !DILocation(line: 6, column: 5, scope: !17)\r
-!19 = !DILocation(line: 7, column: 1, scope: !7)\r
-\r
-; Look at the debug location information for variable 'MyVar'.\r
-; Verify that we see a sequence of DI entries, that looks like:\r
-; DW_TAG_variable\r
-;   DW_AT_location        (0x00000000\r
-;     [0x0000000000000009,  0x0000000000000012): DW_OP_reg17 XMM0)\r
-;   DW_AT_name    ("MyVar")\r
-\r
-; CHECK-LABEL: DW_TAG_variable\r
-; CHECK-NEXT: DW_AT_location{{.*}}\r
-; CHECK-NEXT: {{.*}}DW_OP_reg17 XMM0\r
-; CHECK-NEXT: DW_AT_name{{.*}}("MyVar")\r
+; RUN: llc -O2 %s -o %t -filetype=obj
+; RUN: llvm-dwarfdump -debug-info %t | FileCheck %s
+
+; Check that Machine CSE correctly handles during the transformation, the
+; debug location information for variables.
+
+; Generated with clang -c -g -O2
+
+; typedef float __attribute__((__vector_size__(16))) f4;
+; f4 get();
+; int main() {
+;   float MyVar = get()[0];
+;   if (MyVar)
+;     return 1;
+; }
+
+; ModuleID = 'test.cpp'
+source_filename = "test.cpp"
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target triple = "x86_64-pc-linux-gnu"
+
+define dso_local i32 @main() !dbg !7 {
+entry:
+  %call = tail call <4 x float> @_Z3getv(), !dbg !14
+  %vecext = extractelement <4 x float> %call, i32 0, !dbg !14
+  call void @llvm.dbg.value(metadata float %vecext, metadata !12, metadata !DIExpression()), !dbg !15
+  %tobool = fcmp une float %vecext, 0.000000e+00, !dbg !16
+  %. = zext i1 %tobool to i32, !dbg !18
+  ret i32 %., !dbg !19
+}
+
+declare dso_local <4 x float> @_Z3getv()
+
+declare void @llvm.dbg.value(metadata, metadata, metadata) #2
+
+!llvm.dbg.cu = !{!0}
+!llvm.module.flags = !{!3, !4, !5}
+!llvm.ident = !{!6}
+
+!0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !1, producer: "clang version 8.0.0 (trunk 339665)", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !2)
+!1 = !DIFile(filename: "test.cpp", directory: ".")
+!2 = !{}
+!3 = !{i32 2, !"Dwarf Version", i32 4}
+!4 = !{i32 2, !"Debug Info Version", i32 3}
+!5 = !{i32 1, !"wchar_size", i32 4}
+!6 = !{!"clang version 8.0.0 (trunk 339665)"}
+!7 = distinct !DISubprogram(name: "main", scope: !1, file: !1, line: 3, type: !8, isLocal: false, isDefinition: true, scopeLine: 3, flags: DIFlagPrototyped, isOptimized: true, unit: !0, retainedNodes: !11)
+!8 = !DISubroutineType(types: !9)
+!9 = !{!10}
+!10 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)
+!11 = !{!12}
+!12 = !DILocalVariable(name: "MyVar", scope: !7, file: !1, line: 4, type: !13)
+!13 = !DIBasicType(name: "float", size: 32, encoding: DW_ATE_float)
+!14 = !DILocation(line: 4, column: 18, scope: !7)
+!15 = !DILocation(line: 4, column: 9, scope: !7)
+!16 = !DILocation(line: 5, column: 7, scope: !17)
+!17 = distinct !DILexicalBlock(scope: !7, file: !1, line: 5, column: 7)
+!18 = !DILocation(line: 6, column: 5, scope: !17)
+!19 = !DILocation(line: 7, column: 1, scope: !7)
+
+; Look at the debug location information for variable 'MyVar'.
+; Verify that we see a sequence of DI entries, that looks like:
+; DW_TAG_variable
+;   DW_AT_location        (0x00000000
+;     [0x0000000000000009,  0x0000000000000012): DW_OP_reg17 XMM0)
+;   DW_AT_name    ("MyVar")
+
+; CHECK-LABEL: DW_TAG_variable
+; CHECK-NEXT: DW_AT_location{{.*}}
+; CHECK-NEXT: {{.*}}DW_OP_reg17 XMM0
+; CHECK-NEXT: DW_AT_name{{.*}}("MyVar")