diff options
author | David Schleef <ds@schleef.org> | 2011-05-06 12:02:37 -0700 |
---|---|---|
committer | David Schleef <ds@schleef.org> | 2011-05-06 12:02:37 -0700 |
commit | 607da068435a75f9d53992c1b685ce90b4c03d03 (patch) | |
tree | 5b70635fe9d3dd10bb464e3ceb20bdf2ebb030c2 | |
parent | b9bbc70b2f3e0e12b4bab6931305ff82018c9768 (diff) | |
download | orc-x86insn.tar.gz |
NOT FOR MASTER randomize registersx86insn
-rw-r--r-- | orc/orccompiler.c | 2 | ||||
-rw-r--r-- | testsuite/compile_opcodes_sys.c | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/orc/orccompiler.c b/orc/orccompiler.c index d65fe40..cec5a7b 100644 --- a/orc/orccompiler.c +++ b/orc/orccompiler.c @@ -89,7 +89,7 @@ orc_compiler_allocate_register (OrcCompiler *compiler, int data_reg) } roff = 0; -#if 0 +#if 1 /* for testing */ roff = rand()&0xf; #endif diff --git a/testsuite/compile_opcodes_sys.c b/testsuite/compile_opcodes_sys.c index ac157e6..fb553b4 100644 --- a/testsuite/compile_opcodes_sys.c +++ b/testsuite/compile_opcodes_sys.c @@ -7,6 +7,8 @@ #include <orc/orc.h> #include <orc-test/orctest.h> +#include <time.h> + int error = FALSE; @@ -20,6 +22,7 @@ main (int argc, char *argv[]) int i; OrcOpcodeSet *opcode_set; + srand(time(NULL)); orc_init(); orc_test_init(); |