From d795e2b3b3bbefb65e4e61c82518925eb1a5a702 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Sun, 13 Jun 2010 14:18:50 -0700 Subject: [PATCH] mmx,sse: use shuffle macros --- orc/orcprogram-mmx.c | 4 ++-- orc/orcprogram-sse.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/orc/orcprogram-mmx.c b/orc/orcprogram-mmx.c index adddffc..9554eba 100644 --- a/orc/orcprogram-mmx.c +++ b/orc/orcprogram-mmx.c @@ -182,7 +182,7 @@ mmx_save_accumulators (OrcCompiler *compiler) case ORC_VAR_TYPE_ACCUMULATOR: src = compiler->vars[i].alloc; - orc_mmx_emit_pshufw (compiler, 0xee, src, compiler->tmpreg); + orc_mmx_emit_pshufw (compiler, ORC_MMX_SHUF(3,2,3,2), src, compiler->tmpreg); if (compiler->vars[i].size == 2) { orc_mmx_emit_660f (compiler, "paddw", 0xfd, compiler->tmpreg, src); @@ -191,7 +191,7 @@ mmx_save_accumulators (OrcCompiler *compiler) } if (compiler->vars[i].size == 2) { - orc_mmx_emit_pshufw (compiler, 0x55, src, compiler->tmpreg); + orc_mmx_emit_pshufw (compiler, ORC_MMX_SHUF(1,1,1,1), src, compiler->tmpreg); orc_mmx_emit_660f (compiler, "paddw", 0xfd, compiler->tmpreg, src); } diff --git a/orc/orcprogram-sse.c b/orc/orcprogram-sse.c index cc2cd4f..d5e83dd 100644 --- a/orc/orcprogram-sse.c +++ b/orc/orcprogram-sse.c @@ -189,7 +189,7 @@ sse_save_accumulators (OrcCompiler *compiler) case ORC_VAR_TYPE_ACCUMULATOR: src = compiler->vars[i].alloc; - orc_sse_emit_pshufd (compiler, 0xee, src, compiler->tmpreg); + orc_sse_emit_pshufd (compiler, ORC_SSE_SHUF(3,2,3,2), src, compiler->tmpreg); if (compiler->vars[i].size == 2) { orc_sse_emit_660f (compiler, "paddw", 0xfd, compiler->tmpreg, src); @@ -197,7 +197,7 @@ sse_save_accumulators (OrcCompiler *compiler) orc_sse_emit_660f (compiler, "paddd", 0xfe, compiler->tmpreg, src); } - orc_sse_emit_pshufd (compiler, 0x55, src, compiler->tmpreg); + orc_sse_emit_pshufd (compiler, ORC_SSE_SHUF(1,1,1,1), src, compiler->tmpreg); if (compiler->vars[i].size == 2) { orc_sse_emit_660f (compiler, "paddw", 0xfd, compiler->tmpreg, src); @@ -206,7 +206,7 @@ sse_save_accumulators (OrcCompiler *compiler) } if (compiler->vars[i].size == 2) { - orc_sse_emit_pshuflw (compiler, 0x55, src, compiler->tmpreg); + orc_sse_emit_pshuflw (compiler, ORC_SSE_SHUF(1,1,1,1), src, compiler->tmpreg); orc_sse_emit_660f (compiler, "paddw", 0xfd, compiler->tmpreg, src); } -- 2.7.4