llvm.org GIT mirror llvm / 3409abe
[x86] add separate check prefix for SSE; NFC We want to check each test on each target, so we need another prefix when SSE and AVX diverge (as they will if we handle 32-byte and higher). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@298926 91177308-0d34-0410-b5e6-96231b3b80d8 Sanjay Patel 3 years ago
1 changed file(s) with 20 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
0 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
11 ; RUN: llc < %s -mtriple=i686-unknown-unknown | FileCheck %s --check-prefix=X32
2 ; RUN: llc < %s -mtriple=x86_64-unknown-unknown | FileCheck %s --check-prefix=X64
2 ; RUN: llc < %s -mtriple=x86_64-unknown-unknown | FileCheck %s --check-prefix=X64 --check-prefix=SSE2
33 ; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=AVX2 | FileCheck %s --check-prefix=X64 --check-prefix=AVX2
44
55 ; This tests codegen time inlining/optimization of memcmp
176176 ; X32-NEXT: testl %eax, %eax
177177 ; X32-NEXT: setne %al
178178 ; X32-NEXT: retl
179 ;
180 ; SSE2-LABEL: length16:
181 ; SSE2: # BB#0:
182 ; SSE2-NEXT: movdqu (%rsi), %xmm0
183 ; SSE2-NEXT: movdqu (%rdi), %xmm1
184 ; SSE2-NEXT: pcmpeqb %xmm0, %xmm1
185 ; SSE2-NEXT: pmovmskb %xmm1, %eax
186 ; SSE2-NEXT: cmpl $65535, %eax # imm = 0xFFFF
187 ; SSE2-NEXT: setne %al
188 ; SSE2-NEXT: retq
179189 ;
180190 ; AVX2-LABEL: length16:
181191 ; AVX2: # BB#0:
203213 ; X32-NEXT: sete %al
204214 ; X32-NEXT: retl
205215 ;
216 ; SSE2-LABEL: length16_const:
217 ; SSE2: # BB#0:
218 ; SSE2-NEXT: movdqu (%rdi), %xmm0
219 ; SSE2-NEXT: pcmpeqb {{.*}}(%rip), %xmm0
220 ; SSE2-NEXT: pmovmskb %xmm0, %eax
221 ; SSE2-NEXT: cmpl $65535, %eax # imm = 0xFFFF
222 ; SSE2-NEXT: sete %al
223 ; SSE2-NEXT: retq
224 ;
206225 ; AVX2-LABEL: length16_const:
207226 ; AVX2: # BB#0:
208227 ; AVX2-NEXT: vmovdqu (%rdi), %xmm0