Home | History | Annotate | Download | only in test

Lines Matching refs:fbits

12133 // value. All possible values of 'fbits' are tested. The expected value is
12183 // Test all possible values of fbits.
12184 for (int fbits = 1; fbits <= 32; fbits++) {
12185 __ Scvtf(d0, x10, fbits);
12186 __ Ucvtf(d1, x10, fbits);
12187 __ Scvtf(d2, w11, fbits);
12188 __ Ucvtf(d3, w11, fbits);
12189 __ Str(d0, MemOperand(x0, fbits * kDRegSizeInBytes));
12190 __ Str(d1, MemOperand(x1, fbits * kDRegSizeInBytes));
12191 __ Str(d2, MemOperand(x2, fbits * kDRegSizeInBytes));
12192 __ Str(d3, MemOperand(x3, fbits * kDRegSizeInBytes));
12195 // Conversions from W registers can only handle fbits values <= 32, so just
12196 // test conversions from X registers for 32 < fbits <= 64.
12197 for (int fbits = 33; fbits <= 64; fbits++) {
12198 __ Scvtf(d0, x10, fbits);
12199 __ Ucvtf(d1, x10, fbits);
12200 __ Str(d0, MemOperand(x0, fbits * kDRegSizeInBytes));
12201 __ Str(d1, MemOperand(x1, fbits * kDRegSizeInBytes));
12211 for (int fbits = 0; fbits <= 32; fbits++) {
12212 double expected_scvtf = expected_scvtf_base / std::pow(2, fbits);
12213 double expected_ucvtf = expected_ucvtf_base / std::pow(2, fbits);
12214 ASSERT_EQUAL_FP64(expected_scvtf, results_scvtf_x[fbits]);
12215 ASSERT_EQUAL_FP64(expected_ucvtf, results_ucvtf_x[fbits]);
12216 if (cvtf_s32) ASSERT_EQUAL_FP64(expected_scvtf, results_scvtf_w[fbits]);
12217 if (cvtf_u32) ASSERT_EQUAL_FP64(expected_ucvtf, results_ucvtf_w[fbits]);
12219 for (int fbits = 33; fbits <= 64; fbits++) {
12220 double expected_scvtf = expected_scvtf_base / std::pow(2, fbits);
12221 double expected_ucvtf = expected_ucvtf_base / std::pow(2, fbits);
12222 ASSERT_EQUAL_FP64(expected_scvtf, results_scvtf_x[fbits]);
12223 ASSERT_EQUAL_FP64(expected_ucvtf, results_ucvtf_x[fbits]);
12337 // Test all possible values of fbits.
12338 for (int fbits = 1; fbits <= 32; fbits++) {
12339 __ Scvtf(s0, x10, fbits);
12340 __ Ucvtf(s1, x10, fbits);
12341 __ Scvtf(s2, w11, fbits);
12342 __ Ucvtf(s3, w11, fbits);
12343 __ Str(s0, MemOperand(x0, fbits * kSRegSizeInBytes));
12344 __ Str(s1, MemOperand(x1, fbits * kSRegSizeInBytes));
12345 __ Str(s2, MemOperand(x2, fbits * kSRegSizeInBytes));
12346 __ Str(s3, MemOperand(x3, fbits * kSRegSizeInBytes));
12349 // Conversions from W registers can only handle fbits values <= 32, so just
12350 // test conversions from X registers for 32 < fbits <= 64.
12351 for (int fbits = 33; fbits <= 64; fbits++) {
12352 __ Scvtf(s0, x10, fbits);
12353 __ Ucvtf(s1, x10, fbits);
12354 __ Str(s0, MemOperand(x0, fbits * kSRegSizeInBytes));
12355 __ Str(s1, MemOperand(x1, fbits * kSRegSizeInBytes));
12365 for (int fbits = 0; fbits <= 32; fbits++) {
12366 float expected_scvtf = expected_scvtf_base / std::pow(2.0f, fbits);
12367 float expected_ucvtf = expected_ucvtf_base / std::pow(2.0f, fbits);
12368 ASSERT_EQUAL_FP32(expected_scvtf, results_scvtf_x[fbits]);
12369 ASSERT_EQUAL_FP32(expected_ucvtf, results_ucvtf_x[fbits]);
12370 if (cvtf_s32) ASSERT_EQUAL_FP32(expected_scvtf, results_scvtf_w[fbits]);
12371 if (cvtf_u32) ASSERT_EQUAL_FP32(expected_ucvtf, results_ucvtf_w[fbits]);
12373 for (int fbits = 33; fbits <= 64; fbits++) {
12374 float expected_scvtf = expected_scvtf_base / std::pow(2.0f, fbits);
12375 float expected_ucvtf = expected_ucvtf_base / std::pow(2.0f, fbits);
12376 ASSERT_EQUAL_FP32(expected_scvtf, results_scvtf_x[fbits]);
12377 ASSERT_EQUAL_FP32(expected_ucvtf, results_ucvtf_x[fbits]);