Revert " [LoongArch][ISel] Check the number of sign bits in `PatGprGpr_32` (#107432)"
[llvm-project.git] / llvm / test / CodeGen / PowerPC / 2006-11-10-DAGCombineMiscompile.ll
blobd557dfb064d9f39326ea4a1d035bbc007b2fa16e
1 ; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | grep rlwimi
3 define void @test(i16 %div.0.i.i.i.i, i32 %L_num.0.i.i.i.i, i32 %tmp1.i.i206.i.i, ptr %P) {
4         %X = shl i16 %div.0.i.i.i.i, 1          ; <i16> [#uses=1]
5         %tmp28.i.i.i.i = shl i32 %L_num.0.i.i.i.i, 1            ; <i32> [#uses=1]
6         %tmp31.i.i.i.i = icmp slt i32 %tmp28.i.i.i.i, %tmp1.i.i206.i.i          ; <i1> [#uses=1]
7         %tmp31.i.i.i.i.upgrd.1 = zext i1 %tmp31.i.i.i.i to i16          ; <i16> [#uses=1]
8         %tmp371.i.i.i.i1 = or i16 %tmp31.i.i.i.i.upgrd.1, %X            ; <i16> [#uses=1]
9         %div.0.be.i.i.i.i = xor i16 %tmp371.i.i.i.i1, 1         ; <i16> [#uses=1]
10         store i16 %div.0.be.i.i.i.i, ptr %P
11         ret void