Lines Matching refs:X64
3 ; RUN: llc < %s -mtriple=x86_64-linux -mattr=+sse2 | FileCheck %s --check-prefixes=CHECK,X64-LIN
4 ; RUN: llc < %s -mtriple=x86_64-win32 -mattr=+sse2 | FileCheck %s --check-prefixes=CHECK,X64-WIN
35 ; X64-LIN-LABEL: test3:
36 ; X64-LIN: # %bb.0: # %entry
37 ; X64-LIN-NEXT: movl %esi, %eax
38 ; X64-LIN-NEXT: notl %eax
39 ; X64-LIN-NEXT: andl %edi, %eax
40 ; X64-LIN-NEXT: shrl %eax
41 ; X64-LIN-NEXT: retq
43 ; X64-WIN-LABEL: test3:
44 ; X64-WIN: # %bb.0: # %entry
45 ; X64-WIN-NEXT: movl %edx, %eax
46 ; X64-WIN-NEXT: notl %eax
47 ; X64-WIN-NEXT: andl %ecx, %eax
48 ; X64-WIN-NEXT: shrl %eax
49 ; X64-WIN-NEXT: retq
75 ; X64-LIN-LABEL: test4:
76 ; X64-LIN: # %bb.0: # %entry
77 ; X64-LIN-NEXT: movl %edi, %eax
78 ; X64-LIN-NEXT: .p2align 4, 0x90
79 ; X64-LIN-NEXT: .LBB3_1: # %bb
80 ; X64-LIN-NEXT: # =>This Inner Loop Header: Depth=1
81 ; X64-LIN-NEXT: xorl %esi, %eax
82 ; X64-LIN-NEXT: movl %eax, %ecx
83 ; X64-LIN-NEXT: notl %ecx
84 ; X64-LIN-NEXT: andl %esi, %ecx
85 ; X64-LIN-NEXT: addl %ecx, %ecx
86 ; X64-LIN-NEXT: movl %ecx, %esi
87 ; X64-LIN-NEXT: jne .LBB3_1
88 ; X64-LIN-NEXT: # %bb.2: # %bb12
89 ; X64-LIN-NEXT: retq
91 ; X64-WIN-LABEL: test4:
92 ; X64-WIN: # %bb.0: # %entry
93 ; X64-WIN-NEXT: movl %ecx, %eax
94 ; X64-WIN-NEXT: .p2align 4, 0x90
95 ; X64-WIN-NEXT: .LBB3_1: # %bb
96 ; X64-WIN-NEXT: # =>This Inner Loop Header: Depth=1
97 ; X64-WIN-NEXT: xorl %edx, %eax
98 ; X64-WIN-NEXT: movl %eax, %ecx
99 ; X64-WIN-NEXT: notl %ecx
100 ; X64-WIN-NEXT: andl %edx, %ecx
101 ; X64-WIN-NEXT: addl %ecx, %ecx
102 ; X64-WIN-NEXT: movl %ecx, %edx
103 ; X64-WIN-NEXT: jne .LBB3_1
104 ; X64-WIN-NEXT: # %bb.2: # %bb12
105 ; X64-WIN-NEXT: retq
141 ; X64-LIN-LABEL: test5:
142 ; X64-LIN: # %bb.0: # %entry
143 ; X64-LIN-NEXT: movl %edi, %eax
144 ; X64-LIN-NEXT: .p2align 4, 0x90
145 ; X64-LIN-NEXT: .LBB4_1: # %bb
146 ; X64-LIN-NEXT: # =>This Inner Loop Header: Depth=1
147 ; X64-LIN-NEXT: xorl %esi, %eax
148 ; X64-LIN-NEXT: movl %eax, %ecx
149 ; X64-LIN-NEXT: notl %ecx
150 ; X64-LIN-NEXT: andl %esi, %ecx
151 ; X64-LIN-NEXT: addl %ecx, %ecx
152 ; X64-LIN-NEXT: testw %cx, %cx
153 ; X64-LIN-NEXT: movl %ecx, %esi
154 ; X64-LIN-NEXT: jne .LBB4_1
155 ; X64-LIN-NEXT: # %bb.2: # %bb12
156 ; X64-LIN-NEXT: # kill: def $ax killed $ax killed $eax
157 ; X64-LIN-NEXT: retq
159 ; X64-WIN-LABEL: test5:
160 ; X64-WIN: # %bb.0: # %entry
161 ; X64-WIN-NEXT: # kill: def $dx killed $dx def $edx
162 ; X64-WIN-NEXT: movl %ecx, %eax
163 ; X64-WIN-NEXT: .p2align 4, 0x90
164 ; X64-WIN-NEXT: .LBB4_1: # %bb
165 ; X64-WIN-NEXT: # =>This Inner Loop Header: Depth=1
166 ; X64-WIN-NEXT: xorl %edx, %eax
167 ; X64-WIN-NEXT: movl %eax, %ecx
168 ; X64-WIN-NEXT: notl %ecx
169 ; X64-WIN-NEXT: andl %edx, %ecx
170 ; X64-WIN-NEXT: addl %ecx, %ecx
171 ; X64-WIN-NEXT: testw %cx, %cx
172 ; X64-WIN-NEXT: movl %ecx, %edx
173 ; X64-WIN-NEXT: jne .LBB4_1
174 ; X64-WIN-NEXT: # %bb.2: # %bb12
175 ; X64-WIN-NEXT: # kill: def $ax killed $ax killed $eax
176 ; X64-WIN-NEXT: retq
210 ; X64-LIN-LABEL: test6:
211 ; X64-LIN: # %bb.0: # %entry
212 ; X64-LIN-NEXT: movl %edi, %eax
213 ; X64-LIN-NEXT: .p2align 4, 0x90
214 ; X64-LIN-NEXT: .LBB5_1: # %bb
215 ; X64-LIN-NEXT: # =>This Inner Loop Header: Depth=1
216 ; X64-LIN-NEXT: xorb %sil, %al
217 ; X64-LIN-NEXT: movl %eax, %ecx
218 ; X64-LIN-NEXT: notb %cl
219 ; X64-LIN-NEXT: andb %sil, %cl
220 ; X64-LIN-NEXT: addb %cl, %cl
221 ; X64-LIN-NEXT: movl %ecx, %esi
222 ; X64-LIN-NEXT: jne .LBB5_1
223 ; X64-LIN-NEXT: # %bb.2: # %bb12
224 ; X64-LIN-NEXT: # kill: def $al killed $al killed $eax
225 ; X64-LIN-NEXT: retq
227 ; X64-WIN-LABEL: test6:
228 ; X64-WIN: # %bb.0: # %entry
229 ; X64-WIN-NEXT: movl %ecx, %eax
230 ; X64-WIN-NEXT: .p2align 4, 0x90
231 ; X64-WIN-NEXT: .LBB5_1: # %bb
232 ; X64-WIN-NEXT: # =>This Inner Loop Header: Depth=1
233 ; X64-WIN-NEXT: xorb %dl, %al
234 ; X64-WIN-NEXT: movl %eax, %ecx
235 ; X64-WIN-NEXT: notb %cl
236 ; X64-WIN-NEXT: andb %dl, %cl
237 ; X64-WIN-NEXT: addb %cl, %cl
238 ; X64-WIN-NEXT: movl %ecx, %edx
239 ; X64-WIN-NEXT: jne .LBB5_1
240 ; X64-WIN-NEXT: # %bb.2: # %bb12
241 ; X64-WIN-NEXT: retq
275 ; X64-LIN-LABEL: test7:
276 ; X64-LIN: # %bb.0: # %entry
277 ; X64-LIN-NEXT: movl %edi, %eax
278 ; X64-LIN-NEXT: .p2align 4, 0x90
279 ; X64-LIN-NEXT: .LBB6_1: # %bb
280 ; X64-LIN-NEXT: # =>This Inner Loop Header: Depth=1
281 ; X64-LIN-NEXT: xorl %esi, %eax
282 ; X64-LIN-NEXT: movl %eax, %ecx
283 ; X64-LIN-NEXT: xorl $2147483646, %ecx # imm = 0x7FFFFFFE
284 ; X64-LIN-NEXT: andl %esi, %ecx
285 ; X64-LIN-NEXT: addl %ecx, %ecx
286 ; X64-LIN-NEXT: movl %ecx, %esi
287 ; X64-LIN-NEXT: jne .LBB6_1
288 ; X64-LIN-NEXT: # %bb.2: # %bb12
289 ; X64-LIN-NEXT: retq
291 ; X64-WIN-LABEL: test7:
292 ; X64-WIN: # %bb.0: # %entry
293 ; X64-WIN-NEXT: movl %ecx, %eax
294 ; X64-WIN-NEXT: .p2align 4, 0x90
295 ; X64-WIN-NEXT: .LBB6_1: # %bb
296 ; X64-WIN-NEXT: # =>This Inner Loop Header: Depth=1
297 ; X64-WIN-NEXT: xorl %edx, %eax
298 ; X64-WIN-NEXT: movl %eax, %ecx
299 ; X64-WIN-NEXT: xorl $2147483646, %ecx # imm = 0x7FFFFFFE
300 ; X64-WIN-NEXT: andl %edx, %ecx
301 ; X64-WIN-NEXT: addl %ecx, %ecx
302 ; X64-WIN-NEXT: movl %ecx, %edx
303 ; X64-WIN-NEXT: jne .LBB6_1
304 ; X64-WIN-NEXT: # %bb.2: # %bb12
305 ; X64-WIN-NEXT: retq
329 ; X64-LIN-LABEL: test8:
330 ; X64-LIN: # %bb.0: # %entry
331 ; X64-LIN-NEXT: movl %edi, %eax
332 ; X64-LIN-NEXT: notl %eax
333 ; X64-LIN-NEXT: retq
335 ; X64-WIN-LABEL: test8:
336 ; X64-WIN: # %bb.0: # %entry
337 ; X64-WIN-NEXT: movl %ecx, %eax
338 ; X64-WIN-NEXT: notl %eax
339 ; X64-WIN-NEXT: retq
354 ; X64-LIN-LABEL: test9:
355 ; X64-LIN: # %bb.0:
356 ; X64-LIN-NEXT: movl %edi, %eax
357 ; X64-LIN-NEXT: notl %eax
358 ; X64-LIN-NEXT: andl $4096, %eax # imm = 0x1000
359 ; X64-LIN-NEXT: retq
361 ; X64-WIN-LABEL: test9:
362 ; X64-WIN: # %bb.0:
363 ; X64-WIN-NEXT: movl %ecx, %eax
364 ; X64-WIN-NEXT: notl %eax
365 ; X64-WIN-NEXT: andl $4096, %eax # imm = 0x1000
366 ; X64-WIN-NEXT: retq
379 ; X64-LIN-LABEL: test10:
380 ; X64-LIN: # %bb.0:
381 ; X64-LIN-NEXT: andnps {{.*}}(%rip), %xmm0
382 ; X64-LIN-NEXT: retq
384 ; X64-WIN-LABEL: test10:
385 ; X64-WIN: # %bb.0:
386 ; X64-WIN-NEXT: movaps (%rcx), %xmm0
387 ; X64-WIN-NEXT: andnps __xmm@{{.*}}(%rip), %xmm0
388 ; X64-WIN-NEXT: retq
407 ; X64-LIN-LABEL: PR17487:
408 ; X64-LIN: # %bb.0:
409 ; X64-LIN-NEXT: movl %edi, %eax
410 ; X64-LIN-NEXT: andl $1, %eax
411 ; X64-LIN-NEXT: retq
413 ; X64-WIN-LABEL: PR17487:
414 ; X64-WIN: # %bb.0:
415 ; X64-WIN-NEXT: movzbl %cl, %eax
416 ; X64-WIN-NEXT: andl $1, %eax
417 ; X64-WIN-NEXT: retq
436 ; X64-LIN-LABEL: test11:
437 ; X64-LIN: # %bb.0:
438 ; X64-LIN-NEXT: movl %edi, %ecx
439 ; X64-LIN-NEXT: movl $-2, %eax
440 ; X64-LIN-NEXT: # kill: def $cl killed $cl killed $ecx
441 ; X64-LIN-NEXT: roll %cl, %eax
442 ; X64-LIN-NEXT: retq
444 ; X64-WIN-LABEL: test11:
445 ; X64-WIN: # %bb.0:
446 ; X64-WIN-NEXT: movl $-2, %eax
447 ; X64-WIN-NEXT: # kill: def $cl killed $cl killed $ecx
448 ; X64-WIN-NEXT: roll %cl, %eax
449 ; X64-WIN-NEXT: retq
468 ; X64-LIN-LABEL: test12:
469 ; X64-LIN: # %bb.0:
470 ; X64-LIN-NEXT: movslq %edx, %rax
471 ; X64-LIN-NEXT: notq %rax
472 ; X64-LIN-NEXT: shlq $4, %rax
473 ; X64-LIN-NEXT: addq %rdi, %rax
474 ; X64-LIN-NEXT: retq
476 ; X64-WIN-LABEL: test12:
477 ; X64-WIN: # %bb.0:
478 ; X64-WIN-NEXT: movslq %r8d, %rax
479 ; X64-WIN-NEXT: notq %rax
480 ; X64-WIN-NEXT: shlq $4, %rax
481 ; X64-WIN-NEXT: addq %rcx, %rax
482 ; X64-WIN-NEXT: retq
499 ; X64-LIN-LABEL: PR39657:
500 ; X64-LIN: # %bb.0:
501 ; X64-LIN-NEXT: notq %rsi
502 ; X64-LIN-NEXT: movl (%rdi,%rsi,4), %eax
503 ; X64-LIN-NEXT: retq
505 ; X64-WIN-LABEL: PR39657:
506 ; X64-WIN: # %bb.0:
507 ; X64-WIN-NEXT: notq %rdx
508 ; X64-WIN-NEXT: movl (%rcx,%rdx,4), %eax
509 ; X64-WIN-NEXT: retq
526 ; X64-LIN-LABEL: add_of_not:
527 ; X64-LIN: # %bb.0:
528 ; X64-LIN-NEXT: # kill: def $esi killed $esi def $rsi
529 ; X64-LIN-NEXT: # kill: def $edi killed $edi def $rdi
530 ; X64-LIN-NEXT: notl %esi
531 ; X64-LIN-NEXT: leal (%rsi,%rdi), %eax
532 ; X64-LIN-NEXT: retq
534 ; X64-WIN-LABEL: add_of_not:
535 ; X64-WIN: # %bb.0:
536 ; X64-WIN-NEXT: # kill: def $edx killed $edx def $rdx
537 ; X64-WIN-NEXT: # kill: def $ecx killed $ecx def $rcx
538 ; X64-WIN-NEXT: notl %edx
539 ; X64-WIN-NEXT: leal (%rdx,%rcx), %eax
540 ; X64-WIN-NEXT: retq
554 ; X64-LIN-LABEL: add_of_not_decrement:
555 ; X64-LIN: # %bb.0:
556 ; X64-LIN-NEXT: # kill: def $esi killed $esi def $rsi
557 ; X64-LIN-NEXT: # kill: def $edi killed $edi def $rdi
558 ; X64-LIN-NEXT: notl %esi
559 ; X64-LIN-NEXT: leal (%rsi,%rdi), %eax
560 ; X64-LIN-NEXT: retq
562 ; X64-WIN-LABEL: add_of_not_decrement:
563 ; X64-WIN: # %bb.0:
564 ; X64-WIN-NEXT: # kill: def $edx killed $edx def $rdx
565 ; X64-WIN-NEXT: # kill: def $ecx killed $ecx def $rcx
566 ; X64-WIN-NEXT: notl %edx
567 ; X64-WIN-NEXT: leal (%rdx,%rcx), %eax
568 ; X64-WIN-NEXT: retq
582 ; X64-LIN-LABEL: vec_add_of_not:
583 ; X64-LIN: # %bb.0:
584 ; X64-LIN-NEXT: pcmpeqd %xmm2, %xmm2
585 ; X64-LIN-NEXT: pxor %xmm1, %xmm2
586 ; X64-LIN-NEXT: paddd %xmm2, %xmm0
587 ; X64-LIN-NEXT: retq
589 ; X64-WIN-LABEL: vec_add_of_not:
590 ; X64-WIN: # %bb.0:
591 ; X64-WIN-NEXT: pcmpeqd %xmm0, %xmm0
592 ; X64-WIN-NEXT: pxor (%rdx), %xmm0
593 ; X64-WIN-NEXT: paddd (%rcx), %xmm0
594 ; X64-WIN-NEXT: retq
608 ; X64-LIN-LABEL: vec_add_of_not_decrement:
609 ; X64-LIN: # %bb.0:
610 ; X64-LIN-NEXT: pcmpeqd %xmm2, %xmm2
611 ; X64-LIN-NEXT: pxor %xmm1, %xmm2
612 ; X64-LIN-NEXT: paddd %xmm2, %xmm0
613 ; X64-LIN-NEXT: retq
615 ; X64-WIN-LABEL: vec_add_of_not_decrement:
616 ; X64-WIN: # %bb.0:
617 ; X64-WIN-NEXT: pcmpeqd %xmm0, %xmm0
618 ; X64-WIN-NEXT: pxor (%rdx), %xmm0
619 ; X64-WIN-NEXT: paddd (%rcx), %xmm0
620 ; X64-WIN-NEXT: retq
634 ; X64-LIN-LABEL: vec_add_of_not_with_undef:
635 ; X64-LIN: # %bb.0:
636 ; X64-LIN-NEXT: psubd %xmm1, %xmm0
637 ; X64-LIN-NEXT: pcmpeqd %xmm1, %xmm1
638 ; X64-LIN-NEXT: paddd %xmm1, %xmm0
639 ; X64-LIN-NEXT: retq
641 ; X64-WIN-LABEL: vec_add_of_not_with_undef:
642 ; X64-WIN: # %bb.0:
643 ; X64-WIN-NEXT: movdqa (%rcx), %xmm1
644 ; X64-WIN-NEXT: psubd (%rdx), %xmm1
645 ; X64-WIN-NEXT: pcmpeqd %xmm0, %xmm0
646 ; X64-WIN-NEXT: paddd %xmm1, %xmm0
647 ; X64-WIN-NEXT: retq
661 ; X64-LIN-LABEL: vec_add_of_not_with_undef_decrement:
662 ; X64-LIN: # %bb.0:
663 ; X64-LIN-NEXT: psubd %xmm1, %xmm0
664 ; X64-LIN-NEXT: pcmpeqd %xmm1, %xmm1
665 ; X64-LIN-NEXT: psubd %xmm1, %xmm0
666 ; X64-LIN-NEXT: retq
668 ; X64-WIN-LABEL: vec_add_of_not_with_undef_decrement:
669 ; X64-WIN: # %bb.0:
670 ; X64-WIN-NEXT: movdqa (%rcx), %xmm0
671 ; X64-WIN-NEXT: psubd (%rdx), %xmm0
672 ; X64-WIN-NEXT: pcmpeqd %xmm1, %xmm1
673 ; X64-WIN-NEXT: psubd %xmm1, %xmm0
674 ; X64-WIN-NEXT: retq