test: Fix perf_opcodes_sys for acc opcodes
authorDavid Schleef <ds@schleef.org>
Mon, 2 Aug 2010 01:02:48 +0000 (18:02 -0700)
committerDavid Schleef <ds@schleef.org>
Mon, 2 Aug 2010 01:02:48 +0000 (18:02 -0700)
testsuite/perf_opcodes_sys.c

index abfe4a0..b49be47 100644 (file)
@@ -39,7 +39,11 @@ test_opcode_src (OrcStaticOpcode *opcode)
   int flags = 0;
 
   p = orc_program_new ();
-  orc_program_add_destination (p, opcode->dest_size[0], "d1");
+  if (opcode->flags & ORC_STATIC_OPCODE_ACCUMULATOR) {
+    orc_program_add_accumulator (p, opcode->dest_size[0], "d1");
+  } else {
+    orc_program_add_destination (p, opcode->dest_size[0], "d1");
+  }
   if (opcode->dest_size[1] != 0) {
     orc_program_add_destination (p, opcode->dest_size[1], "d2");
   }