to_bits 36 src/Float16.cpp llvm::APInt bitRepr(16, (uint64_t)v.to_bits(), /*isSigned=*/false); to_bits 43 src/Float16.cpp assert(v.to_bits() == toFP16(repr).to_bits() && "Converting to APFloat and back failed"); to_bits 89 src/Float16.cpp return toFP16(convertedValue).to_bits(); to_bits 104 src/Float16.cpp return toFP16(convertedValue).to_bits(); to_bits 129 src/Float16.cpp return toFP16(convertedValue).to_bits(); to_bits 193 src/Float16.h EXPORT uint16_t to_bits() const; to_bits 1323 src/IROperator.h int to_bits = t.bits() * t.lanes(); to_bits 1324 src/IROperator.h user_assert(from_bits == to_bits) to_bits 1328 src/IROperator.h << " which has " << to_bits << " bits\n"; to_bits 21 test/correctness/float16_t_comparison.cpp h_assert(one.to_bits() != onePointTwoFive.to_bits(), "bits should be different"); to_bits 22 test/correctness/float16_t_comparison.cpp h_assert(one.to_bits() == 0x3c00, "bit pattern for 1.0 is wrong"); to_bits 23 test/correctness/float16_t_comparison.cpp h_assert(onePointTwoFive.to_bits() == 0x3d00, "bit pattern for 1.25 is wrong"); to_bits 29 test/correctness/float16_t_constants.cpp h_assert(zeroDefaultConstructor.to_bits() == zeroP.to_bits(), "Mismatch between constructors"); to_bits 30 test/correctness/float16_t_constants.cpp h_assert(zeroPStringConstructorDecimal.to_bits() == zeroP.to_bits(), "Mismatch between constructors"); to_bits 31 test/correctness/float16_t_constants.cpp h_assert(zeroPStringConstructorHex.to_bits() == zeroP.to_bits(), "Mismatch between constructors"); to_bits 32 test/correctness/float16_t_constants.cpp h_assert(zeroPFromFloat.to_bits() == zeroP.to_bits(), "Mistmatch between constructors"); to_bits 33 test/correctness/float16_t_constants.cpp h_assert(zeroPFromDouble.to_bits() == zeroP.to_bits(), "Mistmatch between constructors"); to_bits 34 test/correctness/float16_t_constants.cpp h_assert(zeroPFromInt.to_bits() == zeroP.to_bits(), "make_from_signed_int gave wrong value"); to_bits 38 test/correctness/float16_t_constants.cpp h_assert(zeroP.to_bits() == 0x0000, "+ve zero invalid bits"); to_bits 60 test/correctness/float16_t_constants.cpp h_assert(zeroNStringConstructorDecimal.to_bits() == zeroN.to_bits(), "Mismatch between constructors"); to_bits 61 test/correctness/float16_t_constants.cpp h_assert(zeroNStringConstructorHex.to_bits() == zeroN.to_bits(), "Mismatch between constructors"); to_bits 62 test/correctness/float16_t_constants.cpp h_assert(zeroNFromFloat.to_bits() == zeroN.to_bits(), "Mismatch between constructors"); to_bits 63 test/correctness/float16_t_constants.cpp h_assert(zeroNFromDouble.to_bits() == zeroN.to_bits(), "Mismatch between constructors"); to_bits 67 test/correctness/float16_t_constants.cpp h_assert(zeroN.to_bits() == 0x8000, "-ve zero invalid bits"); to_bits 87 test/correctness/float16_t_constants.cpp h_assert(infinityPFromFloat.to_bits() == infinityP.to_bits(), "Mismatch between constructors"); to_bits 88 test/correctness/float16_t_constants.cpp h_assert(infinityPFromDouble.to_bits() == infinityP.to_bits(), "Mismatch between constructors"); to_bits 92 test/correctness/float16_t_constants.cpp h_assert(infinityP.to_bits() == 0x7c00, "+ve infinity invalid bits"); to_bits 116 test/correctness/float16_t_constants.cpp h_assert(infinityNFromFloat.to_bits() == infinityN.to_bits(), "Mismatch between constructors"); to_bits 117 test/correctness/float16_t_constants.cpp h_assert(infinityNFromDouble.to_bits() == infinityN.to_bits(), "Mismatch between constructors"); to_bits 121 test/correctness/float16_t_constants.cpp h_assert(infinityN.to_bits() == 0xfc00, "-ve infinity invalid bits"); to_bits 145 test/correctness/float16_t_constants.cpp h_assert(nanValueFromFloat.to_bits() == nanValue.to_bits(), "Mismatch between constructors"); to_bits 146 test/correctness/float16_t_constants.cpp h_assert(nanValueFromDouble.to_bits() == nanValue.to_bits(), "Mismatch between constructors"); to_bits 151 test/correctness/float16_t_constants.cpp h_assert((nanValue.to_bits() & 0x7c00) == 0x7c00, "NaN exponent invalid"); to_bits 153 test/correctness/float16_t_constants.cpp h_assert((nanValue.to_bits() & 0x03ff) > 0, "NaN significant invalid"); to_bits 164 test/correctness/float16_t_constants.cpp h_assert(*reinterpret_cast<const uint16_t*>(&nanValue) == nanValue.to_bits(), to_bits 172 test/correctness/float16_t_constants.cpp h_assert(largestNormFromInt.to_bits() == largestNorm.to_bits(), "make_from_signed_int gave wrong value"); to_bits 173 test/correctness/float16_t_constants.cpp h_assert(largestNorm.to_bits() == 0x7bff, "65504 as float_16t has wrong bits"); to_bits 184 test/correctness/float16_t_constants.cpp h_assert(*reinterpret_cast<const uint16_t*>(&largestNorm) == largestNorm.to_bits(), to_bits 192 test/correctness/float16_t_constants.cpp h_assert(largestNormFromInt.to_bits() == largestNorm.to_bits(), "make_from_signed_int gave wrong value"); to_bits 193 test/correctness/float16_t_constants.cpp h_assert(largestNorm.to_bits() == 0xfbff, "65504 as float_16t has wrong bits"); to_bits 204 test/correctness/float16_t_constants.cpp h_assert(*reinterpret_cast<const uint16_t*>(&largestNorm) == largestNorm.to_bits(), to_bits 211 test/correctness/float16_t_constants.cpp h_assert(smallestSubNorm.to_bits() == 0x0001, "smallest number has wrong bits"); to_bits 222 test/correctness/float16_t_constants.cpp h_assert(*reinterpret_cast<const uint16_t*>(&smallestSubNorm) == smallestSubNorm.to_bits(), to_bits 229 test/correctness/float16_t_constants.cpp h_assert(smallestSubNorm.to_bits() == 0x8001, "smallest number has wrong bits"); to_bits 240 test/correctness/float16_t_constants.cpp h_assert(*reinterpret_cast<const uint16_t*>(&smallestSubNorm) == smallestSubNorm.to_bits(), to_bits 250 test/correctness/float16_t_constants.cpp h_assert(noughtPointOneRZ.to_bits() == 0x2e66, "0.1 incorrectly rounded to zero"); to_bits 256 test/correctness/float16_t_constants.cpp h_assert(reconstruct.to_bits() == noughtPointOneRZ.to_bits(), "roundtrip conversion failed"); to_bits 263 test/correctness/float16_t_constants.cpp h_assert(noughtPointOneRNE.to_bits() == noughtPointOneRZ.to_bits(), "incorrect rounding"); to_bits 264 test/correctness/float16_t_constants.cpp h_assert(noughtPointOneRNA.to_bits() == noughtPointOneRZ.to_bits(), "incorrect rounding"); to_bits 265 test/correctness/float16_t_constants.cpp h_assert(noughtPointOneRD.to_bits() == noughtPointOneRZ.to_bits(), "incorrect rounding"); to_bits 274 test/correctness/float16_t_constants.cpp h_assert(noughtPointOneFCast.to_bits() == noughtPointOneRNE.to_bits(), "cast from float failed"); to_bits 275 test/correctness/float16_t_constants.cpp h_assert(noughtPointOneDCast.to_bits() == noughtPointOneRNE.to_bits(), "cast from double failed"); to_bits 276 test/correctness/float16_t_constants.cpp h_assert(noughtPointOneExplicitConstructor.to_bits() == noughtPointOneRNE.to_bits(), "Use of explicit constructor produced bad value"); to_bits 277 test/correctness/float16_t_constants.cpp h_assert(noughtPointOneExplicitConstructorStr.to_bits() == noughtPointOneRNE.to_bits(), "Use of explicit constructor produced bad value"); to_bits 278 test/correctness/float16_t_constants.cpp h_assert(noughtPointOneMakeFromBits.to_bits() == noughtPointOneRNE.to_bits(), "Use of explicit constructor produced bad value"); to_bits 283 test/correctness/float16_t_constants.cpp h_assert(noughtPointOneRU.to_bits() == 0x2e67, "0.1 incorrectly rounded up"); to_bits 291 test/correctness/float16_t_constants.cpp h_assert(fourZeroNineOneRD.to_bits() == 0x6bfd, "4091 incorreclty rounded down"); to_bits 294 test/correctness/float16_t_constants.cpp h_assert(fourZeroNineOneRDFromInt.to_bits() == fourZeroNineOneRD.to_bits(), "make_from_signed_int gave wrong value"); to_bits 298 test/correctness/float16_t_constants.cpp h_assert(reconstruct.to_bits() == fourZeroNineOneRD.to_bits(), "roundtrip conversion failed"); to_bits 302 test/correctness/float16_t_constants.cpp h_assert(fourZeroNineOneRU.to_bits() == 0x6bfe, "4091 incorreclty rounded up"); to_bits 305 test/correctness/float16_t_constants.cpp h_assert(fourZeroNineOneRUFromInt.to_bits() == fourZeroNineOneRU.to_bits(), "make_from_signed_int gave wrong value"); to_bits 309 test/correctness/float16_t_constants.cpp h_assert(fourZeroNineOneRZ.to_bits() == fourZeroNineOneRD.to_bits(), "4091 incorrectly rounded toward zero"); to_bits 310 test/correctness/float16_t_constants.cpp h_assert(fourZeroNineOneRZFromInt.to_bits() == fourZeroNineOneRD.to_bits(), "make_from_signed_int gave wrong value"); to_bits 314 test/correctness/float16_t_constants.cpp h_assert(fourZeroNineOneRNE.to_bits() == fourZeroNineOneRU.to_bits(), "4091 incorrectly rounded towards nearest even"); to_bits 315 test/correctness/float16_t_constants.cpp h_assert(fourZeroNineOneRNEFromInt.to_bits() == fourZeroNineOneRU.to_bits(), "make_from_signed_int gave wrong value"); to_bits 319 test/correctness/float16_t_constants.cpp h_assert(fourZeroNineOneRNA.to_bits() == fourZeroNineOneRU.to_bits(), "4091 incorrectly rounded towards nearest, away from zero"); to_bits 320 test/correctness/float16_t_constants.cpp h_assert(fourZeroNineOneRNAFromInt.to_bits() == fourZeroNineOneRU.to_bits(), "make_from_signed_int gave wrong value"); to_bits 327 test/correctness/float16_t_constants.cpp h_assert(fourZeroNineOneRD.to_bits() == 0xebfe, "-4091 incorreclty rounded down"); to_bits 330 test/correctness/float16_t_constants.cpp h_assert(fourZeroNineOneRDFromInt.to_bits() == fourZeroNineOneRD.to_bits(), "make_from_signed_int gave wrong value"); to_bits 334 test/correctness/float16_t_constants.cpp h_assert(reconstruct.to_bits() == fourZeroNineOneRD.to_bits(), "roundtrip conversion failed"); to_bits 338 test/correctness/float16_t_constants.cpp h_assert(fourZeroNineOneRU.to_bits() == 0xebfd, "4091 incorreclty rounded up"); to_bits 341 test/correctness/float16_t_constants.cpp h_assert(fourZeroNineOneRUFromInt.to_bits() == fourZeroNineOneRU.to_bits(), "make_from_signed_int gave wrong value"); to_bits 345 test/correctness/float16_t_constants.cpp h_assert(fourZeroNineOneRZ.to_bits() == fourZeroNineOneRU.to_bits(), "-4091 incorrectly rounded toward zero"); to_bits 346 test/correctness/float16_t_constants.cpp h_assert(fourZeroNineOneRZFromInt.to_bits() == fourZeroNineOneRU.to_bits(), "make_from_signed_int gave wrong value"); to_bits 350 test/correctness/float16_t_constants.cpp h_assert(fourZeroNineOneRNE.to_bits() == fourZeroNineOneRD.to_bits(), "-4091 incorrectly rounded towards nearest even"); to_bits 351 test/correctness/float16_t_constants.cpp h_assert(fourZeroNineOneRNEFromInt.to_bits() == fourZeroNineOneRD.to_bits(), "make_from_signed_int gave wrong value"); to_bits 355 test/correctness/float16_t_constants.cpp h_assert(fourZeroNineOneRNA.to_bits() == fourZeroNineOneRD.to_bits(), "-4091 incorrectly rounded towards nearest, away from zero"); to_bits 356 test/correctness/float16_t_constants.cpp h_assert(fourZeroNineOneRNAFromInt.to_bits() == fourZeroNineOneRD.to_bits(), "make_from_signed_int gave wrong value"); to_bits 365 test/correctness/float16_t_constants.cpp h_assert(noughtPointThreeRD.to_bits() == 0x34cc, "0.3 incorrectly rounded downward"); to_bits 373 test/correctness/float16_t_constants.cpp h_assert(reconstruct.to_bits() == noughtPointThreeRD.to_bits(), "roundtrip conversion failed"); to_bits 376 test/correctness/float16_t_constants.cpp h_assert(noughtPointThreeRU.to_bits() == 0x34cd, "0.3 incorrectly rounded upward"); to_bits 381 test/correctness/float16_t_constants.cpp h_assert(noughtPointThreeRZ.to_bits() == noughtPointThreeRD.to_bits(), "0.3 incorrectly rounded toward zeron"); to_bits 384 test/correctness/float16_t_constants.cpp h_assert(noughtPointThreeRNE.to_bits() == noughtPointThreeRU.to_bits(), "0.3 incorrectly rounded toward nearest even"); to_bits 387 test/correctness/float16_t_constants.cpp h_assert(noughtPointThreeRNA.to_bits() == noughtPointThreeRU.to_bits(), "0.3 incorrectly rounded toward nearest, away from zero"); to_bits 40 test/correctness/float16_t_image_type.cpp h_assert(simple(x, y).to_bits() == 0x3400, "Bit pattern incorrect"); to_bits 31 test/correctness/float16_t_realize_constant.cpp h_assert(f.to_bits() == 0x3a00, "Bit pattern incorrect"); to_bits 33 test/warning/float16_t_underflow.cpp h_assert(warning.to_bits() == 0x0001, "bits incorrect");