MCPcopy Create free account
hub / github.com/KhronosGroup/SPIRV-Tools / TEST

Function TEST

test/hex_float_test.cpp:281–286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

279 1.5000000000000002})));
280
281TEST(HexFloatStreamTest, OperatorLeftShiftPreservesFloatAndFill) {
282 std::stringstream s;
283 s << std::setw(4) << std::oct << std::setfill('x') << 8 << " "
284 << FloatProxy<float>(uint32_t(0xFF800100)) << " " << std::setw(4) << 9;
285 EXPECT_THAT(s.str(), Eq(std::string("xx10 -0x1.0002p+128 xx11")));
286}
287
288TEST(HexDoubleStreamTest, OperatorLeftShiftPreservesFloatAndFill) {
289 std::stringstream s;

Callers

nothing calls this directly

Calls 15

unbiased_exponentFunction · 0.85
unbiased_half_exponentFunction · 0.85
unbiased_E4M3_exponentFunction · 0.85
unbiased_E5M2_exponentFunction · 0.85
bits_setFunction · 0.85
normalized_significandFunction · 0.85
set_from_signFunction · 0.85
float_fractionsFunction · 0.85
castToMethod · 0.80

Tested by

no test coverage detected