diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-09-04 22:59:58 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-09-04 22:59:58 +0000 |
commit | 6c94b99c6285f6f7156edd20fabf4c0918013600 (patch) | |
tree | 39d7f0698872c9b85272bc3a19652b3bd64d2b2c /llvm/test/CodeGen/X86/combine-lds.ll | |
parent | 40519f03703d2ee412b5f930f3d2edf79fe260c9 (diff) | |
download | bcm5719-llvm-6c94b99c6285f6f7156edd20fabf4c0918013600.tar.gz bcm5719-llvm-6c94b99c6285f6f7156edd20fabf4c0918013600.zip |
For whatever the reason, x86 CallingConv::Fast (i.e. fastcc) was not passing scalar arguments in registers. This patch defines a new fastcc CC which is slightly different from the FastCall CC. In addition to passing integer arguments in ECX and EDX, it also specify doubles are passed in 8-byte slots which are 8-byte aligned (instead of 4-byte aligned). This avoids a potential performance hazard where doubles span cacheline boundaries.
llvm-svn: 55807
Diffstat (limited to 'llvm/test/CodeGen/X86/combine-lds.ll')
-rw-r--r-- | llvm/test/CodeGen/X86/combine-lds.ll | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/test/CodeGen/X86/combine-lds.ll b/llvm/test/CodeGen/X86/combine-lds.ll index 5e0ad996678..a78a042d7ec 100644 --- a/llvm/test/CodeGen/X86/combine-lds.ll +++ b/llvm/test/CodeGen/X86/combine-lds.ll @@ -1,7 +1,6 @@ -; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep movsd -; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep mov | count 1 +; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep fldl | count 1 -define fastcc double @doload64(i64 %x) nounwind { +define double @doload64(i64 %x) nounwind { %tmp717 = bitcast i64 %x to double ret double %tmp717 } |