| 1 |
; RUN: llvm-as %s -o %t.bc |
| 2 |
; Translation shouldn't crash: |
| 3 |
; RUN: llvm-spirv %t.bc -spirv-text |
| 4 |
; RUN: llvm-spirv %t.bc -o %t.spv |
| 5 |
; RUN: llvm-spirv -r -emit-opaque-pointers %t.spv -o %t.rev.bc |
| 6 |
|
| 7 |
; RUN: llvm-spirv -spirv-ext=+SPV_INTEL_debug_module %t.bc -o %t.spv |
| 8 |
; RUN: llvm-spirv -r -emit-opaque-pointers %t.spv -o %t.rev.bc |
| 9 |
|
| 10 |
source_filename = "llvm-link" |
| 11 |
target datalayout = "e-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-n8:16:32:64" |
| 12 |
target triple = "spir64" |
| 13 |
|
| 14 |
!llvm.module.flags = !{!1, !2, !3, !4} |
| 15 |
!llvm.dbg.cu = !{!5} |
| 16 |
|
| 17 |
!0 = !{} |
| 18 |
!1 = !{i32 1, !"wchar_size", i32 4} |
| 19 |
!2 = !{i32 7, !"PIC Level", i32 2} |
| 20 |
!3 = !{i32 2, !"Debug Info Version", i32 3} |
| 21 |
!4 = !{i32 2, !"Dwarf Version", i32 4} |
| 22 |
!5 = distinct !DICompileUnit(language: DW_LANG_Fortran95, file: !6, isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !0, globals: !0, imports: !7, splitDebugInlining: false, nameTableKind: None) |
| 23 |
!6 = !DIFile(filename: "declare_target_subroutine.F90", directory: "/test") |
| 24 |
!7 = !{!8} |
| 25 |
!8 = !DIImportedEntity(tag: DW_TAG_imported_module, scope: !9, entity: !12, file: !6, line: 24) |
| 26 |
!9 = distinct !DISubprogram(name: "declare_target_subroutine", linkageName: "MAIN__", scope: !6, file: !6, line: 23, type: !10, scopeLine: 23, spFlags: DISPFlagDefinition | DISPFlagMainSubprogram, unit: !5, retainedNodes: !0) |
| 27 |
!10 = !DISubroutineType(types: !11) |
| 28 |
!11 = !{null} |
| 29 |
!12 = !DIModule(scope: !9, name: "iso_fortran_env", isDecl: true) |