File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
libclc/clc/lib/generic/math Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ _CLC_DEF bool __clc_fp16_subnormals_supported() {
1616 // SPIR-V doesn't support llvm.canonicalize for now.
1717 return false;
1818#else
19- return !__builtin_isfpclass (__builtin_canonicalizef (( float ) 0x1p-24 h ),
19+ return !__builtin_isfpclass (__builtin_elementwise_canonicalize ( 0x1p-24 h ),
2020 __FPCLASS_POSZERO );
2121#endif
2222}
@@ -27,7 +27,7 @@ _CLC_DEF bool __clc_fp32_subnormals_supported() {
2727 // SPIR-V doesn't support llvm.canonicalize for now.
2828 return false;
2929#else
30- return !__builtin_isfpclass (__builtin_canonicalizef (0x1p-149f ),
30+ return !__builtin_isfpclass (__builtin_elementwise_canonicalize (0x1p-149f ),
3131 __FPCLASS_POSZERO );
3232#endif
3333}
@@ -39,7 +39,7 @@ _CLC_DEF bool __clc_fp64_subnormals_supported() {
3939 // SPIR-V doesn't support llvm.canonicalize for now.
4040 return false;
4141#else
42- return !__builtin_isfpclass (__builtin_canonicalize (0x1p-1074 ),
42+ return !__builtin_isfpclass (__builtin_elementwise_canonicalize (0x1p-1074 ),
4343 __FPCLASS_POSZERO );
4444#endif
4545}
You can’t perform that action at this time.
0 commit comments