projects
/
platform
/
upstream
/
orc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
873bae7
)
test: Fix perf_opcodes_sys for acc opcodes
author
David Schleef
<ds@schleef.org>
Mon, 2 Aug 2010 01:02:48 +0000
(18:02 -0700)
committer
David Schleef
<ds@schleef.org>
Mon, 2 Aug 2010 01:02:48 +0000
(18:02 -0700)
testsuite/perf_opcodes_sys.c
patch
|
blob
|
history
diff --git
a/testsuite/perf_opcodes_sys.c
b/testsuite/perf_opcodes_sys.c
index
abfe4a0
..
b49be47
100644
(file)
--- a/
testsuite/perf_opcodes_sys.c
+++ b/
testsuite/perf_opcodes_sys.c
@@
-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");
}