; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 4 ; RUN: llc < %s -mtriple=x86_64-- -mcpu=emeraldrapids | FileCheck %s ; RUN: llc < %s -mtriple=x86_64-- -mcpu=x86-64 | FileCheck %s ; RUN: llc < %s -mtriple=x86_64-- -mcpu=x86-64-v2 | FileCheck %s ; RUN: llc < %s -mtriple=x86_64-- -mcpu=x86-64-v3 | FileCheck %s ; RUN: llc < %s -mtriple=x86_64-- -mcpu=x86-64-v4 | FileCheck %s ; PR85681 - shift i1/vXi1 X, Y -> X as only Y==0 is defined define i32 @shl(i32 %a0) { ; CHECK-LABEL: shl: ; CHECK: # %bb.0: ; CHECK-NEXT: movl $-1, %eax ; CHECK-NEXT: retq %v0 = bitcast i32 %a0 to <32 x i1> %s = shl <32 x i1> , %v0 %r = bitcast <32 x i1> %s to i32 ret i32 %r } define i32 @lshr(i32 %a0) { ; CHECK-LABEL: lshr: ; CHECK: # %bb.0: ; CHECK-NEXT: movl $-1, %eax ; CHECK-NEXT: retq %v0 = bitcast i32 %a0 to <32 x i1> %s = lshr <32 x i1> , %v0 %r = bitcast <32 x i1> %s to i32 ret i32 %r } define i32 @ashr(i32 %a0) { ; CHECK-LABEL: ashr: ; CHECK: # %bb.0: ; CHECK-NEXT: movl $-1, %eax ; CHECK-NEXT: retq %v0 = bitcast i32 %a0 to <32 x i1> %s = ashr <32 x i1> , %v0 %r = bitcast <32 x i1> %s to i32 ret i32 %r }