Merge pull request #4169 from evincarofautumn/fix-xmm-scanning-mac-x86
[mono.git] / mono / arch / mips / test.c
index d83f833f27e48a8df40fcf08bb796a316548cad0..4f5e1adee1f1d04167fb586e59ab8dd194df9190 100644 (file)
@@ -1,10 +1,20 @@
-#include "mips-codegen.h"
+#include "config.h"
 #include <stdlib.h>
+#include <string.h>
+
+#define NO_MIPS_JIT_DEBUG
+
+#include "mips-codegen.h"
+#include "mono/metadata/class.h"
+
+/* don't run the resulting program, it will destroy your computer,
+ * just objdump -d it to inspect we generated the correct assembler.
+ */
 
-int main () {
-       unsigned int *code, * p;
+int main (int argc, char *argv[]) {
+       guint32 *code, * p;
 
-       code = p = malloc (sizeof (int) * 1024);
+       code = p = (guint32 *) malloc (sizeof (guint32) * 1024);
        
        mips_add (p, 3, 4, 5);
        mips_addi (p, 3, 4, 5);