llvm.org GIT mirror llvm / 9292136
llvm/test/CodeGen/X86/memset.ll: FileCheck-ize, and add another case on +avx. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167975 91177308-0d34-0410-b5e6-96231b3b80d8 NAKAMURA Takumi 7 years ago
1 changed file(s) with 23 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
None ; RUN: llc < %s -march=x86 -mcpu=pentium2 -mtriple=i686-apple-darwin8.8.0 | grep mov | count 9
1 ; RUN: llc < %s -march=x86 -mcpu=pentium3 -mtriple=i686-apple-darwin8.8.0 | grep mov | count 3
0 ; RUN: llc < %s -march=x86 -mcpu=pentium2 -mtriple=i686-apple-darwin8.8.0 | FileCheck %s --check-prefix=X86
1 ; RUN: llc < %s -march=x86 -mcpu=pentium3 -mtriple=i686-apple-darwin8.8.0 | FileCheck %s --check-prefix=XMM
2 ; RUN: llc < %s -march=x86 -mcpu=bdver1 -mtriple=i686-apple-darwin8.8.0 | FileCheck %s --check-prefix=YMM
23
34 %struct.x = type { i16, i16 }
45
78 %up_mvd = alloca [8 x %struct.x] ; <[8 x %struct.x]*> [#uses=2]
89 %up_mvd116 = getelementptr [8 x %struct.x]* %up_mvd, i32 0, i32 0 ; <%struct.x*> [#uses=1]
910 %tmp110117 = bitcast [8 x %struct.x]* %up_mvd to i8* ; [#uses=1]
11
1012 call void @llvm.memset.p0i8.i64(i8* %tmp110117, i8 0, i64 32, i32 8, i1 false)
13 ; X86: movl $0,
14 ; X86: movl $0,
15 ; X86: movl $0,
16 ; X86: movl $0,
17 ; X86: movl $0,
18 ; X86: movl $0,
19 ; X86: movl $0,
20 ; X86: movl $0,
21 ; X86-NOT: movl $0,
22
23 ; XMM: xorps %xmm{{[0-9]+}}, [[Z:%xmm[0-9]+]]
24 ; XMM: movaps [[Z]],
25 ; XMM: movaps [[Z]],
26 ; XMM-NOT: movaps
27
28 ; YMM: vxorps %ymm{{[0-9]+}}, %ymm{{[0-9]+}}, [[Z:%ymm[0-9]+]]
29 ; YMM: vmovaps [[Z]],
30 ; YMM-NOT: movaps
31
1132 call void @foo( %struct.x* %up_mvd116 ) nounwind
1233 ret void
1334 }