1 ; RUN: llc -march=hexagon < %s | FileCheck %s
2 ; CHECK: {{ discriminator }}
4 ; Function Attrs: nounwind readnone
5 define i32 @f0(i32 %a0, i32 %a1) local_unnamed_addr #0 !dbg !5 {
7 call void @llvm.dbg.value(metadata i32 %a0, metadata !10, metadata !DIExpression()), !dbg !12
8 call void @llvm.dbg.value(metadata i32 %a1, metadata !11, metadata !DIExpression()), !dbg !13
9 %v0 = mul nsw i32 %a1, 30000, !dbg !14
10 %v1 = icmp slt i32 %v0, %a0, !dbg !16
11 %v2 = select i1 %v1, i32 %a0, i32 %v0, !dbg !16
12 %v3 = add nsw i32 %v2, %a1, !dbg !17
16 ; Function Attrs: nounwind readnone
17 define i32 @f1() local_unnamed_addr #0 !dbg !19 {
22 ; Function Attrs: nounwind readnone speculatable
23 declare void @llvm.dbg.value(metadata, metadata, metadata) #1
25 attributes #0 = { nounwind readnone "target-cpu"="hexagonv60" "target-features"="+hvx,+hvx-length64b" }
26 attributes #1 = { nounwind readnone speculatable }
29 !llvm.module.flags = !{!3, !4}
31 !0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "QuIC LLVM Hexagon Clang version hexagon-clang-82-1453 (based on LLVM 4.0.0)", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !2)
32 !1 = !DIFile(filename: "/tmp/1.c", directory: "/local/mnt/workspace")
34 !3 = !{i32 2, !"Dwarf Version", i32 4}
35 !4 = !{i32 2, !"Debug Info Version", i32 3}
36 !5 = distinct !DISubprogram(name: "bar", scope: !1, file: !1, line: 1, type: !6, isLocal: false, isDefinition: true, scopeLine: 1, flags: DIFlagPrototyped, isOptimized: true, unit: !0, retainedNodes: !9)
37 !6 = !DISubroutineType(types: !7)
39 !8 = !DIBasicType(name: "long int", size: 32, encoding: DW_ATE_signed)
41 !10 = !DILocalVariable(name: "x", arg: 1, scope: !5, file: !1, line: 1, type: !8)
42 !11 = !DILocalVariable(name: "y", arg: 2, scope: !5, file: !1, line: 1, type: !8)
43 !12 = !DILocation(line: 1, column: 15, scope: !5)
44 !13 = !DILocation(line: 1, column: 23, scope: !5)
45 !14 = !DILocation(line: 2, column: 14, scope: !15)
46 !15 = !DILexicalBlockFile(scope: !5, file: !1, discriminator: 1)
47 !16 = !DILocation(line: 2, column: 1, scope: !5)
48 !17 = !DILocation(line: 4, column: 12, scope: !5)
49 !18 = !DILocation(line: 4, column: 3, scope: !5)
50 !19 = distinct !DISubprogram(name: "main", scope: !1, file: !1, line: 7, type: !20, isLocal: false, isDefinition: true, scopeLine: 7, isOptimized: true, unit: !0, retainedNodes: !2)
51 !20 = !DISubroutineType(types: !21)
53 !22 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)
54 !23 = !DILocation(line: 7, column: 14, scope: !19)