mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-04 05:31:51 +00:00
A couple of new entries.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27993 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2fdd95eee7
commit
43824e8216
@ -1107,3 +1107,40 @@ icc generates:
|
||||
|
||||
So icc is smart enough to know that B is in memory so it doesn't load it and
|
||||
store it back to stack.
|
||||
|
||||
//===---------------------------------------------------------------------===//
|
||||
|
||||
__m128d test1( __m128d A, __m128d B) {
|
||||
return _mm_shuffle_pd(A, B, 0x3);
|
||||
}
|
||||
|
||||
compiles to
|
||||
|
||||
shufpd $3, %xmm1, %xmm0
|
||||
|
||||
Perhaps it's better to use unpckhpd instead?
|
||||
|
||||
unpckhpd %xmm1, %xmm0
|
||||
|
||||
Don't know if unpckhpd is faster. But it is shorter.
|
||||
|
||||
//===---------------------------------------------------------------------===//
|
||||
|
||||
typedef short v8i16 __attribute__ ((__vector_size__ (16)));
|
||||
v8i16 test(v8i16 x, v8i16 y) {
|
||||
return x + y;
|
||||
}
|
||||
|
||||
compiles to
|
||||
|
||||
_test:
|
||||
paddw %xmm0, %xmm1
|
||||
movaps %xmm1, %xmm0
|
||||
ret
|
||||
|
||||
It should be
|
||||
|
||||
paddw %xmm1, %xmm0
|
||||
ret
|
||||
|
||||
since paddw is commutative.
|
||||
|
Loading…
x
Reference in New Issue
Block a user