Skip to content

Commit b4b8f2a

Browse files
Update tests
1 parent 95702a2 commit b4b8f2a

File tree

12 files changed

+68
-68
lines changed

12 files changed

+68
-68
lines changed

llvm/test/CodeGen/X86/2012-08-16-setcc.ll

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
define i32 @and_1(i8 zeroext %a, i8 zeroext %b, i32 %x) {
77
; CHECK-LABEL: and_1:
88
; CHECK: # %bb.0:
9-
; CHECK-NEXT: movl %edi, %eax
10-
; CHECK-NEXT: andl %esi, %eax
9+
; CHECK-NEXT: xorl %eax, %eax
10+
; CHECK-NEXT: testb %dil, %sil
1111
; CHECK-NEXT: cmovnel %edx, %eax
1212
; CHECK-NEXT: retq
1313
%1 = and i8 %b, %a
@@ -19,7 +19,7 @@ define i32 @and_1(i8 zeroext %a, i8 zeroext %b, i32 %x) {
1919
define zeroext i1 @and_2(i8 zeroext %a, i8 zeroext %b) {
2020
; CHECK-LABEL: and_2:
2121
; CHECK: # %bb.0:
22-
; CHECK-NEXT: testl %edi, %esi
22+
; CHECK-NEXT: testb %dil, %sil
2323
; CHECK-NEXT: setne %al
2424
; CHECK-NEXT: retq
2525
%1 = and i8 %b, %a
@@ -31,7 +31,7 @@ define i32 @xor_1(i8 zeroext %a, i8 zeroext %b, i32 %x) {
3131
; CHECK-LABEL: xor_1:
3232
; CHECK: # %bb.0:
3333
; CHECK-NEXT: xorl %eax, %eax
34-
; CHECK-NEXT: xorl %esi, %edi
34+
; CHECK-NEXT: xorb %dil, %sil
3535
; CHECK-NEXT: cmovnel %edx, %eax
3636
; CHECK-NEXT: retq
3737
%1 = xor i8 %b, %a
@@ -43,7 +43,7 @@ define i32 @xor_1(i8 zeroext %a, i8 zeroext %b, i32 %x) {
4343
define zeroext i1 @xor_2(i8 zeroext %a, i8 zeroext %b) {
4444
; CHECK-LABEL: xor_2:
4545
; CHECK: # %bb.0:
46-
; CHECK-NEXT: xorl %esi, %edi
46+
; CHECK-NEXT: xorb %dil, %sil
4747
; CHECK-NEXT: setne %al
4848
; CHECK-NEXT: retq
4949
%1 = xor i8 %b, %a

llvm/test/CodeGen/X86/add-and-not.ll

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ define i8 @add_and_xor(i8 %x, i8 %y) {
1313
;
1414
; X64-LABEL: add_and_xor:
1515
; X64: # %bb.0:
16-
; X64-NEXT: movl %edi, %eax
17-
; X64-NEXT: orl %esi, %eax
16+
; X64-NEXT: movl %esi, %eax
17+
; X64-NEXT: orb %dil, %al
1818
; X64-NEXT: # kill: def $al killed $al killed $eax
1919
; X64-NEXT: retq
2020
%xor = xor i8 %x, -1
@@ -79,8 +79,8 @@ define i8 @add_and_xor_commuted1(i8 %x, i8 %y) {
7979
;
8080
; X64-LABEL: add_and_xor_commuted1:
8181
; X64: # %bb.0:
82-
; X64-NEXT: movl %edi, %eax
83-
; X64-NEXT: orl %esi, %eax
82+
; X64-NEXT: movl %esi, %eax
83+
; X64-NEXT: orb %dil, %al
8484
; X64-NEXT: # kill: def $al killed $al killed $eax
8585
; X64-NEXT: retq
8686
%xor = xor i8 %x, -1
@@ -98,8 +98,8 @@ define i8 @add_and_xor_commuted2(i8 %x, i8 %y) {
9898
;
9999
; X64-LABEL: add_and_xor_commuted2:
100100
; X64: # %bb.0:
101-
; X64-NEXT: movl %edi, %eax
102-
; X64-NEXT: orl %esi, %eax
101+
; X64-NEXT: movl %esi, %eax
102+
; X64-NEXT: orb %dil, %al
103103
; X64-NEXT: # kill: def $al killed $al killed $eax
104104
; X64-NEXT: retq
105105
%xor = xor i8 %x, -1
@@ -117,8 +117,8 @@ define i8 @add_and_xor_commuted3(i8 %x, i8 %y) {
117117
;
118118
; X64-LABEL: add_and_xor_commuted3:
119119
; X64: # %bb.0:
120-
; X64-NEXT: movl %edi, %eax
121-
; X64-NEXT: orl %esi, %eax
120+
; X64-NEXT: movl %esi, %eax
121+
; X64-NEXT: orb %dil, %al
122122
; X64-NEXT: # kill: def $al killed $al killed $eax
123123
; X64-NEXT: retq
124124
%xor = xor i8 %x, -1

llvm/test/CodeGen/X86/and-encoding.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ define void @f1() nounwind {
2222
define void @f2(i16 %x, ptr%y) nounwind {
2323
; CHECK-LABEL: f2:
2424
; CHECK: # %bb.0:
25-
; CHECK-NEXT: andl $1, %edi # encoding: [0x83,0xe7,0x01]
25+
; CHECK-NEXT: andb $1, %dil # encoding: [0x40,0x80,0xe7,0x01]
2626
; CHECK-NEXT: movb %dil, (%rsi) # encoding: [0x40,0x88,0x3e]
2727
; CHECK-NEXT: retq # encoding: [0xc3]
2828
%c = trunc i16 %x to i1
@@ -33,7 +33,7 @@ define void @f2(i16 %x, ptr%y) nounwind {
3333
define void @f3(i32 %x, ptr%y) nounwind {
3434
; CHECK-LABEL: f3:
3535
; CHECK: # %bb.0:
36-
; CHECK-NEXT: andl $1, %edi # encoding: [0x83,0xe7,0x01]
36+
; CHECK-NEXT: andb $1, %dil # encoding: [0x40,0x80,0xe7,0x01]
3737
; CHECK-NEXT: movb %dil, (%rsi) # encoding: [0x40,0x88,0x3e]
3838
; CHECK-NEXT: retq # encoding: [0xc3]
3939
%c = trunc i32 %x to i1

llvm/test/CodeGen/X86/and-with-overflow.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ define i8 @and_i8_rr(i8 zeroext %0, i8 zeroext %1) {
4646
;
4747
; X64-LABEL: and_i8_rr:
4848
; X64: # %bb.0:
49-
; X64-NEXT: movl %esi, %eax
50-
; X64-NEXT: andl %edi, %eax
49+
; X64-NEXT: andb %dil, %sil
50+
; X64-NEXT: movzbl %sil, %eax
5151
; X64-NEXT: cmovel %edi, %eax
5252
; X64-NEXT: # kill: def $al killed $al killed $eax
5353
; X64-NEXT: retq

llvm/test/CodeGen/X86/atomic-unordered.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2009,7 +2009,7 @@ define i32 @split_load(ptr %p) {
20092009
; CHECK-O3-NEXT: movq (%rdi), %rax
20102010
; CHECK-O3-NEXT: movq %rax, %rcx
20112011
; CHECK-O3-NEXT: shrq $32, %rcx
2012-
; CHECK-O3-NEXT: orl %eax, %ecx
2012+
; CHECK-O3-NEXT: orb %al, %cl
20132013
; CHECK-O3-NEXT: movzbl %cl, %eax
20142014
; CHECK-O3-NEXT: retq
20152015
%v = load atomic i64, ptr %p unordered, align 8

llvm/test/CodeGen/X86/avx512-calling-conv.ll

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -938,7 +938,7 @@ define <17 x i1> @test16(<17 x i1> %a, <17 x i1> %b) nounwind {
938938
; KNL-NEXT: kshiftrw $13, %k0, %k1
939939
; KNL-NEXT: kmovw %k1, %r13d
940940
; KNL-NEXT: kshiftrw $14, %k0, %k1
941-
; KNL-NEXT: andl $1, %edx
941+
; KNL-NEXT: andb $1, %dl
942942
; KNL-NEXT: movb %dl, 2(%rax)
943943
; KNL-NEXT: kmovw %k0, %edx
944944
; KNL-NEXT: andl $1, %edx
@@ -1251,7 +1251,7 @@ define <17 x i1> @test16(<17 x i1> %a, <17 x i1> %b) nounwind {
12511251
; SKX-NEXT: kshiftrd $13, %k0, %k1
12521252
; SKX-NEXT: kmovd %k1, %r13d
12531253
; SKX-NEXT: kshiftrd $14, %k0, %k1
1254-
; SKX-NEXT: andl $1, %edx
1254+
; SKX-NEXT: andb $1, %dl
12551255
; SKX-NEXT: movb %dl, 2(%rax)
12561256
; SKX-NEXT: kmovd %k0, %edx
12571257
; SKX-NEXT: andl $1, %edx
@@ -1564,7 +1564,7 @@ define <17 x i1> @test16(<17 x i1> %a, <17 x i1> %b) nounwind {
15641564
; KNL_X32-NEXT: kshiftrw $5, %k0, %k1
15651565
; KNL_X32-NEXT: kmovw %k1, %ecx
15661566
; KNL_X32-NEXT: kshiftrw $6, %k0, %k1
1567-
; KNL_X32-NEXT: andl $1, %ebx
1567+
; KNL_X32-NEXT: andb $1, %bl
15681568
; KNL_X32-NEXT: movb %bl, 2(%eax)
15691569
; KNL_X32-NEXT: kmovw %k0, %ebx
15701570
; KNL_X32-NEXT: andl $1, %ebx
@@ -1892,7 +1892,7 @@ define <17 x i1> @test16(<17 x i1> %a, <17 x i1> %b) nounwind {
18921892
; FASTISEL-NEXT: kshiftrd $13, %k0, %k1
18931893
; FASTISEL-NEXT: kmovd %k1, %r13d
18941894
; FASTISEL-NEXT: kshiftrd $14, %k0, %k1
1895-
; FASTISEL-NEXT: andl $1, %edx
1895+
; FASTISEL-NEXT: andb $1, %dl
18961896
; FASTISEL-NEXT: movb %dl, 2(%rax)
18971897
; FASTISEL-NEXT: kmovd %k0, %edx
18981898
; FASTISEL-NEXT: andl $1, %edx

llvm/test/CodeGen/X86/avx512-intrinsics.ll

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4548,32 +4548,32 @@ define i8@test_int_x86_avx512_mask_cmp_sd_all(<2 x double> %x0, <2 x double> %x1
45484548
; X64-NEXT: kmovw %k0, %esi
45494549
; X64-NEXT: vcmpnltsd {sae}, %xmm1, %xmm0, %k0 {%k1}
45504550
; X64-NEXT: kmovw %k0, %eax
4551-
; X64-NEXT: orl %ecx, %edx
4552-
; X64-NEXT: orl %esi, %eax
4553-
; X64-NEXT: orl %edx, %eax
4551+
; X64-NEXT: orb %cl, %dl
4552+
; X64-NEXT: orb %sil, %al
4553+
; X64-NEXT: orb %dl, %al
45544554
; X64-NEXT: # kill: def $al killed $al killed $eax
45554555
; X64-NEXT: retq
45564556
;
45574557
; X86-LABEL: test_int_x86_avx512_mask_cmp_sd_all:
45584558
; X86: # %bb.0:
4559-
; X86-NEXT: pushl %esi
4559+
; X86-NEXT: pushl %ebx
45604560
; X86-NEXT: .cfi_def_cfa_offset 8
4561-
; X86-NEXT: .cfi_offset %esi, -8
4561+
; X86-NEXT: .cfi_offset %ebx, -8
45624562
; X86-NEXT: movzbl {{[0-9]+}}(%esp), %eax
45634563
; X86-NEXT: kmovw %eax, %k1
45644564
; X86-NEXT: vcmplesd %xmm1, %xmm0, %k0
45654565
; X86-NEXT: kmovw %k0, %ecx
45664566
; X86-NEXT: vcmpunordsd {sae}, %xmm1, %xmm0, %k0
45674567
; X86-NEXT: kmovw %k0, %edx
45684568
; X86-NEXT: vcmpneqsd %xmm1, %xmm0, %k0 {%k1}
4569-
; X86-NEXT: kmovw %k0, %esi
4569+
; X86-NEXT: kmovw %k0, %ebx
45704570
; X86-NEXT: vcmpnltsd {sae}, %xmm1, %xmm0, %k0 {%k1}
45714571
; X86-NEXT: kmovw %k0, %eax
4572-
; X86-NEXT: orl %ecx, %edx
4573-
; X86-NEXT: orl %esi, %eax
4574-
; X86-NEXT: orl %edx, %eax
4572+
; X86-NEXT: orb %cl, %dl
4573+
; X86-NEXT: orb %bl, %al
4574+
; X86-NEXT: orb %dl, %al
45754575
; X86-NEXT: # kill: def $al killed $al killed $eax
4576-
; X86-NEXT: popl %esi
4576+
; X86-NEXT: popl %ebx
45774577
; X86-NEXT: .cfi_def_cfa_offset 4
45784578
; X86-NEXT: retl
45794579

@@ -4625,32 +4625,32 @@ define i8@test_int_x86_avx512_mask_cmp_ss_all(<4 x float> %x0, <4 x float> %x1,
46254625
; X64-NEXT: kmovw %k0, %esi
46264626
; X64-NEXT: vcmpnltss {sae}, %xmm1, %xmm0, %k0 {%k1}
46274627
; X64-NEXT: kmovw %k0, %eax
4628-
; X64-NEXT: andl %ecx, %edx
4629-
; X64-NEXT: andl %esi, %eax
4630-
; X64-NEXT: andl %edx, %eax
4628+
; X64-NEXT: andb %cl, %dl
4629+
; X64-NEXT: andb %sil, %al
4630+
; X64-NEXT: andb %dl, %al
46314631
; X64-NEXT: # kill: def $al killed $al killed $eax
46324632
; X64-NEXT: retq
46334633
;
46344634
; X86-LABEL: test_int_x86_avx512_mask_cmp_ss_all:
46354635
; X86: # %bb.0:
4636-
; X86-NEXT: pushl %esi
4636+
; X86-NEXT: pushl %ebx
46374637
; X86-NEXT: .cfi_def_cfa_offset 8
4638-
; X86-NEXT: .cfi_offset %esi, -8
4638+
; X86-NEXT: .cfi_offset %ebx, -8
46394639
; X86-NEXT: movzbl {{[0-9]+}}(%esp), %eax
46404640
; X86-NEXT: kmovw %eax, %k1
46414641
; X86-NEXT: vcmpless %xmm1, %xmm0, %k0
46424642
; X86-NEXT: kmovw %k0, %ecx
46434643
; X86-NEXT: vcmpunordss {sae}, %xmm1, %xmm0, %k0
46444644
; X86-NEXT: kmovw %k0, %edx
46454645
; X86-NEXT: vcmpneqss %xmm1, %xmm0, %k0 {%k1}
4646-
; X86-NEXT: kmovw %k0, %esi
4646+
; X86-NEXT: kmovw %k0, %ebx
46474647
; X86-NEXT: vcmpnltss {sae}, %xmm1, %xmm0, %k0 {%k1}
46484648
; X86-NEXT: kmovw %k0, %eax
4649-
; X86-NEXT: andl %ecx, %edx
4650-
; X86-NEXT: andl %esi, %eax
4651-
; X86-NEXT: andl %edx, %eax
4649+
; X86-NEXT: andb %cl, %dl
4650+
; X86-NEXT: andb %bl, %al
4651+
; X86-NEXT: andb %dl, %al
46524652
; X86-NEXT: # kill: def $al killed $al killed $eax
4653-
; X86-NEXT: popl %esi
4653+
; X86-NEXT: popl %ebx
46544654
; X86-NEXT: .cfi_def_cfa_offset 4
46554655
; X86-NEXT: retl
46564656
%res1 = call i8 @llvm.x86.avx512.mask.cmp.ss(<4 x float> %x0, <4 x float> %x1, i32 2, i8 -1, i32 4)

llvm/test/CodeGen/X86/avx512dq-mask-op.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ define i8 @mand8(i8 %x, i8 %y) {
3333
; CHECK-LABEL: mand8:
3434
; CHECK: ## %bb.0:
3535
; CHECK-NEXT: movl %edi, %eax
36-
; CHECK-NEXT: orl %esi, %eax
36+
; CHECK-NEXT: orb %sil, %al
3737
; CHECK-NEXT: ## kill: def $al killed $al killed $eax
3838
; CHECK-NEXT: retq
3939
%ma = bitcast i8 %x to <8 x i1>

llvm/test/CodeGen/X86/cmp-bool.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
define void @bool_eq(i1 zeroext %a, i1 zeroext %b, ptr nocapture %c) nounwind {
55
; CHECK-LABEL: bool_eq:
66
; CHECK: # %bb.0: # %entry
7-
; CHECK-NEXT: xorl %esi, %edi
7+
; CHECK-NEXT: cmpb %sil, %dil
88
; CHECK-NEXT: je .LBB0_2
99
; CHECK-NEXT: # %bb.1: # %if.end
1010
; CHECK-NEXT: retq

llvm/test/CodeGen/X86/cmp-concat.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
define i1 @cmp_allbits_concat_i8(i8 %x, i8 %y) {
55
; CHECK-LABEL: cmp_allbits_concat_i8:
66
; CHECK: # %bb.0:
7-
; CHECK-NEXT: andl %esi, %edi
7+
; CHECK-NEXT: andb %sil, %dil
88
; CHECK-NEXT: cmpb $-1, %dil
99
; CHECK-NEXT: sete %al
1010
; CHECK-NEXT: retq

0 commit comments

Comments
 (0)