Skip to content

Commit ceb1a01

Browse files
Resolve the LLVM-AOT build failure occuring around SN_IsNormal (#111559)
1 parent 7007b3a commit ceb1a01

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/mono/mono/mini/simd-intrinsics.c

+7-2
Original file line numberDiff line numberDiff line change
@@ -2834,8 +2834,13 @@ emit_sri_vector (MonoCompile *cfg, MonoMethod *cmethod, MonoMethodSignature *fsi
28342834
case SN_IsNormal: {
28352835
if (!is_element_type_primitive (fsig->params [0]))
28362836
return NULL;
2837-
if (!type_enum_is_float(arg0_type))
2838-
return emit_not_xequal (cfg, klass, arg0_type, args [0], emit_xzero (cfg, klass));
2837+
if (!type_enum_is_float(arg0_type)) {
2838+
// TODO: This requires a centralized way for OnesComplement(x)
2839+
//
2840+
// x = UIntEqCmp(x, Zero)
2841+
// return OnesComplement(x)
2842+
return NULL;
2843+
}
28392844

28402845
// TODO: This requires a centralized way for Abs(x)
28412846
// and retyping from float to the same sized unsigned integer

0 commit comments

Comments
 (0)