1*67e74705SXin Li; RUN: not %clang_cc1 -triple r600-unknown-unknown -S -o - %s 2>&1 | FileCheck %s 2*67e74705SXin Li; REQUIRES: amdgpu-registered-target 3*67e74705SXin Li 4*67e74705SXin Li; This is to check that backend errors for unsupported features are formatted correctly 5*67e74705SXin Li 6*67e74705SXin Li; CHECK: error: test.c:2:20: in function bar i32 (): unsupported call to function foo.2 7*67e74705SXin Li 8*67e74705SXin Litarget triple = "r600-unknown-unknown" 9*67e74705SXin Li 10*67e74705SXin Li; Function Attrs: nounwind uwtable 11*67e74705SXin Lidefine i32 @bar() #0 !dbg !4 { 12*67e74705SXin Lientry: 13*67e74705SXin Li %call = call i32 @foo(), !dbg !12 14*67e74705SXin Li ret i32 %call, !dbg !13 15*67e74705SXin Li} 16*67e74705SXin Li 17*67e74705SXin Li; Function Attrs: nounwind uwtable 18*67e74705SXin Lidefine i32 @foo() #0 !dbg !8 { 19*67e74705SXin Lientry: 20*67e74705SXin Li %call = call i32 @bar(), !dbg !14 21*67e74705SXin Li ret i32 %call, !dbg !15 22*67e74705SXin Li} 23*67e74705SXin Li 24*67e74705SXin Liattributes #0 = { nounwind uwtable "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-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" } 25*67e74705SXin Li 26*67e74705SXin Li!llvm.dbg.cu = !{!0} 27*67e74705SXin Li!llvm.module.flags = !{!9, !10} 28*67e74705SXin Li!llvm.ident = !{!11} 29*67e74705SXin Li 30*67e74705SXin Li!0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang version 3.9.0", isOptimized: false, runtimeVersion: 0, emissionKind: 1, enums: !2) 31*67e74705SXin Li!1 = !DIFile(filename: "test.c", directory: "") 32*67e74705SXin Li!2 = !{} 33*67e74705SXin Li!4 = distinct !DISubprogram(name: "bar", scope: !1, file: !1, line: 2, type: !5, isLocal: false, isDefinition: true, scopeLine: 2, isOptimized: false, unit: !0, variables: !2) 34*67e74705SXin Li!5 = !DISubroutineType(types: !6) 35*67e74705SXin Li!6 = !{!7} 36*67e74705SXin Li!7 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed) 37*67e74705SXin Li!8 = distinct !DISubprogram(name: "foo", scope: !1, file: !1, line: 3, type: !5, isLocal: false, isDefinition: true, scopeLine: 3, flags: DIFlagPrototyped, isOptimized: false, unit: !0, variables: !2) 38*67e74705SXin Li!9 = !{i32 2, !"Dwarf Version", i32 4} 39*67e74705SXin Li!10 = !{i32 2, !"Debug Info Version", i32 3} 40*67e74705SXin Li!11 = !{!"clang version 3.9.0"} 41*67e74705SXin Li!12 = !DILocation(line: 2, column: 20, scope: !4) 42*67e74705SXin Li!13 = !DILocation(line: 2, column: 13, scope: !4) 43*67e74705SXin Li!14 = !DILocation(line: 3, column: 20, scope: !8) 44*67e74705SXin Li!15 = !DILocation(line: 3, column: 13, scope: !8) 45