Lines Matching refs:zero

165         auto zero = builder.Int32(0);
166 auto result = instcombie.VisitGate(builder.Int32Add(builder.Int32Sub(zero, x), y));
176 auto zero = builder.Int32(0);
177 auto result = instcombie.VisitGate(builder.Int32Add(y, builder.Int32Sub(zero, x)));
725 auto zero = b.Double(0);
735 EXPECT_EQ(instcombie.VisitGate(b.DoubleMod(x, zero)), nan);
807 auto zero = b.Int32(0);
818 EXPECT_EQ(instcombie.VisitGate(b.Int32Mod(x, zero)), zero);
819 EXPECT_EQ(instcombie.VisitGate(b.Int32Mod(zero, x)), zero);
820 EXPECT_EQ(instcombie.VisitGate(b.Int32Mod(x, one)), zero);
821 EXPECT_EQ(instcombie.VisitGate(b.Int32Mod(x, neg_one)), zero);
822 EXPECT_EQ(instcombie.VisitGate(b.Int32Mod(x, x)), zero);
987 auto zero = b.Int64(0);
989 auto Icmp = b.Equal(x, zero);
992 EXPECT_EQ(instcombie.VisitGate(b.Int64And(x, zero)), zero); // x & 0 => 0
995 EXPECT_EQ(instcombie.VisitGate(b.Int64And(two, one)), zero); // K & K => K
1003 EXPECT_EQ(m.Right().Gate(), zero);
1008 auto zero = b.Int32(0);
1010 auto Icmp = b.Equal(x, zero);
1013 EXPECT_EQ(instcombie.VisitGate(b.Int32And(x, zero)), zero); // x & 0 => 0
1016 EXPECT_EQ(instcombie.VisitGate(b.Int32And(two, one)), zero); // K & K => K
1024 EXPECT_EQ(m.Right().Gate(), zero);
1042 auto zero = b.Int64(0);
1047 EXPECT_EQ(instcombie.VisitGate(b.Int64Or(x, zero)), x); // x | 0 => x
1051 // (x & K1) | K2 => x | K2 if K2 has ones for every zero bit in K1.
1063 auto zero = b.Int32(0);
1068 EXPECT_EQ(instcombie.VisitGate(b.Int32Or(x, zero)), x); // x | 0 => x
1072 // (x & K1) | K2 => x | K2 if K2 has ones for every zero bit in K1.
1096 auto zero = b.Int64(0);
1101 EXPECT_EQ(instcombie.VisitGate(b.Int64Xor(x, zero)), x); // x ^ 0 => x
1103 EXPECT_EQ(instcombie.VisitGate(b.Int64Xor(x, x)), zero); // x ^ x => 0
1110 auto zero = b.Int32(0);
1115 EXPECT_EQ(instcombie.VisitGate(b.Int32Xor(x, zero)), x); // x ^ 0 => x
1117 EXPECT_EQ(instcombie.VisitGate(b.Int32Xor(x, x)), zero); // x ^ x => 0
1138 auto zero = b.Int64(0);
1140 EXPECT_EQ(instcombie.VisitGate(b.Int64LSR(x, zero)), x); // x >>> 0 => x
1149 auto zero = b.Int32(0);
1151 EXPECT_EQ(instcombie.VisitGate(b.Int32LSR(x, zero)), x); // x >>> 0 => x
1157 EXPECT_EQ(instcombie.VisitGate(b.Int32LSR(b.Int32And(x, b.Int32(1023)), b.Int32(10))), zero);
1175 auto zero = b.Int64(0);
1178 EXPECT_EQ(instcombie.VisitGate(b.Int64ASR(x, zero)), x);
1186 auto zero = b.Int32(0);
1189 EXPECT_EQ(instcombie.VisitGate(b.Int32ASR(x, zero)), x);
1211 auto zero = b.Int64(0);
1214 EXPECT_EQ(instcombie.VisitGate(b.Int64LSL(x, zero)), x);
1220 auto zero = b.Int32(0);
1223 EXPECT_EQ(instcombie.VisitGate(b.Int32LSL(x, zero)), x);
1264 auto zero = b.Int64(0);
1265 auto result = instcombie.VisitGate(b.Equal(b.Int64And(b.Int64Or(x, constant1), constant2), zero));