compiler.cfg.intrinsics.simd: mod shuffle indices for shuffle-2-vectors-imm intrinsic so they wrap like a real instruction would

db4
Joe Groff 2010-05-14 01:20:05 -07:00
parent 9f9e145819
commit 465a1673eb
1 changed files with 1 additions and 1 deletions

View File

@ -278,7 +278,7 @@ PREDICATE: fixnum-vector-rep < int-vector-rep
: ^shuffle-2-vectors-imm ( src1 src2 shuffle rep -- dst )
[ rep-length 0 pad-tail ] keep {
{ double-2-rep [| src1 src2 shuffle rep |
shuffle first2 :> ( i j )
shuffle first2 [ 4 mod ] bi@ :> ( i j )
{
{ [ i j [ 2 < ] both? ] [
src1 shuffle rep ^shuffle-vector-imm