[LoongArch][ISel] Check the number of sign bits in `PatGprGpr_32` (#107432)
[llvm-project.git] / llvm / test / CodeGen / X86 / propagate-disjoint-in-shl-or.ll
blobe38840f3e46106f845b652003b50c4d799201377
1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -mtriple=x86_64 %s -start-before=x86-isel -o - | FileCheck %s
4 define i32 @add_shl_or_disjoint(i32 %x) {
5 ; CHECK-LABEL: add_shl_or_disjoint:
6 ; CHECK:       # %bb.0:
7 ; CHECK-NEXT:    # kill: def $edi killed $edi def $rdi
8 ; CHECK-NEXT:    leal 165036822(,%rdi,4), %eax
9 ; CHECK-NEXT:    retq
10   %or = or disjoint i32 %x, 4027584529
11   %shl = shl i32 %or, 2
12   %add = add i32 %shl, 1234567890
13   ret i32 %add