Skip to content

Commit d52fcdb

Browse files
committed
use __builtin_elementwise_canonicalize
1 parent 96ec9dc commit d52fcdb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libclc/clc/lib/generic/math/clc_subnormal_config.cl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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-24h),
19+
return !__builtin_isfpclass(__builtin_elementwise_canonicalize(0x1p-24h),
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
}

0 commit comments

Comments
 (0)