brintos

brintos / llvm-project-archived public Read only

0
0
Text · 879 B · 158091a Raw
21 lines · plain
1; RUN: llvm-link %S/Inputs/opencl.md.a.ll %S/Inputs/opencl.md.c.ll -S | FileCheck %s2 3; OpenCL/SPIR version is different in input modules.4; Verify that different OpenCL/SPIR version metadata nodes are kept in the5; destination module.6 7; CHECK: !opencl.ocl.version = !{![[#MD0:]], ![[#MD1:]]}8; CHECK: !opencl.spir.version = !{![[#MD0]], ![[#MD1]]}9; CHECK: !opencl.used.extensions = !{![[#MD2:]], ![[#MD3:]]}10; CHECK: !opencl.used.optional.core.features = !{![[#MD4:]]}11; CHECK: !llvm.ident = !{![[#MD5:]]}12; CHECK: !llvm.module.flags = !{![[#MD6:]]}13 14; CHECK: ![[#MD0]] = !{i32 3, i32 0}15; CHECK: ![[#MD1]] = !{i32 2, i32 0}16; CHECK: ![[#MD2]] = !{!"cl_images", !"cl_khr_fp16"}17; CHECK: ![[#MD3]] = !{!"cl_images", !"cl_doubles"}18; CHECK: ![[#MD4]] = !{!"cl_images"}19; CHECK: ![[#MD5]] = !{!"LLVM.org clang version 20.1.0"}20; CHECK: ![[#MD6]] = !{i32 1, !"wchar_size", i32 4}21