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 | 7fed26826a06a92975666b6a555af27261827a4a (patch) | |
| tree | cffe293c8930b7236aea0e0c79efbbaf7da3b2f9 /test | |
| parent | d9bfc2b3ac57f002e702f8922afca448b0e14e3e (diff) | |
| download | external_llvm-7fed26826a06a92975666b6a555af27261827a4a.zip external_llvm-7fed26826a06a92975666b6a555af27261827a4a.tar.gz external_llvm-7fed26826a06a92975666b6a555af27261827a4a.tar.bz2 | |
- 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')
| -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 e2eba76..702632c 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 +} |
