Fix previous commit
authorDavid Schleef <ds@schleef.org>
Mon, 27 Apr 2009 04:22:15 +0000 (21:22 -0700)
committerDavid Schleef <ds@schleef.org>
Mon, 27 Apr 2009 04:22:15 +0000 (21:22 -0700)
orc/orccompiler.c
orc/orcprogram-sse.c
testsuite/Makefile.am
testsuite/test-schro.c

index 2bbd9b9..849292d 100644 (file)
@@ -308,6 +308,8 @@ orc_compiler_global_reg_alloc (OrcCompiler *compiler)
         var->last_use = -1;
         var->alloc = orc_compiler_allocate_register (compiler, TRUE);
         break;
+      case ORC_VAR_TYPE_TEMP:
+        break;
       default:
         ORC_PROGRAM_ERROR(compiler, "bad vartype");
         break;
index 60ef2bb..01ae501 100644 (file)
@@ -252,6 +252,8 @@ sse_load_constants (OrcCompiler *compiler)
         *compiler->codeptr++ = 0xef;
         x86_emit_modrm_reg (compiler, compiler->vars[i].alloc, compiler->vars[i].alloc);
         break;
+      case ORC_VAR_TYPE_TEMP:
+        break;
       default:
         ORC_PROGRAM_ERROR(compiler,"bad vartype");
         break;
index e487b82..d4220db 100644 (file)
@@ -1,7 +1,7 @@
 
-TESTS = test1 test2 test3 test4 test5 test_local_opcode_execution test_compile test_accsadubl
+TESTS = test1 test2 test3 test4 test5 test_local_opcode_execution test_compile test_accsadubl test-schro
 
-orcbin_PROGRAMS = test1 test2 test3 test4 test5 test_local_opcode_execution test_compile test_accsadubl
+orcbin_PROGRAMS = test1 test2 test3 test4 test5 test_local_opcode_execution test_compile test_accsadubl test-schro
 
 AM_CFLAGS = $(ORC_CFLAGS)
 LIBS = $(ORC_LIBS) $(top_builddir)/orc-test/liborc-test-0.3.la
index e63afb1..3e0909d 100644 (file)
@@ -18,12 +18,11 @@ OrcProgram *
 get_program (int type)
 {
   OrcProgram *p;
-  int d1;
 
   switch (type) {
   case 0:
     p = orc_program_new ();
-    d1 = orc_program_add_destination (p, 2, "d1");
+    orc_program_add_destination (p, 2, "d1");
     orc_program_add_source (p, 2, "s1");
     orc_program_add_source (p, 2, "s2");
     orc_program_add_constant (p, 2, 2, "c1");
@@ -37,7 +36,7 @@ get_program (int type)
     break;
   case 1:
     p = orc_program_new ();
-    d1 = orc_program_add_destination (p, 2, "d1");
+    orc_program_add_destination (p, 2, "d1");
     orc_program_add_source (p, 2, "s1");
     orc_program_add_source (p, 2, "s2");
     orc_program_add_constant (p, 2, 2, "c1");