================
@@ -96,6 +96,14 @@ void test_s_memtime(global ulong* out)
     *out = __builtin_amdgcn_s_memtime();
 }
 
+// CHECK-LABEL: @test_s_wait_idle
+// CHECK: {{.*}}call{{.*}} void @llvm.amdgcn.s.wait.idle()
+void test_s_wait_idle()
+{
+  if (__builtin_amdgcn_is_invocable(__builtin_amdgcn_s_wait_idle))
----------------
ritter-x2a wrote:

Is there a way to avoid using `__builtin_amdgcn_is_invocable` here and not 
break the SPIR-V check line of the test? The other tests in this file are also 
guarded by such a check.

https://github.com/llvm/llvm-project/pull/244238
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to