Lines Matching refs:Int32

137         auto const_i32_0 = builder.Int32(0);
144 auto const_i32_1 = builder.Int32(1);
145 auto const_i32_2 = builder.Int32(2);
152 auto const_i32_max = builder.Int32(2147483647);
153 auto const_i32_1 = builder.Int32(1);
165 auto zero = builder.Int32(0);
176 auto zero = builder.Int32(0);
187 auto const_1 = builder.Int32(1);
188 auto const_2 = builder.Int32(2);
198 auto const_1 = builder.Int32(2147483647);
199 auto const_2 = builder.Int32(1);
296 auto const_i32_0 = builder.Int32(0);
302 auto const_i32_1 = builder.Int32(1);
303 auto const_i32_2 = builder.Int32(2);
310 auto const_i32_min = builder.Int32(-2147483647 - 1); // -2147483648
311 auto const_i32_1 = builder.Int32(1);
329 auto const_1 = builder.Int32(-1);
340 auto const_min = builder.Int32(INT32_MIN); // Minimum int32_t value
465 auto const_0 = b.Int32(0);
472 auto const_1 = b.Int32(1);
480 auto const_1 = b.Int32(1);
481 auto const_2 = b.Int32(2);
489 auto const_i32_max = b.Int32(2147483647); // Max int32_t value
490 auto const_i32_2 = b.Int32(2);
503 auto result = instcombie.VisitGate(b.Int32Mul(x, b.Int32(-1)));
515 auto const_4 = b.Int32(4);
527 auto const_4 = b.Int32(4);
528 auto const_5 = b.Int32(5);
539 auto const_almost_max = b.Int32(INT32_MAX - 1); // INT32_MAX - 1
540 auto const_3 = b.Int32(3);
647 auto const_0 = b.Int32(0);
656 auto const_0 = b.Int32(0);
664 auto const_1 = b.Int32(1);
671 auto const_4 = b.Int32(4);
672 auto const_2 = b.Int32(2);
682 auto result = instcombie.VisitGate(b.Int32Div(x, b.Int32(-1)));
694 auto result = instcombie.VisitGate(b.Int32Div(x, b.Int32(-5)));
807 auto zero = b.Int32(0);
808 auto one = b.Int32(1);
809 auto neg_one = b.Int32(-1);
810 auto four = b.Int32(4);
811 auto two = b.Int32(2);
844 auto add_overflow = b.AddWithOverflow(b.Int32(2147483647), b.Int32(1));
845 auto add_result = b.ExtractValue(ecmascript::kungfu::MachineType::I32, add_overflow, b.Int32(0));
846 auto is_over = b.ExtractValue(ecmascript::kungfu::MachineType::I1, add_overflow, b.Int32(1));
853 auto add_overflow = b.AddWithOverflow(b.Int32(2147483646), b.Int32(1));
854 auto add_result = b.ExtractValue(ecmascript::kungfu::MachineType::I32, add_overflow, b.Int32(0));
855 auto is_over = b.ExtractValue(ecmascript::kungfu::MachineType::I1, add_overflow, b.Int32(1));
865 auto add_overflow = b.AddWithOverflow(x, b.Int32(0));
866 auto add_result = b.ExtractValue(ecmascript::kungfu::MachineType::I32, add_overflow, b.Int32(0));
867 auto is_over = b.ExtractValue(ecmascript::kungfu::MachineType::I1, add_overflow, b.Int32(1));
889 auto sub_overflow = b.SubWithOverflow(b.Int32(-2147483648), b.Int32(1));
890 auto sub_result = b.ExtractValue(ecmascript::kungfu::MachineType::I32, sub_overflow, b.Int32(0));
891 auto is_over = b.ExtractValue(ecmascript::kungfu::MachineType::I1, sub_overflow, b.Int32(1));
898 auto sub_overflow = b.SubWithOverflow(b.Int32(2147483647), b.Int32(1));
899 auto sub_result = b.ExtractValue(ecmascript::kungfu::MachineType::I32, sub_overflow, b.Int32(0));
900 auto is_over = b.ExtractValue(ecmascript::kungfu::MachineType::I1, sub_overflow, b.Int32(1));
909 auto sub_overflow = b.SubWithOverflow(x, b.Int32(0));
910 auto sub_result = b.ExtractValue(ecmascript::kungfu::MachineType::I32, sub_overflow, b.Int32(0));
911 auto is_over = b.ExtractValue(ecmascript::kungfu::MachineType::I1, sub_overflow, b.Int32(1));
933 auto mul_overflow = b.MulWithOverflow(b.Int32(2147483647), b.Int32(2));
934 auto mul_result = b.ExtractValue(ecmascript::kungfu::MachineType::I32, mul_overflow, b.Int32(0));
935 auto is_over = b.ExtractValue(ecmascript::kungfu::MachineType::I1, mul_overflow, b.Int32(1));
943 auto mul_overflow = b.MulWithOverflow(b.Int32(1000), b.Int32(2));
944 auto mul_result = b.ExtractValue(ecmascript::kungfu::MachineType::I32, mul_overflow, b.Int32(0));
945 auto is_over = b.ExtractValue(ecmascript::kungfu::MachineType::I1, mul_overflow, b.Int32(1));
954 auto mul_overflow = b.MulWithOverflow(x, b.Int32(1));
955 auto mul_result = b.ExtractValue(ecmascript::kungfu::MachineType::I32, mul_overflow, b.Int32(0));
956 auto is_over = b.ExtractValue(ecmascript::kungfu::MachineType::I1, mul_overflow, b.Int32(1));
965 auto mul_overflow = b.MulWithOverflow(x, b.Int32(0));
966 auto mul_result = b.ExtractValue(ecmascript::kungfu::MachineType::I32, mul_overflow, b.Int32(0));
967 auto is_over = b.ExtractValue(ecmascript::kungfu::MachineType::I1, mul_overflow, b.Int32(1));
968 EXPECT_EQ(instcombie.VisitGate(mul_result), b.Int32(0));
1008 auto zero = b.Int32(0);
1009 auto neg_one = b.Int32(-1);
1011 auto one = b.Int32(1);
1012 auto two = b.Int32(2);
1063 auto zero = b.Int32(0);
1064 auto neg_one = b.Int32(-1);
1065 auto one = b.Int32(1);
1066 auto two = b.Int32(2);
1067 auto three = b.Int32(3);
1073 auto result = instcombie.VisitGate(b.Int32Or(b.Int32And(x, b.Int32(-1431655765)), b.Int32(1431655765)));
1078 EXPECT_EQ(m.Right().Gate(), b.Int32(1431655765));
1110 auto zero = b.Int32(0);
1111 auto neg_one = b.Int32(-1);
1112 auto one = b.Int32(1);
1113 auto two = b.Int32(2);
1114 auto three = b.Int32(3);
1149 auto zero = b.Int32(0);
1150 auto two = b.Int32(2);
1154 EXPECT_EQ(instcombie.VisitGate(b.Int32LSR(b.Int32(-8), two)), b.Int32(1073741822u));
1155 EXPECT_EQ(instcombie.VisitGate(b.Int32LSR(b.Int32(8), two)), b.Int32(2));
1157 EXPECT_EQ(instcombie.VisitGate(b.Int32LSR(b.Int32And(x, b.Int32(1023)), b.Int32(10))), zero);
1186 auto zero = b.Int32(0);
1187 auto two = b.Int32(2);
1192 EXPECT_EQ(instcombie.VisitGate(b.Int32ASR(b.Int32(-8), two)), b.Int32(-2));
1193 EXPECT_EQ(instcombie.VisitGate(b.Int32ASR(b.Int32(8), two)), b.Int32(2));
1220 auto zero = b.Int32(0);
1221 auto two = b.Int32(2);
1225 EXPECT_EQ(instcombie.VisitGate(b.Int32LSL(b.Int32(1), two)), b.Int32(4));