================
@@ -130,11 +130,21 @@
; RUN: --opencl-aot-options="-a -b" \
; RUN: | FileCheck %s --check-prefix=AOT-INTEL-CPU
; AOT-INTEL-CPU: link: inputs: {{.*}}.bc, {{.*}}.bc output:
[[LLVMLINKOUT:.*]].bc
-; AOT-INTEL-CPU-NEXT: LLVM backend: input: [[LLVMLINKOUT]].bc, output:
[[SPIRVTRANSLATIONOUT:.*]]_0.spv
-; AOT-INTEL-CPU-NEXT: "{{.*}}opencl-aot{{.*}}" {{.*}}--device=cpu -a -b
{{.*}}-o [[SPIRVTRANSLATIONOUT]]_0.out [[SPIRVTRANSLATIONOUT]]_0.spv
+; AOT-INTEL-CPU-NEXT: LLVM backend: input: [[LLVMLINKOUT]].bc, output:
[[SPIRVTRANSLATIONOUT:.*]]_0{{.*}}.spv
+; AOT-INTEL-CPU-NEXT: "{{.*}}opencl-aot{{.*}}" {{.*}}--device=cpu -a -b
{{.*}}-o [[SPIRVTRANSLATIONOUT]]_0{{.*}}.out [[SPIRVTRANSLATIONOUT]]_0{{.*}}.spv
; AOT-INTEL-CPU-NEXT: sycl-bundle: image kind: o, triple: spirv64, arch:
graniterapids
; AOT-INTEL-CPU-NOT: {{.+}}
;
+; Test that AOT temp file names ("<stem>_<index>-<unique>.spv"/".out") are
+; derived from -o's basename only, not its full path, so they land in the
+; current directory (with a unique suffix to avoid collisions between
+; concurrent invocations sharing an output basename).
+; RUN: mkdir -p %t/outdir
----------------
sarnex wrote:
should we add an `rm -rf %t/outdir` before this?
https://github.com/llvm/llvm-project/pull/224506
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits