Juan Manuel Martinez =?utf-8?q?CaamaƱo?= <[email protected]>,Manuel
Carrasco <[email protected]>,Manuel Carrasco
<[email protected]>,Manuel
Carrasco <[email protected]>,Manuel Carrasco
<[email protected]>,Manuel
Carrasco <[email protected]>,Manuel Carrasco <[email protected]>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/[email protected]>
================
@@ -0,0 +1,12 @@
+// COM: This test case validates the behavior of
-amdgpu-use-experimental-spirv-backend
+
+// COM: Test that -amdgpu-use-experimental-spirv-backend calls llc with the
SPIRV triple.
+// RUN: %clang -x hip %s --cuda-device-only --offload-arch=amdgcnspirv
-amdgpu-use-experimental-spirv-backend -### 2>&1 | FileCheck %s
--check-prefix=CHECK-SPIRV-BACKEND
+// CHECK-SPIRV-BACKEND: "{{.*}}llc{{.*}}"
"{{-mtriple=spirv64v[0-9]+\.[0-9]+-amd-amdhsa}}"
+
+// COM: Test that -no-amdgpu-use-experimental-spirv-backend calls the SPIRV
translator
+// RUN: %clang -x hip %s --cuda-device-only --offload-arch=amdgcnspirv
-no-amdgpu-use-experimental-spirv-backend -### 2>&1 | FileCheck %s
--check-prefix=CHECK-SPIRV-TRANSLATOR
+// CHECK-SPIRV-TRANSLATOR: "{{.*llvm-spirv.*}}"
"{{--spirv-max-version=[0-9]+\.[0-9]}}"
+
+// COM: Test that by default we use the translator
+// RUN: %clang -x hip %s --cuda-device-only --offload-arch=amdgcnspirv -###
2>&1 | FileCheck %s --check-prefix=CHECK-SPIRV-TRANSLATOR
----------------
mgcarrasco wrote:
Thanks, solved.
https://github.com/llvm/llvm-project/pull/162282
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits