• Home
  • Raw
  • Download

Lines Matching full:zero

165         auto zero = builder.Int32(0);  in HWTEST_F_L0()  local
166 auto result = instcombie.VisitGate(builder.Int32Add(builder.Int32Sub(zero, x), y)); in HWTEST_F_L0()
176 auto zero = builder.Int32(0); in HWTEST_F_L0() local
177 auto result = instcombie.VisitGate(builder.Int32Add(y, builder.Int32Sub(zero, x))); in HWTEST_F_L0()
732 auto zero = b.Double(0); in HWTEST_F_L0() local
742 EXPECT_EQ(instcombie.VisitGate(b.DoubleMod(x, zero)), nan); in HWTEST_F_L0()
814 auto zero = b.Int32(0); in HWTEST_F_L0() local
825 EXPECT_EQ(instcombie.VisitGate(b.Int32Mod(x, zero)), zero); in HWTEST_F_L0()
826 EXPECT_EQ(instcombie.VisitGate(b.Int32Mod(zero, x)), zero); in HWTEST_F_L0()
827 EXPECT_EQ(instcombie.VisitGate(b.Int32Mod(x, one)), zero); in HWTEST_F_L0()
828 EXPECT_EQ(instcombie.VisitGate(b.Int32Mod(x, neg_one)), zero); in HWTEST_F_L0()
829 EXPECT_EQ(instcombie.VisitGate(b.Int32Mod(x, x)), zero); in HWTEST_F_L0()
994 auto zero = b.Int64(0); in HWTEST_F_L0() local
996 auto Icmp = b.Equal(x, zero); in HWTEST_F_L0()
999 EXPECT_EQ(instcombie.VisitGate(b.Int64And(x, zero)), zero); // x & 0 => 0 in HWTEST_F_L0()
1002 EXPECT_EQ(instcombie.VisitGate(b.Int64And(two, one)), zero); // K & K => K in HWTEST_F_L0()
1010 EXPECT_EQ(m.Right().Gate(), zero); in HWTEST_F_L0()
1015 auto zero = b.Int32(0); in HWTEST_F_L0() local
1017 auto Icmp = b.Equal(x, zero); in HWTEST_F_L0()
1020 EXPECT_EQ(instcombie.VisitGate(b.Int32And(x, zero)), zero); // x & 0 => 0 in HWTEST_F_L0()
1023 EXPECT_EQ(instcombie.VisitGate(b.Int32And(two, one)), zero); // K & K => K in HWTEST_F_L0()
1031 EXPECT_EQ(m.Right().Gate(), zero); in HWTEST_F_L0()
1049 auto zero = b.Int64(0); in HWTEST_F_L0() local
1054 EXPECT_EQ(instcombie.VisitGate(b.Int64Or(x, zero)), x); // x | 0 => x in HWTEST_F_L0()
1058 // (x & K1) | K2 => x | K2 if K2 has ones for every zero bit in K1. in HWTEST_F_L0()
1070 auto zero = b.Int32(0); in HWTEST_F_L0() local
1075 EXPECT_EQ(instcombie.VisitGate(b.Int32Or(x, zero)), x); // x | 0 => x in HWTEST_F_L0()
1079 // (x & K1) | K2 => x | K2 if K2 has ones for every zero bit in K1. in HWTEST_F_L0()
1103 auto zero = b.Int64(0); in HWTEST_F_L0() local
1108 EXPECT_EQ(instcombie.VisitGate(b.Int64Xor(x, zero)), x); // x ^ 0 => x in HWTEST_F_L0()
1110 EXPECT_EQ(instcombie.VisitGate(b.Int64Xor(x, x)), zero); // x ^ x => 0 in HWTEST_F_L0()
1117 auto zero = b.Int32(0); in HWTEST_F_L0() local
1122 EXPECT_EQ(instcombie.VisitGate(b.Int32Xor(x, zero)), x); // x ^ 0 => x in HWTEST_F_L0()
1124 EXPECT_EQ(instcombie.VisitGate(b.Int32Xor(x, x)), zero); // x ^ x => 0 in HWTEST_F_L0()
1145 auto zero = b.Int64(0); in HWTEST_F_L0() local
1147 EXPECT_EQ(instcombie.VisitGate(b.Int64LSR(x, zero)), x); // x >>> 0 => x in HWTEST_F_L0()
1156 auto zero = b.Int32(0); in HWTEST_F_L0() local
1158 EXPECT_EQ(instcombie.VisitGate(b.Int32LSR(x, zero)), x); // x >>> 0 => x in HWTEST_F_L0()
1164 … EXPECT_EQ(instcombie.VisitGate(b.Int32LSR(b.Int32And(x, b.Int32(1023)), b.Int32(10))), zero); in HWTEST_F_L0()
1182 auto zero = b.Int64(0); in HWTEST_F_L0() local
1185 EXPECT_EQ(instcombie.VisitGate(b.Int64ASR(x, zero)), x); in HWTEST_F_L0()
1193 auto zero = b.Int32(0); in HWTEST_F_L0() local
1196 EXPECT_EQ(instcombie.VisitGate(b.Int32ASR(x, zero)), x); in HWTEST_F_L0()
1218 auto zero = b.Int64(0); in HWTEST_F_L0() local
1221 EXPECT_EQ(instcombie.VisitGate(b.Int64LSL(x, zero)), x); in HWTEST_F_L0()
1227 auto zero = b.Int32(0); in HWTEST_F_L0() local
1230 EXPECT_EQ(instcombie.VisitGate(b.Int32LSL(x, zero)), x); in HWTEST_F_L0()
1271 auto zero = b.Int64(0); in HWTEST_F_L0() local
1272 … auto result = instcombie.VisitGate(b.Equal(b.Int64And(b.Int64Or(x, constant1), constant2), zero)); in HWTEST_F_L0()