Lines Matching refs:Value1
33 #define TestSetCC(C, Dest, IsTrue, Src0, Value0, Src1, Value1) \ in TEST_F() argument
37 ", " #Value1 ")"; \ in TEST_F()
41 __ mov(IceType_i32, Encoded_GPR_##Src1(), Immediate(Value1)); \ in TEST_F()
362 #define TestImplRegReg(Dst, Value0, Src, Value1, Size) \ in TEST_F() argument
366 "(" #Dst ", " #Value0 ", " #Src ", " #Value1 ", " #Size ")"; \ in TEST_F()
371 __ mov(IceType_i##Size, Encoded_GPR_##Src(), Immediate(Value1)); \ in TEST_F()
382 ASSERT_EQ(((Value0)&Mask##Size) & ((Value1)&Mask##Size) ? ValueIfTrue \ in TEST_F()
416 #define TestImplAddrReg(Value0, Src, Value1, Size) \ in TEST_F() argument
420 "(Addr, " #Value0 ", " #Src ", " #Value1 ", " #Size ")"; \ in TEST_F()
425 __ mov(IceType_i##Size, Encoded_GPR_##Src(), Immediate(Value1)); \ in TEST_F()
437 ASSERT_EQ(((Value0)&Mask##Size) & ((Value1)&Mask##Size) ? ValueIfTrue \ in TEST_F()
444 #define TestImplAddrImm(Value0, Value1, Size) \ in TEST_F() argument
448 "(Addr, " #Value0 ", " #Value1 ", " #Size ")"; \ in TEST_F()
454 Immediate((Value1)&Mask##Size)); \ in TEST_F()
465 ASSERT_EQ(((Value0)&Mask##Size) & ((Value1)&Mask##Size) ? ValueIfTrue \ in TEST_F()
472 #define TestImplValues(Dst, Value0, Src, Value1, Size) \ in TEST_F() argument
474 TestImplRegReg(Dst, Value0, Src, Value1, Size); \ in TEST_F()
475 TestImplRegImm(Dst, Value0, Value1, Size); \ in TEST_F()
476 TestImplAddrReg(Value0, Src, Value1, Size); \ in TEST_F()
477 TestImplAddrImm(Value0, Value1, Size); \ in TEST_F()
525 #define TestImplRegReg(Inst, Dst, Value0, Src, Value1, Type, Size, Op) \ in TEST_F() argument
528 "(" #Inst ", " #Dst ", " #Value0 ", " #Src ", " #Value1 \ in TEST_F()
532 __ mov(IceType_i##Size, Encoded_GPR_##Src(), Immediate(Value1)); \ in TEST_F()
540 Op static_cast<Type##Size##_t>((Value1)&Mask##Size)), \ in TEST_F()
546 #define TestImplRegAddr(Inst, Dst, Value0, Value1, Type, Size, Op) \ in TEST_F() argument
549 "(" #Inst ", " #Dst ", " #Value0 ", Addr, " #Value1 ", " #Type #Size \ in TEST_F()
552 const uint32_t V0 = Value1; \ in TEST_F()
555 __ mov(IceType_i##Size, dwordAddress(T0), Immediate(Value1)); \ in TEST_F()
564 Op static_cast<Type##Size##_t>((Value1)&Mask##Size)), \ in TEST_F()
591 #define TestImplAddrReg(Inst, Value0, Src, Value1, Type, Size, Op) \ in TEST_F() argument
594 "(" #Inst ", Addr, " #Value0 ", " #Src ", " #Value1 ", " #Type #Size \ in TEST_F()
599 __ mov(IceType_i##Size, Encoded_GPR_##Src(), Immediate(Value1)); \ in TEST_F()
608 Op static_cast<Type##Size##_t>((Value1)&Mask##Size)), \ in TEST_F()
636 #define TestImplOp(Inst, Dst, Value0, Src, Value1, Type, Size, Op) \ in TEST_F() argument
638 TestImplRegReg(Inst, Dst, Value0, Src, Value1, Type, Size, Op); \ in TEST_F()
639 TestImplRegAddr(Inst, Dst, Value0, Value1, Type, Size, Op); \ in TEST_F()
640 TestImplRegImm(Inst, Dst, Value0, Value1, Type, Size, Op); \ in TEST_F()
641 TestImplAddrReg(Inst, Value0, Src, Value1, Type, Size, Op); \ in TEST_F()
642 TestImplAddrImm(Inst, Value0, Value1, Type, Size, Op); \ in TEST_F()
645 #define TestImplValues(Dst, Value0, Src, Value1, Size) \ in TEST_F() argument
647 TestImplOp(And, Dst, Value0, Src, Value1, int, Size, &); \ in TEST_F()
648 TestImplOp(And, Dst, Value0, Src, Value1, uint, Size, &); \ in TEST_F()
649 TestImplOp(Or, Dst, Value0, Src, Value1, int, Size, |); \ in TEST_F()
650 TestImplOp(Or, Dst, Value0, Src, Value1, uint, Size, |); \ in TEST_F()
651 TestImplOp(Xor, Dst, Value0, Src, Value1, int, Size, ^); \ in TEST_F()
652 TestImplOp(Xor, Dst, Value0, Src, Value1, uint, Size, ^); \ in TEST_F()
653 TestImplOp(add, Dst, Value0, Src, Value1, int, Size, +); \ in TEST_F()
654 TestImplOp(add, Dst, Value0, Src, Value1, uint, Size, +); \ in TEST_F()
655 TestImplOp(sub, Dst, Value0, Src, Value1, int, Size, -); \ in TEST_F()
656 TestImplOp(sub, Dst, Value0, Src, Value1, uint, Size, -); \ in TEST_F()
709 #define TestImplRegReg(Inst0, Inst1, Dst0, Dst1, Value0, Src0, Src1, Value1, \ in TEST_F() argument
716 ", " #Src1 ", " #Value1 ", " #Op ", " #Size ")"; \ in TEST_F()
722 Immediate(uint64_t(Value1) & Mask##Size)); \ in TEST_F()
724 Immediate((uint64_t(Value1) >> Size) & Mask##Size)); \ in TEST_F()
732 Op(uint64_t(Value1) & ResultMask##Size); \ in TEST_F()
740 #define TestImplRegAddr(Inst0, Inst1, Dst0, Dst1, Value0, Value1, Op, Size) \ in TEST_F() argument
746 ", Addr, " #Value1 ", " #Op ", " #Size ")"; \ in TEST_F()
748 const uint32_t V0 = uint64_t(Value1) & Mask##Size; \ in TEST_F()
750 const uint32_t V1 = (uint64_t(Value1) >> Size) & Mask##Size; \ in TEST_F()
764 Op(uint64_t(Value1) & ResultMask##Size); \ in TEST_F()
800 #define TestImplAddrReg(Inst0, Inst1, Value0, Src0, Src1, Value1, Op, Size) \ in TEST_F() argument
806 ", " #Value1 ", " #Op ", " #Size ")"; \ in TEST_F()
812 Immediate(uint64_t(Value1) & Mask##Size)); \ in TEST_F()
814 Immediate((uint64_t(Value1) >> Size) & Mask##Size)); \ in TEST_F()
824 Op(uint64_t(Value1) & ResultMask##Size); \ in TEST_F()
862 #define TestImplOp(Inst0, Inst1, Dst0, Dst1, Value0, Src0, Src1, Value1, Op, \ in TEST_F() argument
865 TestImplRegReg(Inst0, Inst1, Dst0, Dst1, Value0, Src0, Src1, Value1, Op, \ in TEST_F()
867 TestImplRegAddr(Inst0, Inst1, Dst0, Dst1, Value0, Value1, Op, Size); \ in TEST_F()
868 TestImplRegImm(Inst0, Inst1, Dst0, Dst1, Value0, Value1, Op, Size); \ in TEST_F()
869 TestImplAddrReg(Inst0, Inst1, Value0, Src0, Src1, Value1, Op, Size); \ in TEST_F()
870 TestImplAddrImm(Inst0, Inst1, Value0, Value1, Op, Size); \ in TEST_F()
873 #define TestImplValues(Dst0, Dst1, Value0, Src0, Src1, Value1, Size) \ in TEST_F() argument
875 TestImplOp(add, adc, Dst0, Dst1, Value0, Src0, Src1, Value1, +, Size); \ in TEST_F()
876 TestImplOp(sub, sbb, Dst0, Dst1, Value0, Src0, Src1, Value1, -, Size); \ in TEST_F()
939 #define TestImplReg(Inst, Value0, Src, Value1, Type, Size) \ in TEST_F() argument
945 "(" #Inst ", " #Value0 ", " #Src ", " #Value1 ", " #Type ", " #Size \ in TEST_F()
950 static_cast<Type##Size##_t>((Value1)&Mask##Size); \ in TEST_F()
959 Immediate((Value1)&Mask##Size)); \ in TEST_F()
977 #define TestImplAddr(Inst, Value0, Value1, Type, Size) \ in TEST_F() argument
980 "(" #Inst ", " #Value0 ", Addr, " #Value1 ", " #Type ", " #Size ")"; \ in TEST_F()
982 static constexpr uint32_t V0 = Value1; \ in TEST_F()
986 static_cast<Type##Size##_t>((Value1)&Mask##Size); \ in TEST_F()
1012 #define TestImplOp(Inst, Value0, Src, Value1, Type, Size) \ in TEST_F() argument
1014 TestImplReg(Inst, Value0, Src, Value1, Type, Size); \ in TEST_F()
1015 TestImplAddr(Inst, Value0, Value1, Type, Size); \ in TEST_F()
1018 #define TestImplValue(Value0, Src, Value1, Size) \ in TEST_F() argument
1020 TestImplOp(mul, Value0, Src, Value1, uint, Size); \ in TEST_F()
1021 TestImplOp(imul, Value0, Src, Value1, int, Size); \ in TEST_F()
1065 #define TestImplRegReg(Dst, Value0, Src, Value1, Size) \ in TEST_F() argument
1068 "(" #Dst ", " #Value0 ", " #Src ", " #Value1 ", " #Size ")"; \ in TEST_F()
1072 static_cast<int##Size##_t>((Value1)&Mask##Size); \ in TEST_F()
1078 Immediate((Value1)&Mask##Size)); \ in TEST_F()
1123 #define TestImplRegAddr(Dst, Value0, Value1, Size) \ in TEST_F() argument
1126 "(" #Dst ", " #Value0 ", Addr," #Value1 ", " #Size ")"; \ in TEST_F()
1130 static_cast<int##Size##_t>((Value1)&Mask##Size); \ in TEST_F()
1153 #define TestImplValue(Dst, Value0, Src, Value1, Size) \ in TEST_F() argument
1155 TestImplRegReg(Dst, Value0, Src, Value1, Size); \ in TEST_F()
1156 TestImplRegImm(Dst, Value0, Value1, Size); \ in TEST_F()
1157 TestImplRegAddr(Dst, Value0, Value1, Size); \ in TEST_F()
1212 #define TestImplReg(Inst, Value0, Src, Value1, Type, Size) \ in TEST_F() argument
1220 "(" #Inst ", " #Value0 ", " #Src ", " #Value1 ", " #Type ", " #Size \ in TEST_F()
1228 static_cast<Type##Size##_t>(Value1) & Mask##Size; \ in TEST_F()
1260 #define TestImplAddr(Inst, Value0, Value1, Type, Size) \ in TEST_F() argument
1263 "(" #Inst ", " #Value0 ", Addr, " #Value1 ", " #Type ", " #Size ")"; \ in TEST_F()
1271 static_cast<Type##Size##_t>(Value1) & Mask##Size; \ in TEST_F()
1300 #define TestImplOp(Inst, Value0, Src, Value1, Type, Size) \ in TEST_F() argument
1302 TestImplReg(Inst, Value0, Src, Value1, Type, Size); \ in TEST_F()
1303 TestImplAddr(Inst, Value0, Value1, Type, Size); \ in TEST_F()
1306 #define TestImplValue(Value0, Src, Value1, Size) \ in TEST_F() argument
1308 TestImplOp(div, Value0, Src, Value1, uint, Size); \ in TEST_F()
1309 TestImplOp(idiv, Value0, Src, Value1, int, Size); \ in TEST_F()
1410 #define TestImplRegRegImm(Inst, Dst, Value0, Src, Value1, Count, Op0, Op1, \ in TEST_F() argument
1414 "(" #Inst ", " #Dst ", " #Value0 ", " #Src ", " #Value1 \ in TEST_F()
1418 (static_cast<Type##64_t>(Value1) Op1(Size - Count))); \ in TEST_F()
1423 Immediate((Value1)&Mask##Size)); \ in TEST_F()
1456 #define TestImplRegRegCl(Inst, Dst, Value0, Src, Value1, Count, Op0, Op1, \ in TEST_F() argument
1460 "(" #Inst ", " #Dst ", " #Value0 ", " #Src ", " #Value1 ", " #Count \ in TEST_F()
1464 (static_cast<Type##64_t>(Value1) Op1(Size - Count))); \ in TEST_F()
1469 Immediate((Value1)&Mask##Size)); \ in TEST_F()
1505 #define TestImplAddrRegCl(Inst, Value0, Src, Value1, Count, Op0, Op1, Type, \ in TEST_F() argument
1509 "(" #Inst ", Addr, " #Value0 ", " #Src ", " #Value1 ", " #Count \ in TEST_F()
1513 (static_cast<Type##64_t>(Value1) Op1(Size - Count))); \ in TEST_F()
1517 Immediate((Value1)&Mask##Size)); \ in TEST_F()
1540 #define TestImplThreeOperandOp(Inst, Dst, Value0, Src, Value1, Count, Op0, \ in TEST_F() argument
1547 TestImplRegRegImm(Inst, Dst, Value0, Src, Value1, Count, Op0, Op1, Type, \ in TEST_F()
1549 TestImplRegRegCl(Inst, Dst, Value0, Src, Value1, Count, Op0, Op1, Type, \ in TEST_F()
1551 TestImplAddrRegCl(Inst, Value0, Src, Value1, Count, Op0, Op1, Type, Size); \ in TEST_F()
1562 #define TestImplThreeOperandValue(Dst, Value0, Src, Value1, Count, Size) \ in TEST_F() argument
1564 TestImplThreeOperandOp(shld, Dst, Value0, Src, Value1, Count, <<, >>, \ in TEST_F()
1566 TestImplThreeOperandOp(shrd, Dst, Value0, Src, Value1, Count, >>, <<, \ in TEST_F()
1752 #define TestImpl(Dst, Value0, Src, Value1) \ in TEST_F() argument
1755 "(" #Dst ", " #Value0 ", " #Src ", " #Value1 ")"; \ in TEST_F()
1756 static constexpr uint32_t Expected = ((Value0) & (1u << (Value1))) != 0; \ in TEST_F()
1759 __ mov(IceType_i32, Encoded_GPR_##Src(), Immediate(Value1)); \ in TEST_F()
1814 #define TestImplRegReg(Inst, Dst, Src, Value1, Size) \ in TEST_F() argument
1817 "(" #Inst ", " #Dst ", " #Src ", " #Value1 ", " #Size ")"; \ in TEST_F()
1818 static constexpr uint32_t Expected = BitScanHelper<Value1, Size>::Inst; \ in TEST_F()
1820 __ mov(IceType_i##Size, Encoded_GPR_##Src(), Immediate(Value1)); \ in TEST_F()
1828 ASSERT_EQ((Expected == BitScanHelper<Value1, Size>::NoBitSet), \ in TEST_F()
1831 if ((Expected != BitScanHelper<Value1, Size>::NoBitSet)) { \ in TEST_F()
1837 #define TestImplRegAddr(Inst, Dst, Value1, Size) \ in TEST_F() argument
1840 "(" #Inst ", " #Dst ", Addr, " #Value1 ", " #Size ")"; \ in TEST_F()
1841 static constexpr uint32_t Expected = BitScanHelper<Value1, Size>::Inst; \ in TEST_F()
1848 test.setDwordTo(T0, Value1); \ in TEST_F()
1852 ASSERT_EQ((Expected == BitScanHelper<Value1, Size>::NoBitSet), \ in TEST_F()
1855 if (Expected != BitScanHelper<Value1, Size>::NoBitSet) { \ in TEST_F()
1861 #define TestImplSize(Dst, Src, Value1, Size) \ in TEST_F() argument
1863 TestImplRegReg(bsf, Dst, Src, Value1, Size); \ in TEST_F()
1864 TestImplRegAddr(bsf, Dst, Value1, Size); \ in TEST_F()
1865 TestImplRegReg(bsr, Dst, Src, Value1, Size); \ in TEST_F()
1866 TestImplRegAddr(bsf, Dst, Value1, Size); \ in TEST_F()
1869 #define TestImplValue(Dst, Src, Value1) \ in TEST_F() argument
1871 TestImplSize(Dst, Src, Value1, 16); \ in TEST_F()
1872 TestImplSize(Dst, Src, Value1, 32); \ in TEST_F()