diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-01-23 23:17:41 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-01-23 23:17:41 +0000 |
commit | 5a67b819a91592a2e433c2db36481dd7d6ee7bf6 (patch) | |
tree | ef8b23bf5acebabc33fea3c8928a9f83b85ddeae /test/CodeGen/X86/byval4.ll | |
parent | 7e520b50509cf5f80d294f4ebcc08ae27590a4ee (diff) | |
download | external_llvm-5a67b819a91592a2e433c2db36481dd7d6ee7bf6.zip external_llvm-5a67b819a91592a2e433c2db36481dd7d6ee7bf6.tar.gz external_llvm-5a67b819a91592a2e433c2db36481dd7d6ee7bf6.tar.bz2 |
Let each target decide byval alignment. For X86, it's 4-byte unless the aggregare contains SSE vector(s). For x86-64, it's max of 8 or alignment of the type.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46286 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 9ce635b..591749f 100644 --- a/test/CodeGen/X86/byval4.ll +++ b/test/CodeGen/X86/byval4.ll @@ -1,5 +1,5 @@ -; RUN: llvm-as < %s | llc -march=x86-64 | grep rep.movsl | count 2 -; RUN: llvm-as < %s | llc -march=x86 | grep rep.movsw | count 2 +; RUN: llvm-as < %s | llc -march=x86-64 | grep rep.movsw | count 2 +; RUN: llvm-as < %s | llc -march=x86 | grep rep.movsl | count 2 %struct.s = type { i16, i16, i16, i16, i16, i16 } |