File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -994,6 +994,30 @@ define i1 @shr_to_rotate_eq_i32_s5(i32 %x) {
994994 ret i1 %r
995995}
996996
997+ define i32 @issue108722 (i32 %0 ) {
998+ ; CHECK-NOBMI-LABEL: issue108722:
999+ ; CHECK-NOBMI: # %bb.0:
1000+ ; CHECK-NOBMI-NEXT: movzbl %dil, %ecx
1001+ ; CHECK-NOBMI-NEXT: shrl $24, %edi
1002+ ; CHECK-NOBMI-NEXT: xorl %eax, %eax
1003+ ; CHECK-NOBMI-NEXT: cmpl %edi, %ecx
1004+ ; CHECK-NOBMI-NEXT: sete %al
1005+ ; CHECK-NOBMI-NEXT: retq
1006+ ;
1007+ ; CHECK-BMI2-LABEL: issue108722:
1008+ ; CHECK-BMI2: # %bb.0:
1009+ ; CHECK-BMI2-NEXT: rorxl $8, %edi, %ecx
1010+ ; CHECK-BMI2-NEXT: xorl %eax, %eax
1011+ ; CHECK-BMI2-NEXT: cmpl %edi, %ecx
1012+ ; CHECK-BMI2-NEXT: sete %al
1013+ ; CHECK-BMI2-NEXT: retq
1014+ %2 = tail call i32 @llvm.fshl.i32 (i32 %0 , i32 %0 , i32 24 )
1015+ %3 = icmp eq i32 %2 , %0
1016+ %4 = zext i1 %3 to i32
1017+ ret i32 %4
1018+ }
1019+
1020+
9971021;; NOTE: These prefixes are unused and the list is autogenerated. Do not add tests below this line:
9981022; CHECK-AVX: {{.*}}
9991023; CHECK-NOBMI-SSE2: {{.*}}
You can’t perform that action at this time.
0 commit comments