brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.2 KiB · 71dc027 Raw
58 lines · plain
1# RUN: llc -O0 -mtriple arm-- -mattr=+vfp2 -run-pass=instruction-select -verify-machineinstrs %s -o - | FileCheck %s --check-prefixes=CHECK2# RUN: llc -O0 -mtriple thumb-- -mattr=+v6t2,+vfp2 -run-pass=instruction-select -verify-machineinstrs %s -o - | FileCheck %s --check-prefixes=CHECK3--- |4  define void @test_dbg_value() #0 { ret void }5 6  !0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "llvm", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !2)7  !1 = !DIFile(filename: "dbg.ll", directory: "/tmp")8  !2 = !{}9  !5 = distinct !DISubprogram(name: "test_dbg_value", scope: !1, file: !1, line: 1, type: !6, isLocal: false, isDefinition: true, scopeLine: 1, flags: DIFlagPrototyped, isOptimized: false, unit: !0, retainedNodes: !2)10  !6 = !DISubroutineType(types: !2)11  !7 = !DILocalVariable(name: "x", arg: 1, scope: !5, file: !1, line: 1, type: !8)12  !8 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)13  !9 = !DILocation(line: 1, column: 1, scope: !5)14...15---16name:            test_dbg_value17# CHECK-LABEL: name: test_dbg_value18legalized:       true19regBankSelected: true20selected:        false21# CHECK: selected: true22registers:23  - { id: 0, class: gprb }24  - { id: 1, class: fprb }25  - { id: 2, class: gprb }26  - { id: 3, class: fprb }27body:             |28  bb.0:29    liveins: $r0, $s130 31    %0(s32) = COPY $r032    %1(s32) = COPY $s133 34    %2(s32) = G_ADD %0, %035 36    ; DBG_VALUE {{%[0-9]+}}:gpr, $noreg, !7, !DIExpression(), debug-location !937    DBG_VALUE %2(s32), $noreg, !7, !DIExpression(), debug-location !938 39    %3(s32) = G_FADD %1, %140 41    ; DBG_VALUE {{%[0-9]+}}:spr, $noreg, !7, !DIExpression(), debug-location !942    DBG_VALUE %3(s32), $noreg, !7, !DIExpression(), debug-location !943 44    ; DBG_VALUE i32 42, 0, !7, !DIExpression(), debug-location !945    DBG_VALUE i32 42, 0, !7, !DIExpression(), debug-location !946 47    ; DBG_VALUE float 1.000000e+00, 0, !7, !DIExpression(), debug-location !948    DBG_VALUE float 1.000000e+00, 0, !7, !DIExpression(), debug-location !949 50    ; DBG_VALUE $noreg, 0, !7, !DIExpression(), debug-location !951    DBG_VALUE $noreg, 0, !7, !DIExpression(), debug-location !952 53    $r0 = COPY %2(s32)54    $s1 = COPY %3(s32)55    BX_RET 14, $noreg, implicit $r0, implicit $s156 57...58