]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/CodeGen/X86/memset-2.ll
Update LLVM to r100181.
[FreeBSD/FreeBSD.git] / test / CodeGen / X86 / memset-2.ll
1 ; RUN: llc < %s | FileCheck %s
2
3 target triple = "i386"
4
5 declare void @llvm.memset.i32(i8*, i8, i32, i32) nounwind
6
7 define fastcc void @t1() nounwind {
8 entry:
9 ; CHECK: t1:
10 ; CHECK: call memset
11   call void @llvm.memset.i32( i8* null, i8 0, i32 188, i32 1 ) nounwind
12   unreachable
13 }
14
15 define fastcc void @t2(i8 signext %c) nounwind {
16 entry:
17 ; CHECK: t2:
18 ; CHECK: call memset
19   call void @llvm.memset.i32( i8* undef, i8 %c, i32 76, i32 1 ) nounwind
20   unreachable
21 }