Author: zoltan
Date: 2005-03-13 13:29:46 -0500 (Sun, 13 Mar 2005)
New Revision: 41766
Modified:
trunk/mono/mono/mini/ChangeLog
trunk/mono/mono/mini/iltests.il
Log:
2005-03-13 Zoltan Varga <[EMAIL PROTECTED]>
* iltests.il: Add new localloc test.
Modified: trunk/mono/mono/mini/ChangeLog
===================================================================
--- trunk/mono/mono/mini/ChangeLog 2005-03-13 16:57:42 UTC (rev 41765)
+++ trunk/mono/mono/mini/ChangeLog 2005-03-13 18:29:46 UTC (rev 41766)
@@ -1,5 +1,7 @@
2005-03-13 Zoltan Varga <[EMAIL PROTECTED]>
+ * iltests.il: Add new localloc test.
+
* mini-amd64.c: Handle large stack allocations the same way as on
windows if stack overflow handling is working.
Modified: trunk/mono/mono/mini/iltests.il
===================================================================
--- trunk/mono/mono/mini/iltests.il 2005-03-13 16:57:42 UTC (rev 41765)
+++ trunk/mono/mono/mini/iltests.il 2005-03-13 18:29:46 UTC (rev 41766)
@@ -301,10 +301,30 @@
ldloc.0
ldind.i4
ldc.i4 999999
- beq PASS
+ beq OK5
ldc.i4.5
br FAIL
+OK5:
+ // Try allocations bigger than one page
+ ldc.i4 8196
+ localloc
+ conv.i
+ stloc.3
+ ldloc.3
+ ldc.i4 8192
+ add
+ ldc.i4 99
+ stind.i4
+ ldloc.3
+ ldc.i4 8192
+ add
+ ldind.i4
+ ldc.i4 99
+ beq PASS
+ ldc.i4.6
+ br FAIL
+
FAIL:
ret
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches