Lines Matching refs:asInt
532 LLAssert(llong((int32_t)0).asInt() == (int32_t)0);
533 LLAssert(llong((int32_t)1).asInt() == (int32_t)1);
534 LLAssert(llong((int32_t)-1).asInt() == (int32_t)-1);
535 LLAssert(llong((int32_t)0x7fffffff).asInt() == (int32_t)0x7fffffff);
536 LLAssert(llong((int32_t)0xffffffff).asInt() == (int32_t)-1);
537 LLAssert(llong((int32_t)0x80000000).asInt() == (int32_t)0x80000000);
540 LLAssert(llong((int16_t)0).asInt() == (int16_t)0);
541 LLAssert(llong((int16_t)1).asInt() == (int16_t)1);
542 LLAssert(llong((int16_t)-1).asInt() == (int16_t)-1);
543 LLAssert(llong((int16_t)0x7fff).asInt() == (int16_t)0x7fff);
544 LLAssert(llong((int16_t)0xffff).asInt() == (int16_t)0xffff);
545 LLAssert(llong((int16_t)0x8000).asInt() == (int16_t)0x8000);
548 LLAssert(llong((int8_t)0).asInt() == (int8_t)0);
549 LLAssert(llong((int8_t)1).asInt() == (int8_t)1);
550 LLAssert(llong((int8_t)-1).asInt() == (int8_t)-1);
551 LLAssert(llong((int8_t)0x7f).asInt() == (int8_t)0x7f);
552 LLAssert(llong((int8_t)0xff).asInt() == (int8_t)0xff);
553 LLAssert(llong((int8_t)0x80).asInt() == (int8_t)0x80);
588 // asInt - test unsigned to signed narrowing conversion
589 LLAssert(llong((uint32_t)-1).asInt() == (int32_t)0x7fffffff);
590 LLAssert(llong(-1, 0).asInt() == (int32_t)0x80000000);