saved_eax = TRUE;
x86_push_reg (code, X86_EAX);
}
- } else if (ins->dreg != X86_EAX) {
+ } else {
saved_edx = TRUE;
x86_push_reg (code, X86_EDX);
}
var res = arm64_hfa_on_stack_inner (1, 2, 3, 4, 5, 6, 7, 8, s);
return res == 10.0 ? 0 : 1;
}
+
+ class MulOvfClass {
+ [MethodImplAttribute (MethodImplOptions.NoInlining)]
+ public unsafe void EncodeIntoBuffer(char* value, int valueLength, char* buffer, int bufferLength) {
+ }
+ }
+
+ static unsafe int test_0_mul_ovf_regress_36052 () {
+ var p = new MulOvfClass ();
+
+ string typeName = typeof(int).Name;
+ int bufferSize = 45;
+
+ fixed (char* value = typeName) {
+ char* buffer = stackalloc char[bufferSize];
+ p.EncodeIntoBuffer(value, typeName.Length, buffer, bufferSize);
+ }
+ return 0;
+ }
}
#if MOBILE