Home | History | Annotate | Download | only in test

Lines Matching refs:expected

53 bool Equal32(uint32_t expected, const RegisterDump*, uint32_t result) {
54 if (result != expected) {
55 printf("Expected 0x%08" PRIx32 "\t Found 0x%08" PRIx32 "\n",
56 expected, result);
59 return expected == result;
63 bool Equal64(uint64_t expected, const RegisterDump*, uint64_t result) {
64 if (result != expected) {
65 printf("Expected 0x%016" PRIx64 "\t Found 0x%016" PRIx64 "\n",
66 expected, result);
69 return expected == result;
73 bool Equal128(vec128_t expected, const RegisterDump*, vec128_t result) {
74 if ((result.h != expected.h) || (result.l != expected.l)) {
75 printf("Expected 0x%016" PRIx64 "%016" PRIx64 "\t "
77 expected.h, expected.l, result.h, result.l);
80 return ((expected.h == result.h) && (expected.l == result.l));
84 bool EqualFP32(float expected, const RegisterDump*, float result) {
85 if (float_to_rawbits(expected) == float_to_rawbits(result)) {
88 if (std::isnan(expected) || (expected == 0.0)) {
89 printf("Expected 0x%08" PRIx32 "\t Found 0x%08" PRIx32 "\n",
90 float_to_rawbits(expected), float_to_rawbits(result));
92 printf("Expected %.9f (0x%08" PRIx32 ")\t "
94 expected, float_to_rawbits(expected),
102 bool EqualFP64(double expected, const RegisterDump*, double result) {
103 if (double_to_rawbits(expected) == double_to_rawbits(result)) {
107 if (std::isnan(expected) || (expected == 0.0)) {
108 printf("Expected 0x%016" PRIx64 "\t Found 0x%016" PRIx64 "\n",
109 double_to_rawbits(expected), double_to_rawbits(result));
111 printf("Expected %.17f (0x%016" PRIx64 ")\t "
113 expected, double_to_rawbits(expected),
120 bool Equal32(uint32_t expected, const RegisterDump* core, const Register& reg) {
126 printf("Expected 0x%08" PRIx32 "\t Found 0x%016" PRIx64 "\n",
127 expected, result_x);
131 return Equal32(expected, core, result_w);
135 bool Equal64(uint64_t expected, const RegisterDump* core, const Register& reg) {
138 return Equal64(expected, core, result);
147 vec128_t expected = {expected_l, expected_h};
149 return Equal128(expected, core, result);
153 bool EqualFP32(float expected,
161 printf("Expected 0x%08" PRIx32 " (%f)\t Found 0x%016" PRIx64 "\n",
162 float_to_rawbits(expected), expected, result_64);
166 return EqualFP32(expected, core, core->sreg(fpreg.code()));
170 bool EqualFP64(double expected,
174 return EqualFP64(expected, core, core->dreg(fpreg.code()));
182 int64_t expected = core->xreg(reg0.code());
184 return Equal64(expected, core, result);
208 bool EqualNzcv(uint32_t expected, uint32_t result) {
209 VIXL_ASSERT((expected & ~NZCVFlag) == 0);
211 if (result != expected) {
212 printf("Expected: %c%c%c%c\t Found: %c%c%c%c\n",
213 FlagN(expected), FlagZ(expected), FlagC(expected), FlagV(expected),
225 printf("x%d\t Expected 0x%016" PRIx64 "\t Found 0x%016" PRIx64 "\n",
235 printf("d%d\t Expected 0x%016" PRIx64 "\t Found 0x%016" PRIx64 "\n",