diff options
author | Evan Cheng <evan.cheng@apple.com> | 2010-04-01 18:19:11 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2010-04-01 18:19:11 +0000 |
commit | 94107ba9ceaa199f8e5c03912511b0619c84226d (patch) | |
tree | cffe293c8930b7236aea0e0c79efbbaf7da3b2f9 /test/CodeGen/X86/memset-2.ll | |
parent | 58c7aa61d49f155a1d36b9c14273de5a630de8e1 (diff) |
- Avoid using floating point stores to implement memset unless the value is zero.
- Do not try to infer GV alignment unless its type is sized. It's not possible to infer alignment if it has opaque type.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100118 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/memset-2.ll')
-rw-r--r-- | test/CodeGen/X86/memset-2.ll | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/test/CodeGen/X86/memset-2.ll b/test/CodeGen/X86/memset-2.ll index e2eba76da8..702632cde9 100644 --- a/test/CodeGen/X86/memset-2.ll +++ b/test/CodeGen/X86/memset-2.ll @@ -4,10 +4,18 @@ target triple = "i386" declare void @llvm.memset.i32(i8*, i8, i32, i32) nounwind -define fastcc void @t() nounwind { +define fastcc void @t1() nounwind { entry: -; CHECK: t: +; CHECK: t1: ; CHECK: call memset call void @llvm.memset.i32( i8* null, i8 0, i32 188, i32 1 ) nounwind unreachable } + +define fastcc void @t2(i8 signext %c) nounwind { +entry: +; CHECK: t2: +; CHECK: call memset + call void @llvm.memset.i32( i8* undef, i8 %c, i32 76, i32 1 ) nounwind + unreachable +} |