* mini-amd64.c (mono_arch_output_basic_block): Fix % 1. Fixes #484323.
* basic.cs: Add a test.
svn path=/branches/mono-2-2/mono/; revision=129067
+2009-03-11 Zoltan Varga <vargaz@gmail.com>
+
+ * mini-amd64.c (mono_arch_output_basic_block): Fix % 1. Fixes #484323.
+
+ * basic.cs: Add a test.
+
2009-03-06 Zoltan Varga <vargaz@gmail.com>
Backport of r128749.
return b % 8;
}
+ public static int test_0_rem_imm_0 () {
+ int b = 12;
+ return b % 1;
+ }
+
public static int test_4_rem_big_imm () {
int b = 10004;
return b % 10000;
g_assert (ins->dreg == X86_EAX);
g_assert (power >= 0);
+ if (power == 0) {
+ amd64_mov_reg_imm (code, ins->dreg, 0);
+ break;
+ }
+
/* Based on gcc code */
/* Add compensation for negative dividents */