@@ -482,17 +482,17 @@ define i1 @andflag16rr(i16 %a, i16 %b) {
482
482
define i1 @andflag32rr (i32 %a , i32 %b ) {
483
483
; CHECK-LABEL: andflag32rr:
484
484
; CHECK: # %bb.0:
485
- ; CHECK-NEXT: andl %esi, % edi, %ecx # encoding: [0x62,0xf4,0x74,0x18, 0x21,0xf7 ]
485
+ ; CHECK-NEXT: andl %edi, %esi # EVEX TO LEGACY Compression encoding: [0x21,0xfe ]
486
486
; CHECK-NEXT: sete %al # encoding: [0x0f,0x94,0xc0]
487
- ; CHECK-NEXT: movl %ecx , d64(%rip) # encoding: [0x89,0x0d ,A,A,A,A]
487
+ ; CHECK-NEXT: movl %esi , d64(%rip) # encoding: [0x89,0x35 ,A,A,A,A]
488
488
; CHECK-NEXT: # fixup A - offset: 2, value: d64-4, kind: reloc_riprel_4byte
489
489
; CHECK-NEXT: retq # encoding: [0xc3]
490
490
;
491
491
; NF-LABEL: andflag32rr:
492
492
; NF: # %bb.0:
493
- ; NF-NEXT: andl %esi, % edi, %ecx # encoding: [0x62,0xf4,0x74,0x18, 0x21,0xf7 ]
493
+ ; NF-NEXT: andl %edi, %esi # EVEX TO LEGACY Compression encoding: [0x21,0xfe ]
494
494
; NF-NEXT: sete %al # encoding: [0x0f,0x94,0xc0]
495
- ; NF-NEXT: movl %ecx , d64(%rip) # encoding: [0x89,0x0d ,A,A,A,A]
495
+ ; NF-NEXT: movl %esi , d64(%rip) # encoding: [0x89,0x35 ,A,A,A,A]
496
496
; NF-NEXT: # fixup A - offset: 2, value: d64-4, kind: reloc_riprel_4byte
497
497
; NF-NEXT: retq # encoding: [0xc3]
498
498
%v0 = and i32 %a , %b ; 0xff << 50
@@ -504,17 +504,17 @@ define i1 @andflag32rr(i32 %a, i32 %b) {
504
504
define i1 @andflag64rr (i64 %a , i64 %b ) {
505
505
; CHECK-LABEL: andflag64rr:
506
506
; CHECK: # %bb.0:
507
- ; CHECK-NEXT: andq %rsi, % rdi, %rcx # encoding: [0x62,0xf4,0xf4,0x18, 0x21,0xf7 ]
507
+ ; CHECK-NEXT: andq %rdi, %rsi # EVEX TO LEGACY Compression encoding: [0x48, 0x21,0xfe ]
508
508
; CHECK-NEXT: sete %al # encoding: [0x0f,0x94,0xc0]
509
- ; CHECK-NEXT: movq %rcx , d64(%rip) # encoding: [0x48,0x89,0x0d ,A,A,A,A]
509
+ ; CHECK-NEXT: movq %rsi , d64(%rip) # encoding: [0x48,0x89,0x35 ,A,A,A,A]
510
510
; CHECK-NEXT: # fixup A - offset: 3, value: d64-4, kind: reloc_riprel_4byte
511
511
; CHECK-NEXT: retq # encoding: [0xc3]
512
512
;
513
513
; NF-LABEL: andflag64rr:
514
514
; NF: # %bb.0:
515
- ; NF-NEXT: andq %rsi, % rdi, %rcx # encoding: [0x62,0xf4,0xf4,0x18, 0x21,0xf7 ]
515
+ ; NF-NEXT: andq %rdi, %rsi # EVEX TO LEGACY Compression encoding: [0x48, 0x21,0xfe ]
516
516
; NF-NEXT: sete %al # encoding: [0x0f,0x94,0xc0]
517
- ; NF-NEXT: movq %rcx , d64(%rip) # encoding: [0x48,0x89,0x0d ,A,A,A,A]
517
+ ; NF-NEXT: movq %rsi , d64(%rip) # encoding: [0x48,0x89,0x35 ,A,A,A,A]
518
518
; NF-NEXT: # fixup A - offset: 3, value: d64-4, kind: reloc_riprel_4byte
519
519
; NF-NEXT: retq # encoding: [0xc3]
520
520
%v0 = and i64 %a , %b ; 0xff << 50
@@ -578,17 +578,17 @@ define i1 @andflag16rm(ptr %ptr, i16 %b) {
578
578
define i1 @andflag32rm (ptr %ptr , i32 %b ) {
579
579
; CHECK-LABEL: andflag32rm:
580
580
; CHECK: # %bb.0:
581
- ; CHECK-NEXT: andl (%rdi), %esi, %ecx # encoding: [0x62,0xf4,0x74,0x18, 0x23,0x37]
581
+ ; CHECK-NEXT: andl (%rdi), %esi # EVEX TO LEGACY Compression encoding: [0x23,0x37]
582
582
; CHECK-NEXT: sete %al # encoding: [0x0f,0x94,0xc0]
583
- ; CHECK-NEXT: movl %ecx , d64(%rip) # encoding: [0x89,0x0d ,A,A,A,A]
583
+ ; CHECK-NEXT: movl %esi , d64(%rip) # encoding: [0x89,0x35 ,A,A,A,A]
584
584
; CHECK-NEXT: # fixup A - offset: 2, value: d64-4, kind: reloc_riprel_4byte
585
585
; CHECK-NEXT: retq # encoding: [0xc3]
586
586
;
587
587
; NF-LABEL: andflag32rm:
588
588
; NF: # %bb.0:
589
- ; NF-NEXT: andl (%rdi), %esi, %ecx # encoding: [0x62,0xf4,0x74,0x18, 0x23,0x37]
589
+ ; NF-NEXT: andl (%rdi), %esi # EVEX TO LEGACY Compression encoding: [0x23,0x37]
590
590
; NF-NEXT: sete %al # encoding: [0x0f,0x94,0xc0]
591
- ; NF-NEXT: movl %ecx , d64(%rip) # encoding: [0x89,0x0d ,A,A,A,A]
591
+ ; NF-NEXT: movl %esi , d64(%rip) # encoding: [0x89,0x35 ,A,A,A,A]
592
592
; NF-NEXT: # fixup A - offset: 2, value: d64-4, kind: reloc_riprel_4byte
593
593
; NF-NEXT: retq # encoding: [0xc3]
594
594
%a = load i32 , ptr %ptr
@@ -601,17 +601,17 @@ define i1 @andflag32rm(ptr %ptr, i32 %b) {
601
601
define i1 @andflag64rm (ptr %ptr , i64 %b ) {
602
602
; CHECK-LABEL: andflag64rm:
603
603
; CHECK: # %bb.0:
604
- ; CHECK-NEXT: andq (%rdi), %rsi, %rcx # encoding: [0x62,0xf4,0xf4,0x18 ,0x23,0x37]
604
+ ; CHECK-NEXT: andq (%rdi), %rsi # EVEX TO LEGACY Compression encoding: [0x48 ,0x23,0x37]
605
605
; CHECK-NEXT: sete %al # encoding: [0x0f,0x94,0xc0]
606
- ; CHECK-NEXT: movq %rcx , d64(%rip) # encoding: [0x48,0x89,0x0d ,A,A,A,A]
606
+ ; CHECK-NEXT: movq %rsi , d64(%rip) # encoding: [0x48,0x89,0x35 ,A,A,A,A]
607
607
; CHECK-NEXT: # fixup A - offset: 3, value: d64-4, kind: reloc_riprel_4byte
608
608
; CHECK-NEXT: retq # encoding: [0xc3]
609
609
;
610
610
; NF-LABEL: andflag64rm:
611
611
; NF: # %bb.0:
612
- ; NF-NEXT: andq (%rdi), %rsi, %rcx # encoding: [0x62,0xf4,0xf4,0x18 ,0x23,0x37]
612
+ ; NF-NEXT: andq (%rdi), %rsi # EVEX TO LEGACY Compression encoding: [0x48 ,0x23,0x37]
613
613
; NF-NEXT: sete %al # encoding: [0x0f,0x94,0xc0]
614
- ; NF-NEXT: movq %rcx , d64(%rip) # encoding: [0x48,0x89,0x0d ,A,A,A,A]
614
+ ; NF-NEXT: movq %rsi , d64(%rip) # encoding: [0x48,0x89,0x35 ,A,A,A,A]
615
615
; NF-NEXT: # fixup A - offset: 3, value: d64-4, kind: reloc_riprel_4byte
616
616
; NF-NEXT: retq # encoding: [0xc3]
617
617
%a = load i64 , ptr %ptr
@@ -672,19 +672,19 @@ define i1 @andflag16ri(i16 %a) {
672
672
define i1 @andflag32ri (i32 %a ) {
673
673
; CHECK-LABEL: andflag32ri:
674
674
; CHECK: # %bb.0:
675
- ; CHECK-NEXT: andl $123456, %edi, %ecx # encoding: [0x62,0xf4,0x74,0x18, 0x81,0xe7,0x40,0xe2,0x01,0x00]
675
+ ; CHECK-NEXT: andl $123456, %edi # EVEX TO LEGACY Compression encoding: [0x81,0xe7,0x40,0xe2,0x01,0x00]
676
676
; CHECK-NEXT: # imm = 0x1E240
677
677
; CHECK-NEXT: sete %al # encoding: [0x0f,0x94,0xc0]
678
- ; CHECK-NEXT: movl %ecx , d64(%rip) # encoding: [0x89,0x0d ,A,A,A,A]
678
+ ; CHECK-NEXT: movl %edi , d64(%rip) # encoding: [0x89,0x3d ,A,A,A,A]
679
679
; CHECK-NEXT: # fixup A - offset: 2, value: d64-4, kind: reloc_riprel_4byte
680
680
; CHECK-NEXT: retq # encoding: [0xc3]
681
681
;
682
682
; NF-LABEL: andflag32ri:
683
683
; NF: # %bb.0:
684
- ; NF-NEXT: andl $123456, %edi, %ecx # encoding: [0x62,0xf4,0x74,0x18, 0x81,0xe7,0x40,0xe2,0x01,0x00]
684
+ ; NF-NEXT: andl $123456, %edi # EVEX TO LEGACY Compression encoding: [0x81,0xe7,0x40,0xe2,0x01,0x00]
685
685
; NF-NEXT: # imm = 0x1E240
686
686
; NF-NEXT: sete %al # encoding: [0x0f,0x94,0xc0]
687
- ; NF-NEXT: movl %ecx , d64(%rip) # encoding: [0x89,0x0d ,A,A,A,A]
687
+ ; NF-NEXT: movl %edi , d64(%rip) # encoding: [0x89,0x3d ,A,A,A,A]
688
688
; NF-NEXT: # fixup A - offset: 2, value: d64-4, kind: reloc_riprel_4byte
689
689
; NF-NEXT: retq # encoding: [0xc3]
690
690
%v0 = and i32 %a , 123456 ; 0xff << 50
@@ -696,19 +696,19 @@ define i1 @andflag32ri(i32 %a) {
696
696
define i1 @andflag64ri (i64 %a ) {
697
697
; CHECK-LABEL: andflag64ri:
698
698
; CHECK: # %bb.0:
699
- ; CHECK-NEXT: andq $123456, %rdi, %rcx # encoding: [0x62,0xf4,0xf4,0x18 ,0x81,0xe7,0x40,0xe2,0x01,0x00]
699
+ ; CHECK-NEXT: andq $123456, %rdi # EVEX TO LEGACY Compression encoding: [0x48 ,0x81,0xe7,0x40,0xe2,0x01,0x00]
700
700
; CHECK-NEXT: # imm = 0x1E240
701
701
; CHECK-NEXT: sete %al # encoding: [0x0f,0x94,0xc0]
702
- ; CHECK-NEXT: movq %rcx , d64(%rip) # encoding: [0x48,0x89,0x0d ,A,A,A,A]
702
+ ; CHECK-NEXT: movq %rdi , d64(%rip) # encoding: [0x48,0x89,0x3d ,A,A,A,A]
703
703
; CHECK-NEXT: # fixup A - offset: 3, value: d64-4, kind: reloc_riprel_4byte
704
704
; CHECK-NEXT: retq # encoding: [0xc3]
705
705
;
706
706
; NF-LABEL: andflag64ri:
707
707
; NF: # %bb.0:
708
- ; NF-NEXT: andq $123456, %rdi, %rcx # encoding: [0x62,0xf4,0xf4,0x18 ,0x81,0xe7,0x40,0xe2,0x01,0x00]
708
+ ; NF-NEXT: andq $123456, %rdi # EVEX TO LEGACY Compression encoding: [0x48 ,0x81,0xe7,0x40,0xe2,0x01,0x00]
709
709
; NF-NEXT: # imm = 0x1E240
710
710
; NF-NEXT: sete %al # encoding: [0x0f,0x94,0xc0]
711
- ; NF-NEXT: movq %rcx , d64(%rip) # encoding: [0x48,0x89,0x0d ,A,A,A,A]
711
+ ; NF-NEXT: movq %rdi , d64(%rip) # encoding: [0x48,0x89,0x3d ,A,A,A,A]
712
712
; NF-NEXT: # fixup A - offset: 3, value: d64-4, kind: reloc_riprel_4byte
713
713
; NF-NEXT: retq # encoding: [0xc3]
714
714
%v0 = and i64 %a , 123456 ; 0xff << 50
@@ -743,17 +743,17 @@ define i1 @andflag16ri8(i16 %a) {
743
743
define i1 @andflag32ri8 (i32 %a ) {
744
744
; CHECK-LABEL: andflag32ri8:
745
745
; CHECK: # %bb.0:
746
- ; CHECK-NEXT: andl $123, %edi, %ecx # encoding: [0x62,0xf4,0x74,0x18, 0x83,0xe7,0x7b]
746
+ ; CHECK-NEXT: andl $123, %edi # EVEX TO LEGACY Compression encoding: [0x83,0xe7,0x7b]
747
747
; CHECK-NEXT: sete %al # encoding: [0x0f,0x94,0xc0]
748
- ; CHECK-NEXT: movl %ecx , d64(%rip) # encoding: [0x89,0x0d ,A,A,A,A]
748
+ ; CHECK-NEXT: movl %edi , d64(%rip) # encoding: [0x89,0x3d ,A,A,A,A]
749
749
; CHECK-NEXT: # fixup A - offset: 2, value: d64-4, kind: reloc_riprel_4byte
750
750
; CHECK-NEXT: retq # encoding: [0xc3]
751
751
;
752
752
; NF-LABEL: andflag32ri8:
753
753
; NF: # %bb.0:
754
- ; NF-NEXT: andl $123, %edi, %ecx # encoding: [0x62,0xf4,0x74,0x18, 0x83,0xe7,0x7b]
754
+ ; NF-NEXT: andl $123, %edi # EVEX TO LEGACY Compression encoding: [0x83,0xe7,0x7b]
755
755
; NF-NEXT: sete %al # encoding: [0x0f,0x94,0xc0]
756
- ; NF-NEXT: movl %ecx , d64(%rip) # encoding: [0x89,0x0d ,A,A,A,A]
756
+ ; NF-NEXT: movl %edi , d64(%rip) # encoding: [0x89,0x3d ,A,A,A,A]
757
757
; NF-NEXT: # fixup A - offset: 2, value: d64-4, kind: reloc_riprel_4byte
758
758
; NF-NEXT: retq # encoding: [0xc3]
759
759
%v0 = and i32 %a , 123 ; 0xff << 50
@@ -765,17 +765,17 @@ define i1 @andflag32ri8(i32 %a) {
765
765
define i1 @andflag64ri8 (i64 %a ) {
766
766
; CHECK-LABEL: andflag64ri8:
767
767
; CHECK: # %bb.0:
768
- ; CHECK-NEXT: andq $123, %rdi, %rcx # encoding: [0x62,0xf4,0xf4,0x18 ,0x83,0xe7,0x7b]
768
+ ; CHECK-NEXT: andq $123, %rdi # EVEX TO LEGACY Compression encoding: [0x48 ,0x83,0xe7,0x7b]
769
769
; CHECK-NEXT: sete %al # encoding: [0x0f,0x94,0xc0]
770
- ; CHECK-NEXT: movq %rcx , d64(%rip) # encoding: [0x48,0x89,0x0d ,A,A,A,A]
770
+ ; CHECK-NEXT: movq %rdi , d64(%rip) # encoding: [0x48,0x89,0x3d ,A,A,A,A]
771
771
; CHECK-NEXT: # fixup A - offset: 3, value: d64-4, kind: reloc_riprel_4byte
772
772
; CHECK-NEXT: retq # encoding: [0xc3]
773
773
;
774
774
; NF-LABEL: andflag64ri8:
775
775
; NF: # %bb.0:
776
- ; NF-NEXT: andq $123, %rdi, %rcx # encoding: [0x62,0xf4,0xf4,0x18 ,0x83,0xe7,0x7b]
776
+ ; NF-NEXT: andq $123, %rdi # EVEX TO LEGACY Compression encoding: [0x48 ,0x83,0xe7,0x7b]
777
777
; NF-NEXT: sete %al # encoding: [0x0f,0x94,0xc0]
778
- ; NF-NEXT: movq %rcx , d64(%rip) # encoding: [0x48,0x89,0x0d ,A,A,A,A]
778
+ ; NF-NEXT: movq %rdi , d64(%rip) # encoding: [0x48,0x89,0x3d ,A,A,A,A]
779
779
; NF-NEXT: # fixup A - offset: 3, value: d64-4, kind: reloc_riprel_4byte
780
780
; NF-NEXT: retq # encoding: [0xc3]
781
781
%v0 = and i64 %a , 123 ; 0xff << 50
0 commit comments