diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-08-21 21:00:15 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-08-21 21:00:15 +0000 |
commit | 9a6e0fa7bc81d33fb9a560e675319f42531724fe (patch) | |
tree | a41725c80694a8834cd1eb9557d175b2880cb389 /test/CodeGen/X86/byval4.ll | |
parent | 1046f62410b39acfe520af2e6b561831c8c2d4f5 (diff) | |
download | external_llvm-9a6e0fa7bc81d33fb9a560e675319f42531724fe.zip external_llvm-9a6e0fa7bc81d33fb9a560e675319f42531724fe.tar.gz external_llvm-9a6e0fa7bc81d33fb9a560e675319f42531724fe.tar.bz2 |
Fix a number of byval / memcpy / memset related codegen issues.
1. x86-64 byval alignment should be max of 8 and alignment of type. Previously the code was not doing what the commit message was saying.
2. Do not use byte repeat move and store operations. These are slow.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55139 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/byval4.ll')
-rw-r--r-- | test/CodeGen/X86/byval4.ll | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/CodeGen/X86/byval4.ll b/test/CodeGen/X86/byval4.ll index d2fa9e2..5576c36 100644 --- a/test/CodeGen/X86/byval4.ll +++ b/test/CodeGen/X86/byval4.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | llc -march=x86-64 | grep rep.movsw | count 2 +; RUN: llvm-as < %s | llc -march=x86-64 | grep rep.movsq | count 2 ; RUN: llvm-as < %s | llc -march=x86 | grep rep.movsl | count 2 %struct.s = type { i16, i16, i16, i16, i16, i16, i16, i16, @@ -13,7 +13,7 @@ define void @g(i16 signext %a1, i16 signext %a2, i16 signext %a3, - i16 signext %a4, i16 signext %a5, i16 signext %a6) { + i16 signext %a4, i16 signext %a5, i16 signext %a6) nounwind { entry: %a = alloca %struct.s, align 16 %tmp = getelementptr %struct.s* %a, i32 0, i32 0 |