From f21e613986eff86a56e5c4e5d7a3f4da87ef18e0 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Sun, 26 Apr 2009 21:22:15 -0700 Subject: [PATCH] Fix previous commit --- orc/orccompiler.c | 2 ++ orc/orcprogram-sse.c | 2 ++ testsuite/Makefile.am | 4 ++-- testsuite/test-schro.c | 5 ++--- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/orc/orccompiler.c b/orc/orccompiler.c index 2bbd9b9..849292d 100644 --- a/orc/orccompiler.c +++ b/orc/orccompiler.c @@ -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; diff --git a/orc/orcprogram-sse.c b/orc/orcprogram-sse.c index 60ef2bb..01ae501 100644 --- a/orc/orcprogram-sse.c +++ b/orc/orcprogram-sse.c @@ -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; diff --git a/testsuite/Makefile.am b/testsuite/Makefile.am index e487b82..d4220db 100644 --- a/testsuite/Makefile.am +++ b/testsuite/Makefile.am @@ -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 diff --git a/testsuite/test-schro.c b/testsuite/test-schro.c index e63afb1..3e0909d 100644 --- a/testsuite/test-schro.c +++ b/testsuite/test-schro.c @@ -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"); -- 2.7.4