Lines Matching refs:Src
99 #define TestMemReg(Src, Size) \ in TEST_F() argument
101 static constexpr char TestString[] = "(" #Src ", " #Size ")"; \ in TEST_F()
106 __ mov(IceType_i32, Encoded_GPR_##Src(), Immediate(Value)); \ in TEST_F()
107 __ mov(IceType_i##Size, dwordAddress(T0), Encoded_GPR_##Src()); \ in TEST_F()
118 #define TestImpl(Src) \ in TEST_F() argument
120 TestMemReg(Src, 8); \ in TEST_F()
121 TestMemReg(Src, 16); \ in TEST_F()
122 TestMemReg(Src, 32); \ in TEST_F()
123 TestMemReg(Src, 64); \ in TEST_F()
156 #define TestRegReg(Dst, Src, Suffix, Size) \ in TEST_F() argument
159 "(" #Dst ", " #Src ", " #Suffix ", " #Size ")"; \ in TEST_F()
165 __ mov(IceType_i64, Encoded_GPR_##Src(), dwordAddress(T0)); \ in TEST_F()
167 __ mov(IceType_i##Size, Encoded_GPR_##Dst(), Encoded_GPR_##Src()); \ in TEST_F()
179 #define TestImpl(Dst, Src) \ in TEST_F() argument
181 TestRegReg(Dst, Src, l, 8); \ in TEST_F()
182 TestRegReg(Dst, Src, w, 16); \ in TEST_F()
183 TestRegReg(Dst, Src, d, 32); \ in TEST_F()
184 TestRegReg(Dst, Src, q, 64); \ in TEST_F()
296 #define TestImplRegReg(Dst, Src, Suffix, Size) \ in TEST_F() argument
302 __ mov(IceType_i##Size, Encoded_GPR_##Src##Suffix(), Immediate(Value)); \ in TEST_F()
304 Encoded_GPR_##Src##Suffix()); \ in TEST_F()
308 ASSERT_EQ(Value, test.Dst##q()) << "(" #Dst ", " #Src ", " #Size ")"; \ in TEST_F()
326 #define TestImpl(Dst, Src) \ in TEST_F() argument
328 TestImplRegReg(Dst, Src, l, 8); \ in TEST_F()
330 TestImplRegReg(Dst, Src, w, 16); \ in TEST_F()
359 #define TestImplRegReg(Dst, Src, Suffix, Size) \ in TEST_F() argument
365 __ mov(IceType_i##Size, Encoded_GPR_##Src##Suffix(), Immediate(Value)); \ in TEST_F()
367 Encoded_GPR_##Src##Suffix()); \ in TEST_F()
372 << "(" #Dst ", " #Src ", " #Size ")"; \ in TEST_F()
391 #define TestImpl(Dst, Src) \ in TEST_F() argument
393 TestImplRegReg(Dst, Src, l, 8); \ in TEST_F()
395 TestImplRegReg(Dst, Src, w, 16); \ in TEST_F()
397 TestImplRegReg(Dst, Src, w, 32); \ in TEST_F()
640 #define TestMovssXmmXmmFloatLength(FloatLength, Src, Dst, Value) \ in TEST_F() argument
647 "(" #FloatLength ", " #Src ", " #Dst ")"; \ in TEST_F()
656 __ movss(IceType_f##FloatLength, Encoded_Xmm_##Src(), dwordAddress(T0)); \ in TEST_F()
659 Encoded_Xmm_##Src()); \ in TEST_F()
706 #define TestMovdXmmReg32(Src, Dst, Value) \ in TEST_F() argument
709 static constexpr char TestString[] = "(" #Src ", " #Dst ")"; \ in TEST_F()
713 __ mov(IceType_i32, Encoded_GPR_##Src(), Immediate(Value)); \ in TEST_F()
715 __ movd(IceType_i32, Encoded_Xmm_##Dst(), Encoded_GPR_##Src()); \ in TEST_F()
727 #define TestMovdXmmReg64(Src, Dst, Value) \ in TEST_F() argument
730 static constexpr char TestString[] = "(" #Src ", " #Dst ")"; \ in TEST_F()
735 __ movabs(Encoded_GPR_##Src(), Expected); \ in TEST_F()
737 __ movd(IceType_i64, Encoded_Xmm_##Dst(), Encoded_GPR_##Src()); \ in TEST_F()
749 #define TestMovdXmmReg(Src, Dst, Value) \ in TEST_F() argument
751 TestMovdXmmReg32(Src, Dst, Value); \ in TEST_F()
752 TestMovdXmmReg64(Src, Dst, Value); \ in TEST_F()
855 #define TestMovdRegXmm32(Src, Dst, Value) \ in TEST_F() argument
858 static constexpr char TestString[] = "(" #Src ", " #Dst ")"; \ in TEST_F()
862 __ movss(IceType_f64, Encoded_Xmm_##Src(), dwordAddress(T0)); \ in TEST_F()
863 __ movd(IceType_i32, Encoded_GPR_##Dst(), Encoded_Xmm_##Src()); \ in TEST_F()
875 #define TestMovdRegXmm64(Src, Dst, Value) \ in TEST_F() argument
878 static constexpr char TestString[] = "(" #Src ", " #Dst ")"; \ in TEST_F()
882 __ movss(IceType_f64, Encoded_Xmm_##Src(), dwordAddress(T0)); \ in TEST_F()
883 __ movd(IceType_i64, Encoded_GPR_##Dst(), Encoded_Xmm_##Src()); \ in TEST_F()
895 #define TestMovdRegXmm(Src, Dst, Value) \ in TEST_F() argument
897 TestMovdRegXmm32(Src, Dst, Value); \ in TEST_F()
898 TestMovdRegXmm64(Src, Dst, Value); \ in TEST_F()
901 #define TestMovdAddrXmm32(Src, Value) \ in TEST_F() argument
904 static constexpr char TestString[] = "(" #Src ", Addr)"; \ in TEST_F()
910 __ movss(IceType_f64, Encoded_Xmm_##Src(), dwordAddress(T0)); \ in TEST_F()
911 __ movd(IceType_i32, dwordAddress(T1), Encoded_Xmm_##Src()); \ in TEST_F()
924 #define TestMovdAddrXmm64(Src, Value) \ in TEST_F() argument
927 static constexpr char TestString[] = "(" #Src ", Addr)"; \ in TEST_F()
933 __ movss(IceType_f64, Encoded_Xmm_##Src(), dwordAddress(T0)); \ in TEST_F()
934 __ movd(IceType_i64, dwordAddress(T1), Encoded_Xmm_##Src()); \ in TEST_F()
947 #define TestMovdAddrXmm(Src, Value) \ in TEST_F() argument
949 TestMovdAddrXmm32(Src, Value); \ in TEST_F()
950 TestMovdAddrXmm64(Src, Value); \ in TEST_F()
953 #define TestMovd(Src) \ in TEST_F() argument
956 TestMovdRegXmm(Src, r1, Value); \ in TEST_F()
957 TestMovdRegXmm(Src, r2, Value); \ in TEST_F()
958 TestMovdRegXmm(Src, r3, Value); \ in TEST_F()
959 TestMovdRegXmm(Src, r4, Value); \ in TEST_F()
960 TestMovdRegXmm(Src, r5, Value); \ in TEST_F()
961 TestMovdRegXmm(Src, r6, Value); \ in TEST_F()
962 TestMovdRegXmm(Src, r7, Value); \ in TEST_F()
963 TestMovdRegXmm(Src, r8, Value); \ in TEST_F()
964 TestMovdRegXmm(Src, r10, Value); \ in TEST_F()
965 TestMovdRegXmm(Src, r11, Value); \ in TEST_F()
966 TestMovdRegXmm(Src, r12, Value); \ in TEST_F()
967 TestMovdRegXmm(Src, r13, Value); \ in TEST_F()
968 TestMovdRegXmm(Src, r14, Value); \ in TEST_F()
969 TestMovdRegXmm(Src, r15, Value); \ in TEST_F()
970 TestMovdAddrXmm(Src, Value); \ in TEST_F()
1091 #define TestMovd(Src, Dst, Value) \ in TEST_F() argument
1093 static constexpr char TestString[] = "(" #Src ", " #Dst ")"; \ in TEST_F()
1099 __ movq(Encoded_Xmm_##Src(), dwordAddress(T0)); \ in TEST_F()
1101 __ movq(Encoded_Xmm_##Dst(), Encoded_Xmm_##Src()); \ in TEST_F()
1175 #define TestMovups(Src) \ in TEST_F() argument
1177 static constexpr char TestString[] = "(" #Src ")"; \ in TEST_F()
1184 __ movups(Encoded_Xmm_##Src(), dwordAddress(T0)); \ in TEST_F()
1185 __ movups(dwordAddress(T1), Encoded_Xmm_##Src()); \ in TEST_F()
1217 #define TestMovups(Dst, Src) \ in TEST_F() argument
1219 static constexpr char TestString[] = "(" #Dst ", " #Src ")"; \ in TEST_F()
1226 __ movups(Encoded_Xmm_##Src(), dwordAddress(T0)); \ in TEST_F()
1228 __ movups(Encoded_Xmm_##Dst(), Encoded_Xmm_##Src()); \ in TEST_F()
1260 #define TestMovaps(Dst, Src) \ in TEST_F() argument
1262 static constexpr char TestString[] = "(" #Dst ", " #Src ")"; \ in TEST_F()
1269 __ movups(Encoded_Xmm_##Src(), dwordAddress(T0)); \ in TEST_F()
1271 __ movaps(Encoded_Xmm_##Dst(), Encoded_Xmm_##Src()); \ in TEST_F()
1303 #define TestImplSingle(Dst, Src, Inst, Expect) \ in TEST_F() argument
1305 static constexpr char TestString[] = "(" #Dst ", " #Src ", " #Inst ")"; \ in TEST_F()
1314 __ movups(Encoded_Xmm_##Src(), dwordAddress(T1)); \ in TEST_F()
1315 __ Inst(Encoded_Xmm_##Dst(), Encoded_Xmm_##Src()); \ in TEST_F()
1326 #define TestImpl(Dst, Src) \ in TEST_F() argument
1328 TestImplSingle(Dst, Src, movhlps, (uint64_t(0x9999999988888888ull), \ in TEST_F()
1330 TestImplSingle(Dst, Src, movlhps, (uint64_t(0xAAAAAAAABBBBBBBBull), \ in TEST_F()
1356 #define TestMovmskGPRXmm(GPR, Src, Value1, Expected, Inst) \ in TEST_F() argument
1359 "(" #GPR ", " #Src ", " #Value1 ", " #Expected ", " #Inst ")"; \ in TEST_F()
1363 __ movups(Encoded_Xmm_##Src(), dwordAddress(T0)); \ in TEST_F()
1364 __ Inst(IceType_v4f32, Encoded_GPR_##GPR(), Encoded_Xmm_##Src()); \ in TEST_F()
1374 #define TestMovmsk(GPR, Src) \ in TEST_F() argument
1376 TestMovmskGPRXmm(GPR, Src, (-1.0, 1.0, -1.0, 1.0), 0x05ul, movmsk); \ in TEST_F()
1401 #define TestPmovsxdqXmmXmm(Dst, Src, Value1) \ in TEST_F() argument
1403 static constexpr char TestString[] = "(" #Dst ", " #Src ", " #Value1 ")"; \ in TEST_F()
1409 __ movups(Encoded_Xmm_##Src(), dwordAddress(T0)); \ in TEST_F()
1411 __ pmovsxdq(Encoded_Xmm_##Dst(), Encoded_Xmm_##Src()); \ in TEST_F()
1423 #define TestPmovsxdq(Dst, Src) \ in TEST_F() argument
1425 TestPmovsxdqXmmXmm(Dst, Src, (uint64_t(0x700000007FFFFFFFull), \ in TEST_F()
1427 TestPmovsxdqXmmXmm(Dst, Src, (uint64_t(0x800000007FFFFFFFull), \ in TEST_F()
1429 TestPmovsxdqXmmXmm(Dst, Src, (uint64_t(0x70000000FFFFFFFFull), \ in TEST_F()
1431 TestPmovsxdqXmmXmm(Dst, Src, (uint64_t(0x80000000FFFFFFFFull), \ in TEST_F()