Lines Matching refs:Value1
48 #define TestSetCC(C, Src0, Value0, Src1, Value1, Dest, IsTrue) \ in TEST_F() argument
53 __ mov(IceType_i32, GPRRegister::Encoded_Reg_##Src1, Immediate(Value1)); \ in TEST_F()
66 << "(" #C ", " #Src0 ", " #Value0 ", " #Src1 ", " #Value1 ", " #Dest \ in TEST_F()
69 << "(" #C ", " #Src0 ", " #Value0 ", " #Src1 ", " #Value1 ", " #Dest \ in TEST_F()
326 #define TestImplRegReg(Dst, Value0, Src, Value1, Size) \ in TEST_F() argument
330 "(" #Dst ", " #Value0 ", " #Src ", " #Value1 ", " #Size ")"; \ in TEST_F()
337 Immediate(Value1)); \ in TEST_F()
351 ASSERT_EQ(((Value0)&Mask##Size) & ((Value1)&Mask##Size) ? ValueIfTrue \ in TEST_F()
388 #define TestImplAddrReg(Value0, Src, Value1, Size) \ in TEST_F() argument
392 "(Addr, " #Value0 ", " #Src ", " #Value1 ", " #Size ")"; \ in TEST_F()
398 Immediate(Value1)); \ in TEST_F()
411 ASSERT_EQ(((Value0)&Mask##Size) & ((Value1)&Mask##Size) ? ValueIfTrue \ in TEST_F()
418 #define TestImplAddrImm(Value0, Value1, Size) \ in TEST_F() argument
422 "(Addr, " #Value0 ", " #Value1 ", " #Size ")"; \ in TEST_F()
428 Immediate((Value1)&Mask##Size)); \ in TEST_F()
439 ASSERT_EQ(((Value0)&Mask##Size) & ((Value1)&Mask##Size) ? ValueIfTrue \ in TEST_F()
446 #define TestImplValues(Dst, Value0, Src, Value1, Size) \ in TEST_F() argument
448 TestImplRegReg(Dst, Value0, Src, Value1, Size); \ in TEST_F()
449 TestImplRegImm(Dst, Value0, Value1, Size); \ in TEST_F()
450 TestImplAddrReg(Value0, Src, Value1, Size); \ in TEST_F()
451 TestImplAddrImm(Value0, Value1, Size); \ in TEST_F()
491 #define TestImplRegReg(Inst, Dst, Value0, Src, Value1, Type, Size, Op) \ in TEST_F() argument
494 "(" #Inst ", " #Dst ", " #Value0 ", " #Src ", " #Value1 \ in TEST_F()
500 Immediate(Value1)); \ in TEST_F()
509 Op static_cast<Type##Size##_t>((Value1)&Mask##Size)), \ in TEST_F()
515 #define TestImplRegAddr(Inst, Dst, Value0, Value1, Type, Size, Op) \ in TEST_F() argument
518 "(" #Inst ", " #Dst ", " #Value0 ", Addr, " #Value1 ", " #Type #Size \ in TEST_F()
521 const uint32_t V0 = Value1; \ in TEST_F()
525 __ mov(IceType_i##Size, dwordAddress(T0), Immediate(Value1)); \ in TEST_F()
535 Op static_cast<Type##Size##_t>((Value1)&Mask##Size)), \ in TEST_F()
563 #define TestImplAddrReg(Inst, Value0, Src, Value1, Type, Size, Op) \ in TEST_F() argument
566 "(" #Inst ", Addr, " #Value0 ", " #Src ", " #Value1 ", " #Type #Size \ in TEST_F()
572 Immediate(Value1)); \ in TEST_F()
582 Op static_cast<Type##Size##_t>((Value1)&Mask##Size)), \ in TEST_F()
610 #define TestImplOp(Inst, Dst, Value0, Src, Value1, Type, Size, Op) \ in TEST_F() argument
612 TestImplRegReg(Inst, Dst, Value0, Src, Value1, Type, Size, Op); \ in TEST_F()
613 TestImplRegAddr(Inst, Dst, Value0, Value1, Type, Size, Op); \ in TEST_F()
614 TestImplRegImm(Inst, Dst, Value0, Value1, Type, Size, Op); \ in TEST_F()
615 TestImplAddrReg(Inst, Value0, Src, Value1, Type, Size, Op); \ in TEST_F()
616 TestImplAddrImm(Inst, Value0, Value1, Type, Size, Op); \ in TEST_F()
619 #define TestImplValues(Dst, Value0, Src, Value1, Size) \ in TEST_F() argument
621 TestImplOp(And, Dst, Value0, Src, Value1, int, Size, &); \ in TEST_F()
622 TestImplOp(And, Dst, Value0, Src, Value1, uint, Size, &); \ in TEST_F()
623 TestImplOp(Or, Dst, Value0, Src, Value1, int, Size, |); \ in TEST_F()
624 TestImplOp(Or, Dst, Value0, Src, Value1, uint, Size, |); \ in TEST_F()
625 TestImplOp(Xor, Dst, Value0, Src, Value1, int, Size, ^); \ in TEST_F()
626 TestImplOp(Xor, Dst, Value0, Src, Value1, uint, Size, ^); \ in TEST_F()
627 TestImplOp(add, Dst, Value0, Src, Value1, int, Size, +); \ in TEST_F()
628 TestImplOp(add, Dst, Value0, Src, Value1, uint, Size, +); \ in TEST_F()
629 TestImplOp(sub, Dst, Value0, Src, Value1, int, Size, -); \ in TEST_F()
630 TestImplOp(sub, Dst, Value0, Src, Value1, uint, Size, -); \ in TEST_F()
678 #define TestImplRegReg(Inst0, Inst1, Dst0, Dst1, Value0, Src0, Src1, Value1, \ in TEST_F() argument
685 ", " #Src1 ", " #Value1 ", " #Op ", " #Size ")"; \ in TEST_F()
691 Immediate(uint64_t(Value1) & Mask##Size)); \ in TEST_F()
693 Immediate((uint64_t(Value1) >> Size) & Mask##Size)); \ in TEST_F()
703 Op(uint64_t(Value1) & ResultMask##Size); \ in TEST_F()
711 #define TestImplRegAddr(Inst0, Inst1, Dst0, Dst1, Value0, Value1, Op, Size) \ in TEST_F() argument
717 ", Addr, " #Value1 ", " #Op ", " #Size ")"; \ in TEST_F()
719 const uint32_t V0 = uint64_t(Value1) & Mask##Size; \ in TEST_F()
721 const uint32_t V1 = (uint64_t(Value1) >> Size) & Mask##Size; \ in TEST_F()
737 Op(uint64_t(Value1) & ResultMask##Size); \ in TEST_F()
773 #define TestImplAddrReg(Inst0, Inst1, Value0, Src0, Src1, Value1, Op, Size) \ in TEST_F() argument
779 ", " #Value1 ", " #Op ", " #Size ")"; \ in TEST_F()
785 Immediate(uint64_t(Value1) & Mask##Size)); \ in TEST_F()
787 Immediate((uint64_t(Value1) >> Size) & Mask##Size)); \ in TEST_F()
799 Op(uint64_t(Value1) & ResultMask##Size); \ in TEST_F()
837 #define TestImplOp(Inst0, Inst1, Dst0, Dst1, Value0, Src0, Src1, Value1, Op, \ in TEST_F() argument
840 TestImplRegReg(Inst0, Inst1, Dst0, Dst1, Value0, Src0, Src1, Value1, Op, \ in TEST_F()
842 TestImplRegAddr(Inst0, Inst1, Dst0, Dst1, Value0, Value1, Op, Size); \ in TEST_F()
843 TestImplRegImm(Inst0, Inst1, Dst0, Dst1, Value0, Value1, Op, Size); \ in TEST_F()
844 TestImplAddrReg(Inst0, Inst1, Value0, Src0, Src1, Value1, Op, Size); \ in TEST_F()
845 TestImplAddrImm(Inst0, Inst1, Value0, Value1, Op, Size); \ in TEST_F()
848 #define TestImplValues(Dst0, Dst1, Value0, Src0, Src1, Value1, Size) \ in TEST_F() argument
850 TestImplOp(add, adc, Dst0, Dst1, Value0, Src0, Src1, Value1, +, Size); \ in TEST_F()
851 TestImplOp(sub, sbb, Dst0, Dst1, Value0, Src0, Src1, Value1, -, Size); \ in TEST_F()
911 #define TestImplReg(Inst, Value0, Src, Value1, Type, Size) \ in TEST_F() argument
918 "(" #Inst ", " #Value0 ", " #Src ", " #Value1 ", " #Type ", " #Size \ in TEST_F()
923 static_cast<Type##Size##_t>((Value1)&Mask##Size); \ in TEST_F()
932 Immediate((Value1)&Mask##Size)); \ in TEST_F()
954 #define TestImplAddr(Inst, Value0, Value1, Type, Size) \ in TEST_F() argument
957 "(" #Inst ", " #Value0 ", Addr, " #Value1 ", " #Type ", " #Size ")"; \ in TEST_F()
959 static constexpr uint32_t V0 = Value1; \ in TEST_F()
963 static_cast<Type##Size##_t>((Value1)&Mask##Size); \ in TEST_F()
989 #define TestImplOp(Inst, Value0, Src, Value1, Type, Size) \ in TEST_F() argument
991 TestImplReg(Inst, Value0, Src, Value1, Type, Size); \ in TEST_F()
992 TestImplAddr(Inst, Value0, Value1, Type, Size); \ in TEST_F()
995 #define TestImplValue(Value0, Src, Value1, Size) \ in TEST_F() argument
997 TestImplOp(mul, Value0, Src, Value1, uint, Size); \ in TEST_F()
998 TestImplOp(imul, Value0, Src, Value1, int, Size); \ in TEST_F()
1034 #define TestImplRegReg(Dst, Value0, Src, Value1, Size) \ in TEST_F() argument
1037 "(" #Dst ", " #Value0 ", " #Src ", " #Value1 ", " #Size ")"; \ in TEST_F()
1041 static_cast<int##Size##_t>((Value1)&Mask##Size); \ in TEST_F()
1047 Immediate((Value1)&Mask##Size)); \ in TEST_F()
1097 #define TestImplRegAddr(Dst, Value0, Value1, Size) \ in TEST_F() argument
1100 "(" #Dst ", " #Value0 ", Addr," #Value1 ", " #Size ")"; \ in TEST_F()
1104 static_cast<int##Size##_t>((Value1)&Mask##Size); \ in TEST_F()
1128 #define TestImplValue(Dst, Value0, Src, Value1, Size) \ in TEST_F() argument
1130 TestImplRegReg(Dst, Value0, Src, Value1, Size); \ in TEST_F()
1131 TestImplRegImm(Dst, Value0, Value1, Size); \ in TEST_F()
1132 TestImplRegAddr(Dst, Value0, Value1, Size); \ in TEST_F()
1179 #define TestImplReg(Inst, Value0, Src, Value1, Type, Size) \ in TEST_F() argument
1189 "(" #Inst ", " #Value0 ", " #Src ", " #Value1 ", " #Type ", " #Size \ in TEST_F()
1197 static_cast<Type##Size##_t>(Value1) & Mask##Size; \ in TEST_F()
1230 #define TestImplAddr(Inst, Value0, Value1, Type, Size) \ in TEST_F() argument
1233 "(" #Inst ", " #Value0 ", Addr, " #Value1 ", " #Type ", " #Size ")"; \ in TEST_F()
1241 static_cast<Type##Size##_t>(Value1) & Mask##Size; \ in TEST_F()
1270 #define TestImplOp(Inst, Value0, Src, Value1, Type, Size) \ in TEST_F() argument
1272 TestImplReg(Inst, Value0, Src, Value1, Type, Size); \ in TEST_F()
1273 TestImplAddr(Inst, Value0, Value1, Type, Size); \ in TEST_F()
1276 #define TestImplValue(Value0, Src, Value1, Size) \ in TEST_F() argument
1278 TestImplOp(div, Value0, Src, Value1, uint, Size); \ in TEST_F()
1279 TestImplOp(idiv, Value0, Src, Value1, int, Size); \ in TEST_F()
1421 #define TestImplRegRegImm(Inst, Dst, Value0, Src, Value1, Count, Op0, Op1, \ in TEST_F() argument
1425 "(" #Inst ", " #Dst ", " #Value0 ", " #Src ", " #Value1 \ in TEST_F()
1429 (static_cast<Type##64_t>(Value1) Op1(Size - Count))); \ in TEST_F()
1434 Immediate((Value1)&Mask##Size)); \ in TEST_F()
1469 #define TestImplRegRegCl(Inst, Dst, Value0, Src, Value1, Count, Op0, Op1, \ in TEST_F() argument
1473 "(" #Inst ", " #Dst ", " #Value0 ", " #Src ", " #Value1 ", " #Count \ in TEST_F()
1477 (static_cast<Type##64_t>(Value1) Op1(Size - Count))); \ in TEST_F()
1482 Immediate((Value1)&Mask##Size)); \ in TEST_F()
1521 #define TestImplAddrRegCl(Inst, Value0, Src, Value1, Count, Op0, Op1, Type, \ in TEST_F() argument
1525 "(" #Inst ", Addr, " #Value0 ", " #Src ", " #Value1 ", " #Count \ in TEST_F()
1529 (static_cast<Type##64_t>(Value1) Op1(Size - Count))); \ in TEST_F()
1533 Immediate((Value1)&Mask##Size)); \ in TEST_F()
1559 #define TestImplThreeOperandOp(Inst, Dst, Value0, Src, Value1, Count, Op0, \ in TEST_F() argument
1568 TestImplRegRegImm(Inst, Dst, Value0, Src, Value1, Count, Op0, Op1, Type, \ in TEST_F()
1570 TestImplRegRegCl(Inst, Dst, Value0, Src, Value1, Count, Op0, Op1, Type, \ in TEST_F()
1572 TestImplAddrRegCl(Inst, Value0, Src, Value1, Count, Op0, Op1, Type, Size); \ in TEST_F()
1583 #define TestImplThreeOperandValue(Dst, Value0, Src, Value1, Count, Size) \ in TEST_F() argument
1585 TestImplThreeOperandOp(shld, Dst, Value0, Src, Value1, Count, <<, >>, \ in TEST_F()
1587 TestImplThreeOperandOp(shrd, Dst, Value0, Src, Value1, Count, >>, <<, \ in TEST_F()
1744 #define TestImpl(Dst, Value0, Src, Value1) \ in TEST_F() argument
1747 "(" #Dst ", " #Value0 ", " #Src ", " #Value1 ")"; \ in TEST_F()
1748 static constexpr uint32_t Expected = ((Value0) & (1u << (Value1))) != 0; \ in TEST_F()
1751 __ mov(IceType_i32, GPRRegister::Encoded_Reg_##Src, Immediate(Value1)); \ in TEST_F()
1798 #define TestImplRegReg(Inst, Dst, Src, Value1, Size) \ in TEST_F() argument
1801 "(" #Inst ", " #Dst ", " #Src ", " #Value1 ", " #Size ")"; \ in TEST_F()
1802 static constexpr uint32_t Expected = BitScanHelper<Value1, Size>::Inst; \ in TEST_F()
1805 Immediate(Value1)); \ in TEST_F()
1814 ASSERT_EQ((Expected == BitScanHelper<Value1, Size>::NoBitSet), \ in TEST_F()
1817 if ((Expected != BitScanHelper<Value1, Size>::NoBitSet)) { \ in TEST_F()
1823 #define TestImplRegAddr(Inst, Dst, Value1, Size) \ in TEST_F() argument
1826 "(" #Inst ", " #Dst ", Addr, " #Value1 ", " #Size ")"; \ in TEST_F()
1827 static constexpr uint32_t Expected = BitScanHelper<Value1, Size>::Inst; \ in TEST_F()
1835 test.setDwordTo(T0, Value1); \ in TEST_F()
1839 ASSERT_EQ((Expected == BitScanHelper<Value1, Size>::NoBitSet), \ in TEST_F()
1842 if (Expected != BitScanHelper<Value1, Size>::NoBitSet) { \ in TEST_F()
1848 #define TestImplSize(Dst, Src, Value1, Size) \ in TEST_F() argument
1850 TestImplRegReg(bsf, Dst, Src, Value1, Size); \ in TEST_F()
1851 TestImplRegAddr(bsf, Dst, Value1, Size); \ in TEST_F()
1852 TestImplRegReg(bsr, Dst, Src, Value1, Size); \ in TEST_F()
1853 TestImplRegAddr(bsf, Dst, Value1, Size); \ in TEST_F()
1856 #define TestImplValue(Dst, Src, Value1) \ in TEST_F() argument
1858 TestImplSize(Dst, Src, Value1, 16); \ in TEST_F()
1859 TestImplSize(Dst, Src, Value1, 32); \ in TEST_F()