25 lines · plain
1; RUN: not llc -mtriple=amdgcn -mcpu=tonga < %s 2>&1 | FileCheck -check-prefix=ERROR %s2 3; ERROR: error: foo.cl:1:42: in function rsq_legacy_f32 void (ptr addrspace(1), float): intrinsic not supported on subtarget4 5declare float @llvm.amdgcn.rsq.legacy(float) #06 7define amdgpu_kernel void @rsq_legacy_f32(ptr addrspace(1) %out, float %src) #1 {8 %rsq = call float @llvm.amdgcn.rsq.legacy(float %src), !dbg !49 store float %rsq, ptr addrspace(1) %out, align 410 ret void11}12 13attributes #0 = { nounwind readnone }14attributes #1 = { nounwind }15 16!llvm.dbg.cu = !{!0}17!llvm.module.flags = !{!2, !3}18 19!0 = distinct !DICompileUnit(language: DW_LANG_OpenCL, file: !1, isOptimized: false, runtimeVersion: 0, emissionKind: NoDebug)20!1 = !DIFile(filename: "foo.cl", directory: ".")21!2 = !{i32 2, !"Dwarf Version", i32 4}22!3 = !{i32 2, !"Debug Info Version", i32 3}23!4 = !DILocation(line: 1, column: 42, scope: !5)24!5 = distinct !DISubprogram(name: "rsq_legacy_f32", scope: null, file: !1, line: 1, isLocal: false, isDefinition: true, scopeLine: 2, isOptimized: false, unit: !0)25