summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@linux-m68k.org>2012-12-01 17:15:03 -0800
committerDavid Schleef <ds@schleef.org>2012-12-02 11:42:35 -0800
commitd1528566a649789dc6907119f6744752b05f8b4a (patch)
treebe649ebcdb2ba86f055ee66a5ee4a64d0f8f695b
parenta7f2fab3fb1c5ca2ab7e5298f55841ca58b9f55c (diff)
Fix altivec implementation of cmpltf and cmplef operations
-rw-r--r--orc/orcrules-altivec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/orc/orcrules-altivec.c b/orc/orcrules-altivec.c
index 51c3bd1..7a1d056 100644
--- a/orc/orcrules-altivec.c
+++ b/orc/orcrules-altivec.c
@@ -1127,7 +1127,7 @@ powerpc_rule_cmpltf (OrcCompiler * p, void *user, OrcInstruction * insn)
int src2 = ORC_SRC_ARG (p, insn, 1);
int dest = ORC_DEST_ARG (p, insn, 0);
- powerpc_emit_VXR (p, "vcmpgefp", 0x100001c6, dest, src2, src1, FALSE);
+ powerpc_emit_VXR (p, "vcmpgtfp", 0x100002c6, dest, src2, src1, FALSE);
}
static void
@@ -1137,7 +1137,7 @@ powerpc_rule_cmplef (OrcCompiler * p, void *user, OrcInstruction * insn)
int src2 = ORC_SRC_ARG (p, insn, 1);
int dest = ORC_DEST_ARG (p, insn, 0);
- powerpc_emit_VXR (p, "vcmpgtfp", 0x100002c6, dest, src2, src1, FALSE);
+ powerpc_emit_VXR (p, "vcmpgefp", 0x100001c6, dest, src2, src1, FALSE);
}
static void