brintos

brintos / llvm-project-archived public Read only

0
0
Text · 3.4 KiB · 240d4cc Raw
62 lines · plain
1; Check that a large version number (4.0.20211223) is clamped to proper size2; RUN: llc -mtriple i686-pc-windows-msvc < %s | FileCheck %s --check-prefixes=CHECK,STDOUT3; RUN: llc -mtriple i686-pc-windows-msvc < %s -o %t4; RUN: FileCheck %s --input-file=%t --check-prefixes=CHECK,FILE5 6; RUN: llvm-mc %t -triple=i686-pc-win32 -filetype=obj -o %t.obj7; RUN: llvm-pdbutil dump -il -symbols %t.obj | FileCheck %s --check-prefixes=CODEVIEW8 9; ModuleID = 'D:\src\scopes\foo.cpp'10source_filename = "D:\5Csrc\5Cscopes\5Cfoo.cpp"11target datalayout = "e-m:x-p:32:32-i64:64-f80:32-n8:16:32-a:0:32-S32"12target triple = "i686-pc-windows-msvc19.0.23918"13 14; Function Attrs: nounwind sspstrong15define i32 @"\01?foo@@YAHXZ"() #0 !dbg !10 {16entry:17  ret i32 42, !dbg !1418}19 20attributes #0 = { nounwind sspstrong "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="all" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="pentium4" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" }21 22!llvm.dbg.cu = !{!0}23!llvm.module.flags = !{!7, !8}24!llvm.ident = !{!9}25 26!0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !1, producer: "clang version 4.0.20211223 ", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !2)27; One .debug$S section should contain an S_COMPILE3 record that identifies the28; source language and the version of the compiler based on the DICompileUnit.29; CHECK: 	.section	.debug$S,"dr"30; CHECK:        .short  4353                    # Record kind: S_OBJNAME31; CHECK-NEXT:   .long   0                       # Signature32; STDOUT-NEXT:  .byte   0                       # Object name33; FILE-NEXT:    .asciz	"{{.*}}{{\\\\|/}}cv-compiler-info-clamp.ll.tmp" # Object name34; CHECK: 		.short	4412                    # Record kind: S_COMPILE335; CHECK-NEXT:   .long	1                       # Flags and language36; CHECK-NEXT: 	.short	7                       # CPUType37; CHECK-NEXT: 	.short	4                       # Frontend version38; CHECK-NEXT: 	.short	039; CHECK-NEXT: 	.short	6553540; CHECK-NEXT: 	.short	041; CHECK-NEXT: 	.short	[[BACKEND_VERSION:[0-9]+]]  # Backend version42; CHECK-NEXT: 	.short	043; CHECK-NEXT: 	.short	044; CHECK-NEXT: 	.short	045; CHECK-NEXT: 	.asciz	"clang version 4.0.20211223 "  # Null-terminated compiler version string46; CHECK-NOT:    .short	4412                  # Record kind: S_COMPILE347!1 = !DIFile(filename: "D:\5Csrc\5Cscopes\5Cfoo.cpp", directory: "D:\5Csrc\5Cscopes\5Cclang")48!2 = !{}49!7 = !{i32 2, !"CodeView", i32 1}50!8 = !{i32 2, !"Debug Info Version", i32 3}51!9 = !{!"clang version 4.0.20211223 "}52!10 = distinct !DISubprogram(name: "foo", linkageName: "\01?foo@@YAHXZ", scope: !1, file: !1, line: 1, type: !11, isLocal: false, isDefinition: true, scopeLine: 1, flags: DIFlagPrototyped, isOptimized: false, unit: !0, retainedNodes: !2)53!11 = !DISubroutineType(types: !12)54!12 = !{!13}55!13 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed)56!14 = !DILocation(line: 2, scope: !10)57 58; CODEVIEW:      S_COMPILE3 [size = 56]59; CODEVIEW-NEXT: machine = intel pentium 3, Ver = clang version 4.0.20211223 , language = c++60; Backend version is based off of compiler version building this which is variable61; CODEVIEW-NEXT:   frontend = 4.0.65535.0, backend = 62