[clang] [HLSL] enforce unsigned types for reversebits (PR #86720)

Farzon Lotfi via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 26 12:50:19 PDT 2024


================
@@ -54,31 +29,6 @@ uint16_t4 test_bitreverse_ushort4(uint16_t4 p0)
 }
 #endif
 
-// CHECK: define noundef i32 @
-// CHECK: call i32 @llvm.bitreverse.i32(
-int test_bitreverse_int(int p0)
-{
-	return reversebits(p0);
-}
----------------
farzonl wrote:

errors specifically
`error: call to 'reversebits' is ambiguous`

because we can't distinguish int16_t, from int from int64_t to know which unsigned api to use. 

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


More information about the cfe-commits mailing list