| Adrian McCarthy | c64acfd | 2016-09-20 17:20:51 +0000 | [diff] [blame] | 1 | ; RUN: llc -mtriple i686-pc-windows-msvc < %s | FileCheck %s |
| 2 | ; ModuleID = 'D:\src\scopes\foo.cpp' |
| 3 | source_filename = "D:\5Csrc\5Cscopes\5Cfoo.cpp" |
| 4 | target datalayout = "e-m:x-p:32:32-i64:64-f80:32-n8:16:32-a:0:32-S32" |
| 5 | target triple = "i686-pc-windows-msvc19.0.23918" |
| 6 | |
| 7 | ; Function Attrs: nounwind sspstrong |
| 8 | define i32 @"\01?foo@@YAHXZ"() #0 !dbg !10 { |
| 9 | entry: |
| 10 | ret i32 42, !dbg !14 |
| 11 | } |
| 12 | |
| 13 | attributes #0 = { nounwind sspstrong "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "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" } |
| 14 | |
| 15 | !llvm.dbg.cu = !{!0} |
| Peter Collingbourne | 89061b2 | 2017-06-12 20:10:48 +0000 | [diff] [blame] | 16 | !llvm.module.flags = !{!7, !8} |
| Adrian McCarthy | c64acfd | 2016-09-20 17:20:51 +0000 | [diff] [blame] | 17 | !llvm.ident = !{!9} |
| 18 | |
| 19 | !0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !1, producer: "clang version 4.0.0 ", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !2) |
| Adrian McCarthy | 4333daa | 2016-11-02 21:30:35 +0000 | [diff] [blame] | 20 | ; One .debug$S section should contain an S_COMPILE3 record that identifies the |
| Adrian McCarthy | c64acfd | 2016-09-20 17:20:51 +0000 | [diff] [blame] | 21 | ; source language and the version of the compiler based on the DICompileUnit. |
| 22 | ; CHECK: .section .debug$S,"dr" |
| Adrian McCarthy | c64acfd | 2016-09-20 17:20:51 +0000 | [diff] [blame] | 23 | ; CHECK: .short 4412 # Record kind: S_COMPILE3 |
| 24 | ; CHECK: .long 1 # Flags and language |
| 25 | ; CHECK: .short 7 # CPUType |
| 26 | ; CHECK: .short 4 # Frontend version |
| 27 | ; CHECK: .short 0 |
| 28 | ; CHECK: .short 0 |
| 29 | ; CHECK: .short 0 |
| 30 | ; CHECK: .short [[BACKEND_VERSION:[0-9]+]] # Backend version |
| 31 | ; CHECK: .short 0 |
| 32 | ; CHECK: .short 0 |
| 33 | ; CHECK: .short 0 |
| 34 | ; CHECK: .asciz "clang version 4.0.0 " # Null-terminated compiler version string |
| Adrian McCarthy | 4333daa | 2016-11-02 21:30:35 +0000 | [diff] [blame] | 35 | ; CHECK-NOT: .short 4412 # Record kind: S_COMPILE3 |
| Adrian McCarthy | c64acfd | 2016-09-20 17:20:51 +0000 | [diff] [blame] | 36 | !1 = !DIFile(filename: "D:\5Csrc\5Cscopes\5Cfoo.cpp", directory: "D:\5Csrc\5Cscopes\5Cclang") |
| 37 | !2 = !{} |
| Adrian McCarthy | c64acfd | 2016-09-20 17:20:51 +0000 | [diff] [blame] | 38 | !7 = !{i32 2, !"CodeView", i32 1} |
| 39 | !8 = !{i32 2, !"Debug Info Version", i32 3} |
| 40 | !9 = !{!"clang version 4.0.0 "} |
| 41 | !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, variables: !2) |
| 42 | !11 = !DISubroutineType(types: !12) |
| 43 | !12 = !{!13} |
| 44 | !13 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed) |
| 45 | !14 = !DILocation(line: 2, scope: !10) |