diff options
| author | Benjamin Kramer <benny.kra@googlemail.com> | 2011-02-12 17:58:16 +0000 |
|---|---|---|
| committer | Benjamin Kramer <benny.kra@googlemail.com> | 2011-02-12 17:58:16 +0000 |
| commit | 69affe6a944d6d703dbdca530471a0b2480c1385 (patch) | |
| tree | c28e2c7d390f763448bacec0611567407ffe97c2 /llvm/lib | |
| parent | db2f54811d3b57ce18455e818d273f17a5edd4ea (diff) | |
| download | bcm5719-llvm-69affe6a944d6d703dbdca530471a0b2480c1385.tar.gz bcm5719-llvm-69affe6a944d6d703dbdca530471a0b2480c1385.zip | |
Add a note about SSE4.1 roundss/roundsd.
llvm-svn: 125438
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/X86/README-SSE.txt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/README-SSE.txt b/llvm/lib/Target/X86/README-SSE.txt index b2116e03b14..f16ec029e96 100644 --- a/llvm/lib/Target/X86/README-SSE.txt +++ b/llvm/lib/Target/X86/README-SSE.txt @@ -923,4 +923,15 @@ The insertps's of $0 are pointless complex copies. //===---------------------------------------------------------------------===// +If SSE4.1 is available we should inline rounding functions instead of emitting +a libcall. +floor: roundsd $0x01, %xmm, %xmm +ceil: roundsd $0x02, %xmm, %xmm + +and likewise for the single precision versions. + +Currently, SelectionDAGBuilder doesn't turn calls to these functions into the +corresponding nodes and some targets (including X86) aren't ready for them. + +//===---------------------------------------------------------------------===// |

