[libc-commits] [libc] [libc] Add Generic and NVPTX Sin Benchmark (PR #99795)

Joseph Huber via libc-commits libc-commits at lists.llvm.org
Mon Jul 29 19:51:22 PDT 2024


================
@@ -98,7 +99,9 @@ template <typename F, typename T1, typename T2>
 
   auto result = f(arg1, arg2);
 
-  asm("v_or_b32 %[v_reg], 0, %[v_reg]\n" ::[v_reg] "v"(result) :);
+  asm("v_or_b32 %[v_reg], 0, %[v_reg]\n" ::[v_reg] "v"(
+          static_cast<uint32_t>(result))
+      :);
----------------
jhuber6 wrote:

Is this colon required?

https://github.com/llvm/llvm-project/pull/99795


More information about the libc-commits mailing list