diff options
| author | Evan Cheng <evan.cheng@apple.com> | 2006-03-28 02:49:12 +0000 | 
|---|---|---|
| committer | Evan Cheng <evan.cheng@apple.com> | 2006-03-28 02:49:12 +0000 | 
| commit | 08b473c61923fd62239eb23b84a69891e4454e12 (patch) | |
| tree | c3fa58d916bf8f698c8caddbc381e4d0a4ea6900 /llvm | |
| parent | 3765fadef693f8b16efadf8ec75de8e7744e5fde (diff) | |
| download | bcm5719-llvm-08b473c61923fd62239eb23b84a69891e4454e12.tar.gz bcm5719-llvm-08b473c61923fd62239eb23b84a69891e4454e12.zip  | |
Added a couple of entries about movhps and movlhps.
llvm-svn: 27212
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/lib/Target/X86/README.txt | 26 | 
1 files changed, 26 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/README.txt b/llvm/lib/Target/X86/README.txt index 79f8e6431af..9618d9cb65c 100644 --- a/llvm/lib/Target/X86/README.txt +++ b/llvm/lib/Target/X86/README.txt @@ -662,3 +662,29 @@ call _foo  Obviously it would have been better for the first mov (or any op) to store  directly %esp[0] if there are no other uses. + +//===---------------------------------------------------------------------===// + +Is it really a good idea to use movlhps to move 1 double-precision FP value from +low quadword of source to high quadword of destination? + +e.g. + +void test2 (v2sd *b, double X, double Y) { +  v2sd a = (v2sd) {X, X*Y}; +  *b = a; +} + +	movsd 8(%esp), %xmm0 +	movapd %xmm0, %xmm1 +	mulsd 16(%esp), %xmm1 +	movlhps %xmm1, %xmm0 +	movl 4(%esp), %eax +	movapd %xmm0, (%eax) +	ret + +icc uses unpcklpd instead. + +//===---------------------------------------------------------------------===// + +Use movhps and movlhps to update upper 64-bits of a v4sf value.  | 

