| 1 |
; RUN: llvm-as < %s -o %t.bc |
| 2 |
; RUN: llvm-spirv %t.bc -o %t.spv |
| 3 |
; RUN: llvm-spirv -r -emit-opaque-pointers %t.spv -o - | llvm-dis -o %t.ll |
| 4 |
|
| 5 |
; RUN: llc -mtriple x86_64-apple-darwin10.0.0 < %t.ll | FileCheck %s |
| 6 |
|
| 7 |
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" |
| 8 |
target triple = "spir64-unknown-unknown" |
| 9 |
|
| 10 |
; Verify that the file name is relative to the directory. |
| 11 |
; rdar://problem/8884898 |
| 12 |
; CHECK: file 1 "/Users/manav/one/two" "simple.c" |
| 13 |
|
| 14 |
declare i32 @printf(i8*, ...) nounwind |
| 15 |
|
| 16 |
define i32 @main() nounwind !dbg !6 { |
| 17 |
ret i32 0 |
| 18 |
} |
| 19 |
|
| 20 |
!llvm.dbg.cu = !{!2} |
| 21 |
!llvm.module.flags = !{!12} |
| 22 |
|
| 23 |
!1 = !DIFile(filename: "simple.c", directory: "/Users/manav/one/two") |
| 24 |
!2 = distinct !DICompileUnit(language: DW_LANG_C89, producer: "LLVM build 00", isOptimized: true, emissionKind: FullDebug, file: !10, enums: !11, retainedTypes: !11) |
| 25 |
!5 = !DIBasicType(tag: DW_TAG_base_type, name: "int", size: 32, align: 32, encoding: DW_ATE_signed) |
| 26 |
!6 = distinct !DISubprogram(name: "main", linkageName: "main", line: 9, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, unit: !2, file: !10, scope: !1, type: !7) |
| 27 |
!7 = !DISubroutineType(types: !8) |
| 28 |
!8 = !{!5} |
| 29 |
!10 = !DIFile(filename: "simple.c", directory: "/Users/manav/one/two") |
| 30 |
!11 = !{} |
| 31 |
!12 = !{i32 1, !"Debug Info Version", i32 3} |