mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-22 20:20:03 +00:00
add a note
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36028 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4953e92ad0
commit
7c162645ae
@ -1049,3 +1049,21 @@ int decode_byte (const decode_t* decode) {
|
||||
|
||||
//===---------------------------------------------------------------------===//
|
||||
|
||||
This:
|
||||
#include <xmmintrin.h>
|
||||
unsigned test(float f) {
|
||||
return _mm_cvtsi128_si32( (__m128i) _mm_set_ss( f ));
|
||||
}
|
||||
|
||||
Compiles to:
|
||||
_test:
|
||||
movss 4(%esp), %xmm0
|
||||
movd %xmm0, %eax
|
||||
ret
|
||||
|
||||
it should compile to a move from the stack slot directly into eax. DAGCombine
|
||||
has this xform, but it is currently disabled until the alignment fields of
|
||||
the load/store nodes are trustworthy.
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user