• Home
  • Raw
  • Download

Lines Matching refs:X64

3 …-unknown -mcpu=haswell                                  | FileCheck %s --check-prefixes=X64,X64-HSW
4 …-unknown -mcpu=btver2 | FileCheck %s --check-prefixes=X64,X64-JAG
6 … -mul-constant-optimization=false -mcpu=haswell | FileCheck %s --check-prefixes=X64-NOOPT,HSW-NOOPT
7 … -mul-constant-optimization=false -mcpu=btver2 | FileCheck %s --check-prefixes=X64-NOOPT,JAG-NOOPT
8 …-unknown -mcpu=slm | FileCheck %s --check-prefixes=X64,X64-SLM
9 … -mul-constant-optimization=false -mcpu=slm | FileCheck %s --check-prefixes=X64-NOOPT,SLM-NOOPT
17 ; X64-LABEL: test_mul_by_1:
18 ; X64: # %bb.0:
19 ; X64-NEXT: movl %edi, %eax
20 ; X64-NEXT: retq
27 ; X64-NOOPT-LABEL: test_mul_by_1:
28 ; X64-NOOPT: # %bb.0:
29 ; X64-NOOPT-NEXT: movl %edi, %eax
30 ; X64-NOOPT-NEXT: retq
42 ; X64-LABEL: test_mul_by_2:
43 ; X64: # %bb.0:
44 ; X64-NEXT: # kill: def $edi killed $edi def $rdi
45 ; X64-NEXT: leal (%rdi,%rdi), %eax
46 ; X64-NEXT: retq
54 ; X64-NOOPT-LABEL: test_mul_by_2:
55 ; X64-NOOPT: # %bb.0:
56 ; X64-NOOPT-NEXT: # kill: def $edi killed $edi def $rdi
57 ; X64-NOOPT-NEXT: leal (%rdi,%rdi), %eax
58 ; X64-NOOPT-NEXT: retq
70 ; X64-LABEL: test_mul_by_3:
71 ; X64: # %bb.0:
72 ; X64-NEXT: # kill: def $edi killed $edi def $rdi
73 ; X64-NEXT: leal (%rdi,%rdi,2), %eax
74 ; X64-NEXT: retq
81 ; X64-NOOPT-LABEL: test_mul_by_3:
82 ; X64-NOOPT: # %bb.0:
83 ; X64-NOOPT-NEXT: # kill: def $edi killed $edi def $rdi
84 ; X64-NOOPT-NEXT: leal (%rdi,%rdi,2), %eax
85 ; X64-NOOPT-NEXT: retq
97 ; X64-LABEL: test_mul_by_4:
98 ; X64: # %bb.0:
99 ; X64-NEXT: # kill: def $edi killed $edi def $rdi
100 ; X64-NEXT: leal (,%rdi,4), %eax
101 ; X64-NEXT: retq
109 ; X64-NOOPT-LABEL: test_mul_by_4:
110 ; X64-NOOPT: # %bb.0:
111 ; X64-NOOPT-NEXT: # kill: def $edi killed $edi def $rdi
112 ; X64-NOOPT-NEXT: leal (,%rdi,4), %eax
113 ; X64-NOOPT-NEXT: retq
125 ; X64-LABEL: test_mul_by_5:
126 ; X64: # %bb.0:
127 ; X64-NEXT: # kill: def $edi killed $edi def $rdi
128 ; X64-NEXT: leal (%rdi,%rdi,4), %eax
129 ; X64-NEXT: retq
136 ; X64-NOOPT-LABEL: test_mul_by_5:
137 ; X64-NOOPT: # %bb.0:
138 ; X64-NOOPT-NEXT: # kill: def $edi killed $edi def $rdi
139 ; X64-NOOPT-NEXT: leal (%rdi,%rdi,4), %eax
140 ; X64-NOOPT-NEXT: retq
153 ; X64-LABEL: test_mul_by_6:
154 ; X64: # %bb.0:
155 ; X64-NEXT: # kill: def $edi killed $edi def $rdi
156 ; X64-NEXT: addl %edi, %edi
157 ; X64-NEXT: leal (%rdi,%rdi,2), %eax
158 ; X64-NEXT: retq
165 ; X64-NOOPT-LABEL: test_mul_by_6:
166 ; X64-NOOPT: # %bb.0:
167 ; X64-NOOPT-NEXT: imull $6, %edi, %eax
168 ; X64-NOOPT-NEXT: retq
181 ; X64-LABEL: test_mul_by_7:
182 ; X64: # %bb.0:
183 ; X64-NEXT: # kill: def $edi killed $edi def $rdi
184 ; X64-NEXT: leal (,%rdi,8), %eax
185 ; X64-NEXT: subl %edi, %eax
186 ; X64-NEXT: retq
193 ; X64-NOOPT-LABEL: test_mul_by_7:
194 ; X64-NOOPT: # %bb.0:
195 ; X64-NOOPT-NEXT: imull $7, %edi, %eax
196 ; X64-NOOPT-NEXT: retq
208 ; X64-LABEL: test_mul_by_8:
209 ; X64: # %bb.0:
210 ; X64-NEXT: # kill: def $edi killed $edi def $rdi
211 ; X64-NEXT: leal (,%rdi,8), %eax
212 ; X64-NEXT: retq
220 ; X64-NOOPT-LABEL: test_mul_by_8:
221 ; X64-NOOPT: # %bb.0:
222 ; X64-NOOPT-NEXT: # kill: def $edi killed $edi def $rdi
223 ; X64-NOOPT-NEXT: leal (,%rdi,8), %eax
224 ; X64-NOOPT-NEXT: retq
236 ; X64-LABEL: test_mul_by_9:
237 ; X64: # %bb.0:
238 ; X64-NEXT: # kill: def $edi killed $edi def $rdi
239 ; X64-NEXT: leal (%rdi,%rdi,8), %eax
240 ; X64-NEXT: retq
247 ; X64-NOOPT-LABEL: test_mul_by_9:
248 ; X64-NOOPT: # %bb.0:
249 ; X64-NOOPT-NEXT: # kill: def $edi killed $edi def $rdi
250 ; X64-NOOPT-NEXT: leal (%rdi,%rdi,8), %eax
251 ; X64-NOOPT-NEXT: retq
264 ; X64-LABEL: test_mul_by_10:
265 ; X64: # %bb.0:
266 ; X64-NEXT: # kill: def $edi killed $edi def $rdi
267 ; X64-NEXT: addl %edi, %edi
268 ; X64-NEXT: leal (%rdi,%rdi,4), %eax
269 ; X64-NEXT: retq
276 ; X64-NOOPT-LABEL: test_mul_by_10:
277 ; X64-NOOPT: # %bb.0:
278 ; X64-NOOPT-NEXT: imull $10, %edi, %eax
279 ; X64-NOOPT-NEXT: retq
292 ; X64-HSW-LABEL: test_mul_by_11:
293 ; X64-HSW: # %bb.0:
294 ; X64-HSW-NEXT: # kill: def $edi killed $edi def $rdi
295 ; X64-HSW-NEXT: leal (%rdi,%rdi,4), %eax
296 ; X64-HSW-NEXT: leal (%rdi,%rax,2), %eax
297 ; X64-HSW-NEXT: retq
299 ; X64-JAG-LABEL: test_mul_by_11:
300 ; X64-JAG: # %bb.0:
301 ; X64-JAG-NEXT: # kill: def $edi killed $edi def $rdi
302 ; X64-JAG-NEXT: leal (%rdi,%rdi,4), %eax
303 ; X64-JAG-NEXT: leal (%rdi,%rax,2), %eax
304 ; X64-JAG-NEXT: retq
311 ; X64-NOOPT-LABEL: test_mul_by_11:
312 ; X64-NOOPT: # %bb.0:
313 ; X64-NOOPT-NEXT: imull $11, %edi, %eax
314 ; X64-NOOPT-NEXT: retq
316 ; X64-SLM-LABEL: test_mul_by_11:
317 ; X64-SLM: # %bb.0:
318 ; X64-SLM-NEXT: imull $11, %edi, %eax
319 ; X64-SLM-NEXT: retq
332 ; X64-LABEL: test_mul_by_12:
333 ; X64: # %bb.0:
334 ; X64-NEXT: # kill: def $edi killed $edi def $rdi
335 ; X64-NEXT: shll $2, %edi
336 ; X64-NEXT: leal (%rdi,%rdi,2), %eax
337 ; X64-NEXT: retq
344 ; X64-NOOPT-LABEL: test_mul_by_12:
345 ; X64-NOOPT: # %bb.0:
346 ; X64-NOOPT-NEXT: imull $12, %edi, %eax
347 ; X64-NOOPT-NEXT: retq
360 ; X64-HSW-LABEL: test_mul_by_13:
361 ; X64-HSW: # %bb.0:
362 ; X64-HSW-NEXT: # kill: def $edi killed $edi def $rdi
363 ; X64-HSW-NEXT: leal (%rdi,%rdi,2), %eax
364 ; X64-HSW-NEXT: leal (%rdi,%rax,4), %eax
365 ; X64-HSW-NEXT: retq
367 ; X64-JAG-LABEL: test_mul_by_13:
368 ; X64-JAG: # %bb.0:
369 ; X64-JAG-NEXT: # kill: def $edi killed $edi def $rdi
370 ; X64-JAG-NEXT: leal (%rdi,%rdi,2), %eax
371 ; X64-JAG-NEXT: leal (%rdi,%rax,4), %eax
372 ; X64-JAG-NEXT: retq
379 ; X64-NOOPT-LABEL: test_mul_by_13:
380 ; X64-NOOPT: # %bb.0:
381 ; X64-NOOPT-NEXT: imull $13, %edi, %eax
382 ; X64-NOOPT-NEXT: retq
384 ; X64-SLM-LABEL: test_mul_by_13:
385 ; X64-SLM: # %bb.0:
386 ; X64-SLM-NEXT: imull $13, %edi, %eax
387 ; X64-SLM-NEXT: retq
402 ; X64-LABEL: test_mul_by_14:
403 ; X64: # %bb.0:
404 ; X64-NEXT: movl %edi, %eax
405 ; X64-NEXT: shll $4, %eax
406 ; X64-NEXT: subl %edi, %eax
407 ; X64-NEXT: subl %edi, %eax
408 ; X64-NEXT: retq
415 ; X64-NOOPT-LABEL: test_mul_by_14:
416 ; X64-NOOPT: # %bb.0:
417 ; X64-NOOPT-NEXT: imull $14, %edi, %eax
418 ; X64-NOOPT-NEXT: retq
431 ; X64-LABEL: test_mul_by_15:
432 ; X64: # %bb.0:
433 ; X64-NEXT: # kill: def $edi killed $edi def $rdi
434 ; X64-NEXT: leal (%rdi,%rdi,4), %eax
435 ; X64-NEXT: leal (%rax,%rax,2), %eax
436 ; X64-NEXT: retq
443 ; X64-NOOPT-LABEL: test_mul_by_15:
444 ; X64-NOOPT: # %bb.0:
445 ; X64-NOOPT-NEXT: imull $15, %edi, %eax
446 ; X64-NOOPT-NEXT: retq
458 ; X64-LABEL: test_mul_by_16:
459 ; X64: # %bb.0:
460 ; X64-NEXT: movl %edi, %eax
461 ; X64-NEXT: shll $4, %eax
462 ; X64-NEXT: retq
470 ; X64-NOOPT-LABEL: test_mul_by_16:
471 ; X64-NOOPT: # %bb.0:
472 ; X64-NOOPT-NEXT: movl %edi, %eax
473 ; X64-NOOPT-NEXT: shll $4, %eax
474 ; X64-NOOPT-NEXT: retq
488 ; X64-LABEL: test_mul_by_17:
489 ; X64: # %bb.0:
490 ; X64-NEXT: # kill: def $edi killed $edi def $rdi
491 ; X64-NEXT: movl %edi, %eax
492 ; X64-NEXT: shll $4, %eax
493 ; X64-NEXT: addl %edi, %eax
494 ; X64-NEXT: retq
501 ; X64-NOOPT-LABEL: test_mul_by_17:
502 ; X64-NOOPT: # %bb.0:
503 ; X64-NOOPT-NEXT: imull $17, %edi, %eax
504 ; X64-NOOPT-NEXT: retq
517 ; X64-LABEL: test_mul_by_18:
518 ; X64: # %bb.0:
519 ; X64-NEXT: # kill: def $edi killed $edi def $rdi
520 ; X64-NEXT: addl %edi, %edi
521 ; X64-NEXT: leal (%rdi,%rdi,8), %eax
522 ; X64-NEXT: retq
529 ; X64-NOOPT-LABEL: test_mul_by_18:
530 ; X64-NOOPT: # %bb.0:
531 ; X64-NOOPT-NEXT: imull $18, %edi, %eax
532 ; X64-NOOPT-NEXT: retq
545 ; X64-HSW-LABEL: test_mul_by_19:
546 ; X64-HSW: # %bb.0:
547 ; X64-HSW-NEXT: # kill: def $edi killed $edi def $rdi
548 ; X64-HSW-NEXT: leal (%rdi,%rdi,8), %eax
549 ; X64-HSW-NEXT: leal (%rdi,%rax,2), %eax
550 ; X64-HSW-NEXT: retq
552 ; X64-JAG-LABEL: test_mul_by_19:
553 ; X64-JAG: # %bb.0:
554 ; X64-JAG-NEXT: # kill: def $edi killed $edi def $rdi
555 ; X64-JAG-NEXT: leal (%rdi,%rdi,8), %eax
556 ; X64-JAG-NEXT: leal (%rdi,%rax,2), %eax
557 ; X64-JAG-NEXT: retq
564 ; X64-NOOPT-LABEL: test_mul_by_19:
565 ; X64-NOOPT: # %bb.0:
566 ; X64-NOOPT-NEXT: imull $19, %edi, %eax
567 ; X64-NOOPT-NEXT: retq
569 ; X64-SLM-LABEL: test_mul_by_19:
570 ; X64-SLM: # %bb.0:
571 ; X64-SLM-NEXT: imull $19, %edi, %eax
572 ; X64-SLM-NEXT: retq
585 ; X64-LABEL: test_mul_by_20:
586 ; X64: # %bb.0:
587 ; X64-NEXT: # kill: def $edi killed $edi def $rdi
588 ; X64-NEXT: shll $2, %edi
589 ; X64-NEXT: leal (%rdi,%rdi,4), %eax
590 ; X64-NEXT: retq
597 ; X64-NOOPT-LABEL: test_mul_by_20:
598 ; X64-NOOPT: # %bb.0:
599 ; X64-NOOPT-NEXT: imull $20, %edi, %eax
600 ; X64-NOOPT-NEXT: retq
613 ; X64-HSW-LABEL: test_mul_by_21:
614 ; X64-HSW: # %bb.0:
615 ; X64-HSW-NEXT: # kill: def $edi killed $edi def $rdi
616 ; X64-HSW-NEXT: leal (%rdi,%rdi,4), %eax
617 ; X64-HSW-NEXT: leal (%rdi,%rax,4), %eax
618 ; X64-HSW-NEXT: retq
620 ; X64-JAG-LABEL: test_mul_by_21:
621 ; X64-JAG: # %bb.0:
622 ; X64-JAG-NEXT: # kill: def $edi killed $edi def $rdi
623 ; X64-JAG-NEXT: leal (%rdi,%rdi,4), %eax
624 ; X64-JAG-NEXT: leal (%rdi,%rax,4), %eax
625 ; X64-JAG-NEXT: retq
632 ; X64-NOOPT-LABEL: test_mul_by_21:
633 ; X64-NOOPT: # %bb.0:
634 ; X64-NOOPT-NEXT: imull $21, %edi, %eax
635 ; X64-NOOPT-NEXT: retq
637 ; X64-SLM-LABEL: test_mul_by_21:
638 ; X64-SLM: # %bb.0:
639 ; X64-SLM-NEXT: imull $21, %edi, %eax
640 ; X64-SLM-NEXT: retq
654 ; X64-HSW-LABEL: test_mul_by_22:
655 ; X64-HSW: # %bb.0:
656 ; X64-HSW-NEXT: # kill: def $edi killed $edi def $rdi
657 ; X64-HSW-NEXT: leal (%rdi,%rdi,4), %eax
658 ; X64-HSW-NEXT: leal (%rdi,%rax,4), %eax
659 ; X64-HSW-NEXT: addl %edi, %eax
660 ; X64-HSW-NEXT: retq
662 ; X64-JAG-LABEL: test_mul_by_22:
663 ; X64-JAG: # %bb.0:
664 ; X64-JAG-NEXT: # kill: def $edi killed $edi def $rdi
665 ; X64-JAG-NEXT: leal (%rdi,%rdi,4), %eax
666 ; X64-JAG-NEXT: leal (%rdi,%rax,4), %eax
667 ; X64-JAG-NEXT: addl %edi, %eax
668 ; X64-JAG-NEXT: retq
675 ; X64-NOOPT-LABEL: test_mul_by_22:
676 ; X64-NOOPT: # %bb.0:
677 ; X64-NOOPT-NEXT: imull $22, %edi, %eax
678 ; X64-NOOPT-NEXT: retq
680 ; X64-SLM-LABEL: test_mul_by_22:
681 ; X64-SLM: # %bb.0:
682 ; X64-SLM-NEXT: imull $22, %edi, %eax
683 ; X64-SLM-NEXT: retq
697 ; X64-HSW-LABEL: test_mul_by_23:
698 ; X64-HSW: # %bb.0:
699 ; X64-HSW-NEXT: # kill: def $edi killed $edi def $rdi
700 ; X64-HSW-NEXT: leal (%rdi,%rdi,2), %eax
701 ; X64-HSW-NEXT: shll $3, %eax
702 ; X64-HSW-NEXT: subl %edi, %eax
703 ; X64-HSW-NEXT: retq
705 ; X64-JAG-LABEL: test_mul_by_23:
706 ; X64-JAG: # %bb.0:
707 ; X64-JAG-NEXT: # kill: def $edi killed $edi def $rdi
708 ; X64-JAG-NEXT: leal (%rdi,%rdi,2), %eax
709 ; X64-JAG-NEXT: shll $3, %eax
710 ; X64-JAG-NEXT: subl %edi, %eax
711 ; X64-JAG-NEXT: retq
718 ; X64-NOOPT-LABEL: test_mul_by_23:
719 ; X64-NOOPT: # %bb.0:
720 ; X64-NOOPT-NEXT: imull $23, %edi, %eax
721 ; X64-NOOPT-NEXT: retq
723 ; X64-SLM-LABEL: test_mul_by_23:
724 ; X64-SLM: # %bb.0:
725 ; X64-SLM-NEXT: imull $23, %edi, %eax
726 ; X64-SLM-NEXT: retq
739 ; X64-LABEL: test_mul_by_24:
740 ; X64: # %bb.0:
741 ; X64-NEXT: # kill: def $edi killed $edi def $rdi
742 ; X64-NEXT: shll $3, %edi
743 ; X64-NEXT: leal (%rdi,%rdi,2), %eax
744 ; X64-NEXT: retq
751 ; X64-NOOPT-LABEL: test_mul_by_24:
752 ; X64-NOOPT: # %bb.0:
753 ; X64-NOOPT-NEXT: imull $24, %edi, %eax
754 ; X64-NOOPT-NEXT: retq
767 ; X64-LABEL: test_mul_by_25:
768 ; X64: # %bb.0:
769 ; X64-NEXT: # kill: def $edi killed $edi def $rdi
770 ; X64-NEXT: leal (%rdi,%rdi,4), %eax
771 ; X64-NEXT: leal (%rax,%rax,4), %eax
772 ; X64-NEXT: retq
779 ; X64-NOOPT-LABEL: test_mul_by_25:
780 ; X64-NOOPT: # %bb.0:
781 ; X64-NOOPT-NEXT: imull $25, %edi, %eax
782 ; X64-NOOPT-NEXT: retq
796 ; X64-HSW-LABEL: test_mul_by_26:
797 ; X64-HSW: # %bb.0:
798 ; X64-HSW-NEXT: # kill: def $edi killed $edi def $rdi
799 ; X64-HSW-NEXT: leal (%rdi,%rdi,4), %eax
800 ; X64-HSW-NEXT: leal (%rax,%rax,4), %eax
801 ; X64-HSW-NEXT: addl %edi, %eax
802 ; X64-HSW-NEXT: retq
804 ; X64-JAG-LABEL: test_mul_by_26:
805 ; X64-JAG: # %bb.0:
806 ; X64-JAG-NEXT: # kill: def $edi killed $edi def $rdi
807 ; X64-JAG-NEXT: leal (%rdi,%rdi,4), %eax
808 ; X64-JAG-NEXT: leal (%rax,%rax,4), %eax
809 ; X64-JAG-NEXT: addl %edi, %eax
810 ; X64-JAG-NEXT: retq
817 ; X64-NOOPT-LABEL: test_mul_by_26:
818 ; X64-NOOPT: # %bb.0:
819 ; X64-NOOPT-NEXT: imull $26, %edi, %eax
820 ; X64-NOOPT-NEXT: retq
822 ; X64-SLM-LABEL: test_mul_by_26:
823 ; X64-SLM: # %bb.0:
824 ; X64-SLM-NEXT: imull $26, %edi, %eax
825 ; X64-SLM-NEXT: retq
838 ; X64-LABEL: test_mul_by_27:
839 ; X64: # %bb.0:
840 ; X64-NEXT: # kill: def $edi killed $edi def $rdi
841 ; X64-NEXT: leal (%rdi,%rdi,8), %eax
842 ; X64-NEXT: leal (%rax,%rax,2), %eax
843 ; X64-NEXT: retq
850 ; X64-NOOPT-LABEL: test_mul_by_27:
851 ; X64-NOOPT: # %bb.0:
852 ; X64-NOOPT-NEXT: imull $27, %edi, %eax
853 ; X64-NOOPT-NEXT: retq
867 ; X64-HSW-LABEL: test_mul_by_28:
868 ; X64-HSW: # %bb.0:
869 ; X64-HSW-NEXT: # kill: def $edi killed $edi def $rdi
870 ; X64-HSW-NEXT: leal (%rdi,%rdi,8), %eax
871 ; X64-HSW-NEXT: leal (%rax,%rax,2), %eax
872 ; X64-HSW-NEXT: addl %edi, %eax
873 ; X64-HSW-NEXT: retq
875 ; X64-JAG-LABEL: test_mul_by_28:
876 ; X64-JAG: # %bb.0:
877 ; X64-JAG-NEXT: # kill: def $edi killed $edi def $rdi
878 ; X64-JAG-NEXT: leal (%rdi,%rdi,8), %eax
879 ; X64-JAG-NEXT: leal (%rax,%rax,2), %eax
880 ; X64-JAG-NEXT: addl %edi, %eax
881 ; X64-JAG-NEXT: retq
888 ; X64-NOOPT-LABEL: test_mul_by_28:
889 ; X64-NOOPT: # %bb.0:
890 ; X64-NOOPT-NEXT: imull $28, %edi, %eax
891 ; X64-NOOPT-NEXT: retq
893 ; X64-SLM-LABEL: test_mul_by_28:
894 ; X64-SLM: # %bb.0:
895 ; X64-SLM-NEXT: imull $28, %edi, %eax
896 ; X64-SLM-NEXT: retq
911 ; X64-HSW-LABEL: test_mul_by_29:
912 ; X64-HSW: # %bb.0:
913 ; X64-HSW-NEXT: # kill: def $edi killed $edi def $rdi
914 ; X64-HSW-NEXT: leal (%rdi,%rdi,8), %eax
915 ; X64-HSW-NEXT: leal (%rax,%rax,2), %eax
916 ; X64-HSW-NEXT: addl %edi, %eax
917 ; X64-HSW-NEXT: addl %edi, %eax
918 ; X64-HSW-NEXT: retq
920 ; X64-JAG-LABEL: test_mul_by_29:
921 ; X64-JAG: # %bb.0:
922 ; X64-JAG-NEXT: # kill: def $edi killed $edi def $rdi
923 ; X64-JAG-NEXT: leal (%rdi,%rdi,8), %eax
924 ; X64-JAG-NEXT: leal (%rax,%rax,2), %eax
925 ; X64-JAG-NEXT: addl %edi, %eax
926 ; X64-JAG-NEXT: addl %edi, %eax
927 ; X64-JAG-NEXT: retq
934 ; X64-NOOPT-LABEL: test_mul_by_29:
935 ; X64-NOOPT: # %bb.0:
936 ; X64-NOOPT-NEXT: imull $29, %edi, %eax
937 ; X64-NOOPT-NEXT: retq
939 ; X64-SLM-LABEL: test_mul_by_29:
940 ; X64-SLM: # %bb.0:
941 ; X64-SLM-NEXT: imull $29, %edi, %eax
942 ; X64-SLM-NEXT: retq
957 ; X64-LABEL: test_mul_by_30:
958 ; X64: # %bb.0:
959 ; X64-NEXT: movl %edi, %eax
960 ; X64-NEXT: shll $5, %eax
961 ; X64-NEXT: subl %edi, %eax
962 ; X64-NEXT: subl %edi, %eax
963 ; X64-NEXT: retq
970 ; X64-NOOPT-LABEL: test_mul_by_30:
971 ; X64-NOOPT: # %bb.0:
972 ; X64-NOOPT-NEXT: imull $30, %edi, %eax
973 ; X64-NOOPT-NEXT: retq
987 ; X64-LABEL: test_mul_by_31:
988 ; X64: # %bb.0:
989 ; X64-NEXT: movl %edi, %eax
990 ; X64-NEXT: shll $5, %eax
991 ; X64-NEXT: subl %edi, %eax
992 ; X64-NEXT: retq
999 ; X64-NOOPT-LABEL: test_mul_by_31:
1000 ; X64-NOOPT: # %bb.0:
1001 ; X64-NOOPT-NEXT: imull $31, %edi, %eax
1002 ; X64-NOOPT-NEXT: retq
1014 ; X64-LABEL: test_mul_by_32:
1015 ; X64: # %bb.0:
1016 ; X64-NEXT: movl %edi, %eax
1017 ; X64-NEXT: shll $5, %eax
1018 ; X64-NEXT: retq
1026 ; X64-NOOPT-LABEL: test_mul_by_32:
1027 ; X64-NOOPT: # %bb.0:
1028 ; X64-NOOPT-NEXT: movl %edi, %eax
1029 ; X64-NOOPT-NEXT: shll $5, %eax
1030 ; X64-NOOPT-NEXT: retq
1043 ; X64-HSW-LABEL: test_mul_by_37:
1044 ; X64-HSW: # %bb.0:
1045 ; X64-HSW-NEXT: # kill: def $edi killed $edi def $rdi
1046 ; X64-HSW-NEXT: leal (%rdi,%rdi,8), %eax
1047 ; X64-HSW-NEXT: leal (%rdi,%rax,4), %eax
1048 ; X64-HSW-NEXT: retq
1050 ; X64-JAG-LABEL: test_mul_by_37:
1051 ; X64-JAG: # %bb.0:
1052 ; X64-JAG-NEXT: # kill: def $edi killed $edi def $rdi
1053 ; X64-JAG-NEXT: leal (%rdi,%rdi,8), %eax
1054 ; X64-JAG-NEXT: leal (%rdi,%rax,4), %eax
1055 ; X64-JAG-NEXT: retq
1062 ; X64-NOOPT-LABEL: test_mul_by_37:
1063 ; X64-NOOPT: # %bb.0:
1064 ; X64-NOOPT-NEXT: imull $37, %edi, %eax
1065 ; X64-NOOPT-NEXT: retq
1067 ; X64-SLM-LABEL: test_mul_by_37:
1068 ; X64-SLM: # %bb.0:
1069 ; X64-SLM-NEXT: imull $37, %edi, %eax
1070 ; X64-SLM-NEXT: retq
1083 ; X64-HSW-LABEL: test_mul_by_41:
1084 ; X64-HSW: # %bb.0:
1085 ; X64-HSW-NEXT: # kill: def $edi killed $edi def $rdi
1086 ; X64-HSW-NEXT: leal (%rdi,%rdi,4), %eax
1087 ; X64-HSW-NEXT: leal (%rdi,%rax,8), %eax
1088 ; X64-HSW-NEXT: retq
1090 ; X64-JAG-LABEL: test_mul_by_41:
1091 ; X64-JAG: # %bb.0:
1092 ; X64-JAG-NEXT: # kill: def $edi killed $edi def $rdi
1093 ; X64-JAG-NEXT: leal (%rdi,%rdi,4), %eax
1094 ; X64-JAG-NEXT: leal (%rdi,%rax,8), %eax
1095 ; X64-JAG-NEXT: retq
1102 ; X64-NOOPT-LABEL: test_mul_by_41:
1103 ; X64-NOOPT: # %bb.0:
1104 ; X64-NOOPT-NEXT: imull $41, %edi, %eax
1105 ; X64-NOOPT-NEXT: retq
1107 ; X64-SLM-LABEL: test_mul_by_41:
1108 ; X64-SLM: # %bb.0:
1109 ; X64-SLM-NEXT: imull $41, %edi, %eax
1110 ; X64-SLM-NEXT: retq
1125 ; X64-LABEL: test_mul_by_62:
1126 ; X64: # %bb.0:
1127 ; X64-NEXT: movl %edi, %eax
1128 ; X64-NEXT: shll $6, %eax
1129 ; X64-NEXT: subl %edi, %eax
1130 ; X64-NEXT: subl %edi, %eax
1131 ; X64-NEXT: retq
1138 ; X64-NOOPT-LABEL: test_mul_by_62:
1139 ; X64-NOOPT: # %bb.0:
1140 ; X64-NOOPT-NEXT: imull $62, %edi, %eax
1141 ; X64-NOOPT-NEXT: retq
1155 ; X64-HSW-LABEL: test_mul_by_66:
1156 ; X64-HSW: # %bb.0:
1157 ; X64-HSW-NEXT: # kill: def $edi killed $edi def $rdi
1158 ; X64-HSW-NEXT: movl %edi, %eax
1159 ; X64-HSW-NEXT: shll $6, %eax
1160 ; X64-HSW-NEXT: leal (%rax,%rdi,2), %eax
1161 ; X64-HSW-NEXT: retq
1163 ; X64-JAG-LABEL: test_mul_by_66:
1164 ; X64-JAG: # %bb.0:
1165 ; X64-JAG-NEXT: # kill: def $edi killed $edi def $rdi
1166 ; X64-JAG-NEXT: movl %edi, %eax
1167 ; X64-JAG-NEXT: shll $6, %eax
1168 ; X64-JAG-NEXT: leal (%rax,%rdi,2), %eax
1169 ; X64-JAG-NEXT: retq
1176 ; X64-NOOPT-LABEL: test_mul_by_66:
1177 ; X64-NOOPT: # %bb.0:
1178 ; X64-NOOPT-NEXT: imull $66, %edi, %eax
1179 ; X64-NOOPT-NEXT: retq
1181 ; X64-SLM-LABEL: test_mul_by_66:
1182 ; X64-SLM: # %bb.0:
1183 ; X64-SLM-NEXT: # kill: def $edi killed $edi def $rdi
1184 ; X64-SLM-NEXT: movl %edi, %eax
1185 ; X64-SLM-NEXT: shll $6, %eax
1186 ; X64-SLM-NEXT: addl %edi, %eax
1187 ; X64-SLM-NEXT: addl %edi, %eax
1188 ; X64-SLM-NEXT: retq
1201 ; X64-HSW-LABEL: test_mul_by_73:
1202 ; X64-HSW: # %bb.0:
1203 ; X64-HSW-NEXT: # kill: def $edi killed $edi def $rdi
1204 ; X64-HSW-NEXT: leal (%rdi,%rdi,8), %eax
1205 ; X64-HSW-NEXT: leal (%rdi,%rax,8), %eax
1206 ; X64-HSW-NEXT: retq
1208 ; X64-JAG-LABEL: test_mul_by_73:
1209 ; X64-JAG: # %bb.0:
1210 ; X64-JAG-NEXT: # kill: def $edi killed $edi def $rdi
1211 ; X64-JAG-NEXT: leal (%rdi,%rdi,8), %eax
1212 ; X64-JAG-NEXT: leal (%rdi,%rax,8), %eax
1213 ; X64-JAG-NEXT: retq
1220 ; X64-NOOPT-LABEL: test_mul_by_73:
1221 ; X64-NOOPT: # %bb.0:
1222 ; X64-NOOPT-NEXT: imull $73, %edi, %eax
1223 ; X64-NOOPT-NEXT: retq
1225 ; X64-SLM-LABEL: test_mul_by_73:
1226 ; X64-SLM: # %bb.0:
1227 ; X64-SLM-NEXT: imull $73, %edi, %eax
1228 ; X64-SLM-NEXT: retq
1242 ; X64-HSW-LABEL: test_mul_by_520:
1243 ; X64-HSW: # %bb.0:
1244 ; X64-HSW-NEXT: # kill: def $edi killed $edi def $rdi
1245 ; X64-HSW-NEXT: movl %edi, %eax
1246 ; X64-HSW-NEXT: shll $9, %eax
1247 ; X64-HSW-NEXT: leal (%rax,%rdi,8), %eax
1248 ; X64-HSW-NEXT: retq
1250 ; X64-JAG-LABEL: test_mul_by_520:
1251 ; X64-JAG: # %bb.0:
1252 ; X64-JAG-NEXT: # kill: def $edi killed $edi def $rdi
1253 ; X64-JAG-NEXT: movl %edi, %eax
1254 ; X64-JAG-NEXT: shll $9, %eax
1255 ; X64-JAG-NEXT: leal (%rax,%rdi,8), %eax
1256 ; X64-JAG-NEXT: retq
1263 ; X64-NOOPT-LABEL: test_mul_by_520:
1264 ; X64-NOOPT: # %bb.0:
1265 ; X64-NOOPT-NEXT: imull $520, %edi, %eax # imm = 0x208
1266 ; X64-NOOPT-NEXT: retq
1268 ; X64-SLM-LABEL: test_mul_by_520:
1269 ; X64-SLM: # %bb.0:
1270 ; X64-SLM-NEXT: imull $520, %edi, %eax # imm = 0x208
1271 ; X64-SLM-NEXT: retq
1285 ; X64-LABEL: test_mul_by_neg10:
1286 ; X64: # %bb.0:
1287 ; X64-NEXT: # kill: def $edi killed $edi def $rdi
1288 ; X64-NEXT: addl %edi, %edi
1289 ; X64-NEXT: leal (%rdi,%rdi,4), %eax
1290 ; X64-NEXT: negl %eax
1291 ; X64-NEXT: retq
1298 ; X64-NOOPT-LABEL: test_mul_by_neg10:
1299 ; X64-NOOPT: # %bb.0:
1300 ; X64-NOOPT-NEXT: imull $-10, %edi, %eax
1301 ; X64-NOOPT-NEXT: retq
1315 ; X64-LABEL: test_mul_by_neg36:
1316 ; X64: # %bb.0:
1317 ; X64-NEXT: # kill: def $edi killed $edi def $rdi
1318 ; X64-NEXT: shll $2, %edi
1319 ; X64-NEXT: leal (%rdi,%rdi,8), %eax
1320 ; X64-NEXT: negl %eax
1321 ; X64-NEXT: retq
1328 ; X64-NOOPT-LABEL: test_mul_by_neg36:
1329 ; X64-NOOPT: # %bb.0:
1330 ; X64-NOOPT-NEXT: imull $-36, %edi, %eax
1331 ; X64-NOOPT-NEXT: retq
1346 ; X64-HSW-LABEL: test_mul_spec:
1347 ; X64-HSW: # %bb.0:
1348 ; X64-HSW-NEXT: # kill: def $edi killed $edi def $rdi
1349 ; X64-HSW-NEXT: leal (%rdi,%rdi,8), %ecx
1350 ; X64-HSW-NEXT: addl $42, %ecx
1351 ; X64-HSW-NEXT: leal (%rdi,%rdi,4), %eax
1352 ; X64-HSW-NEXT: addl $2, %eax
1353 ; X64-HSW-NEXT: imull %ecx, %eax
1354 ; X64-HSW-NEXT: retq
1356 ; X64-JAG-LABEL: test_mul_spec:
1357 ; X64-JAG: # %bb.0:
1358 ; X64-JAG-NEXT: # kill: def $edi killed $edi def $rdi
1359 ; X64-JAG-NEXT: leal 42(%rdi,%rdi,8), %ecx
1360 ; X64-JAG-NEXT: leal 2(%rdi,%rdi,4), %eax
1361 ; X64-JAG-NEXT: imull %ecx, %eax
1362 ; X64-JAG-NEXT: retq
1390 ; X64-SLM-LABEL: test_mul_spec:
1391 ; X64-SLM: # %bb.0:
1392 ; X64-SLM-NEXT: # kill: def $edi killed $edi def $rdi
1393 ; X64-SLM-NEXT: leal 42(%rdi,%rdi,8), %ecx
1394 ; X64-SLM-NEXT: leal 2(%rdi,%rdi,4), %eax
1395 ; X64-SLM-NEXT: imull %ecx, %eax
1396 ; X64-SLM-NEXT: retq
1425 ; X64-HSW-LABEL: mul_neg_fold:
1426 ; X64-HSW: # %bb.0:
1427 ; X64-HSW-NEXT: movl %esi, %eax
1428 ; X64-HSW-NEXT: # kill: def $edi killed $edi def $rdi
1429 ; X64-HSW-NEXT: leal (%rdi,%rdi,8), %ecx
1430 ; X64-HSW-NEXT: subl %ecx, %eax
1431 ; X64-HSW-NEXT: retq
1433 ; X64-JAG-LABEL: mul_neg_fold:
1434 ; X64-JAG: # %bb.0:
1435 ; X64-JAG-NEXT: # kill: def $edi killed $edi def $rdi
1436 ; X64-JAG-NEXT: leal (%rdi,%rdi,8), %ecx
1437 ; X64-JAG-NEXT: movl %esi, %eax
1438 ; X64-JAG-NEXT: subl %ecx, %eax
1439 ; X64-JAG-NEXT: retq
1447 ; X64-NOOPT-LABEL: mul_neg_fold:
1448 ; X64-NOOPT: # %bb.0:
1449 ; X64-NOOPT-NEXT: imull $-9, %edi, %eax
1450 ; X64-NOOPT-NEXT: addl %esi, %eax
1451 ; X64-NOOPT-NEXT: retq
1453 ; X64-SLM-LABEL: mul_neg_fold:
1454 ; X64-SLM: # %bb.0:
1455 ; X64-SLM-NEXT: # kill: def $edi killed $edi def $rdi
1456 ; X64-SLM-NEXT: movl %esi, %eax
1457 ; X64-SLM-NEXT: leal (%rdi,%rdi,8), %ecx
1458 ; X64-SLM-NEXT: subl %ecx, %eax
1459 ; X64-SLM-NEXT: retq