mips: added emit for precr.qb.ph
authorGuillaume Emont <guijemont@igalia.com>
Wed, 12 Dec 2012 11:07:16 +0000 (12:07 +0100)
committerGuillaume Emont <guijemont@igalia.com>
Fri, 28 Dec 2012 14:23:38 +0000 (15:23 +0100)
orc/orcmips.c
orc/orcmips.h

index 545eba2..8367077 100644 (file)
@@ -784,6 +784,22 @@ orc_mips_emit_preceu_ph_qbr (OrcCompiler *compiler,
 }
 
 void
+orc_mips_emit_precr_qb_ph (OrcCompiler *compiler,
+                           OrcMipsRegister dest,
+                           OrcMipsRegister source1,
+                           OrcMipsRegister source2)
+{
+  ORC_ASM_CODE (compiler, "  precr.qb.ph %s, %s, %s\n",
+                orc_mips_reg_name (dest),
+                orc_mips_reg_name (source1),
+                orc_mips_reg_name (source2));
+  orc_mips_emit (compiler,
+                 MIPS_BINARY_INSTRUCTION(037, /* SPECIAL3 */
+                                         source1, source2, dest,
+                                         015, /* PRECR.QB.PH */
+                                         021 /* CMPU.EQ.QB */));
+}
+void
 orc_mips_emit_cmp_lt_ph (OrcCompiler *compiler,
                          OrcMipsRegister source1,
                          OrcMipsRegister source2)
index 88c44da..a54f6f6 100644 (file)
@@ -146,6 +146,7 @@ void orc_mips_emit_repl_ph (OrcCompiler *compiler, OrcMipsRegister dest, int val
 void orc_mips_emit_replv_qb (OrcCompiler *compiler, OrcMipsRegister dest, OrcMipsRegister source);
 void orc_mips_emit_replv_ph (OrcCompiler *compiler, OrcMipsRegister dest, OrcMipsRegister source);
 void orc_mips_emit_preceu_ph_qbr (OrcCompiler *compiler, OrcMipsRegister dest, OrcMipsRegister source);
+void orc_mips_emit_precr_qb_ph (OrcCompiler *compiler, OrcMipsRegister dest, OrcMipsRegister source1, OrcMipsRegister source2);
 void orc_mips_emit_cmp_lt_ph (OrcCompiler *compiler, OrcMipsRegister source1, OrcMipsRegister source2);
 void orc_mips_emit_pick_ph (OrcCompiler *compiler, OrcMipsRegister dest, OrcMipsRegister source1, OrcMipsRegister source2);