Home
last modified time | relevance | path

Searched refs:reverseBits (Results 1 – 25 of 27) sorted by relevance

12

/external/llvm/unittests/ADT/
DAPIntTest.cpp1072 TEST(APIntTest, reverseBits) { in TEST() argument
1073 EXPECT_EQ(1, APInt(1, 1).reverseBits()); in TEST()
1074 EXPECT_EQ(0, APInt(1, 0).reverseBits()); in TEST()
1076 EXPECT_EQ(3, APInt(2, 3).reverseBits()); in TEST()
1077 EXPECT_EQ(3, APInt(2, 3).reverseBits()); in TEST()
1079 EXPECT_EQ(0xb, APInt(4, 0xd).reverseBits()); in TEST()
1080 EXPECT_EQ(0xd, APInt(4, 0xb).reverseBits()); in TEST()
1081 EXPECT_EQ(0xf, APInt(4, 0xf).reverseBits()); in TEST()
1083 EXPECT_EQ(0x30, APInt(7, 0x6).reverseBits()); in TEST()
1084 EXPECT_EQ(0x5a, APInt(7, 0x2d).reverseBits()); in TEST()
[all …]
/external/llvm/unittests/Support/
DMathExtrasTest.cpp138 TEST(MathExtras, reverseBits) { in TEST() argument
143 EXPECT_EQ(0x54ULL, reverseBits(NZ8)); in TEST()
144 EXPECT_EQ(0x5400ULL, reverseBits(NZ16)); in TEST()
145 EXPECT_EQ(0x54000000ULL, reverseBits(NZ32)); in TEST()
146 EXPECT_EQ(0x5400000000000000ULL, reverseBits(NZ64)); in TEST()
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Support/
DMathExtrasTest.cpp168 TEST(MathExtras, reverseBits) { in TEST() argument
173 EXPECT_EQ(0x54ULL, reverseBits(NZ8)); in TEST()
174 EXPECT_EQ(0x5400ULL, reverseBits(NZ16)); in TEST()
175 EXPECT_EQ(0x54000000ULL, reverseBits(NZ32)); in TEST()
176 EXPECT_EQ(0x5400000000000000ULL, reverseBits(NZ64)); in TEST()
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/ADT/
DAPIntTest.cpp1726 TEST(APIntTest, reverseBits) { in TEST() argument
1727 EXPECT_EQ(1, APInt(1, 1).reverseBits()); in TEST()
1728 EXPECT_EQ(0, APInt(1, 0).reverseBits()); in TEST()
1730 EXPECT_EQ(3, APInt(2, 3).reverseBits()); in TEST()
1731 EXPECT_EQ(3, APInt(2, 3).reverseBits()); in TEST()
1733 EXPECT_EQ(0xb, APInt(4, 0xd).reverseBits()); in TEST()
1734 EXPECT_EQ(0xd, APInt(4, 0xb).reverseBits()); in TEST()
1735 EXPECT_EQ(0xf, APInt(4, 0xf).reverseBits()); in TEST()
1737 EXPECT_EQ(0x30, APInt(7, 0x6).reverseBits()); in TEST()
1738 EXPECT_EQ(0x5a, APInt(7, 0x2d).reverseBits()); in TEST()
[all …]
/external/swiftshader/third_party/LLVM/utils/TableGen/
DCodeEmitterGen.h37 void reverseBits(std::vector<Record*> &Insts);
DCodeEmitterGen.cpp33 void CodeEmitterGen::reverseBits(std::vector<Record*> &Insts) { in reverseBits() function in CodeEmitterGen
215 if (Target.isLittleEndianEncoding()) reverseBits(Insts); in run()
/external/llvm/lib/Target/PowerPC/MCTargetDesc/
DPPCMCCodeEmitter.cpp278 return reverseBits(Imm | RegBits) >> 22; in getSPE8DisEncoding()
294 return reverseBits(Imm | RegBits) >> 22; in getSPE4DisEncoding()
310 return reverseBits(Imm | RegBits) >> 22; in getSPE2DisEncoding()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/PowerPC/MCTargetDesc/
DPPCMCCodeEmitter.cpp285 return reverseBits(Imm | RegBits) >> 22; in getSPE8DisEncoding()
300 return reverseBits(Imm | RegBits) >> 22; in getSPE4DisEncoding()
315 return reverseBits(Imm | RegBits) >> 22; in getSPE2DisEncoding()
/external/llvm/lib/Target/AMDGPU/
DSIShrinkInstructions.cpp231 int32_t ReverseImm = reverseBits<int32_t>(static_cast<int32_t>(Imm)); in runOnMachineFunction()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DDemandedBits.cpp123 AB = AOut.reverseBits(); in determineLiveOperandBits()
DConstantFolding.cpp1819 return ConstantInt::get(Ty->getContext(), Op->getValue().reverseBits()); in ConstantFoldScalarCall()
/external/deqp/modules/gles31/functional/
Des31fShaderIntegerFunctionTests.cpp857 static inline deUint32 reverseBits (deUint32 v) in reverseBits() function
893 const deUint32 cmpMask = reverseBits(getLowBitMask(integerLength)); in compare()
899 const deUint32 ref = reverseBits(value); in compare()
/external/llvm/lib/Support/
DAPInt.cpp793 APInt APInt::reverseBits() const { in reverseBits() function in APInt
796 return APInt(BitWidth, llvm::reverseBits<uint64_t>(VAL)); in reverseBits()
798 return APInt(BitWidth, llvm::reverseBits<uint32_t>(VAL)); in reverseBits()
800 return APInt(BitWidth, llvm::reverseBits<uint16_t>(VAL)); in reverseBits()
802 return APInt(BitWidth, llvm::reverseBits<uint8_t>(VAL)); in reverseBits()
/external/swiftshader/third_party/llvm-subzero/lib/Support/
DAPInt.cpp771 APInt APInt::reverseBits() const { in reverseBits() function in APInt
774 return APInt(BitWidth, llvm::reverseBits<uint64_t>(VAL)); in reverseBits()
776 return APInt(BitWidth, llvm::reverseBits<uint32_t>(VAL)); in reverseBits()
778 return APInt(BitWidth, llvm::reverseBits<uint16_t>(VAL)); in reverseBits()
780 return APInt(BitWidth, llvm::reverseBits<uint8_t>(VAL)); in reverseBits()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/
DAPInt.cpp642 APInt APInt::reverseBits() const { in reverseBits() function in APInt
645 return APInt(BitWidth, llvm::reverseBits<uint64_t>(U.VAL)); in reverseBits()
647 return APInt(BitWidth, llvm::reverseBits<uint32_t>(U.VAL)); in reverseBits()
649 return APInt(BitWidth, llvm::reverseBits<uint16_t>(U.VAL)); in reverseBits()
651 return APInt(BitWidth, llvm::reverseBits<uint8_t>(U.VAL)); in reverseBits()
/external/deqp/external/vulkancts/modules/vulkan/shaderexecutor/
DvktShaderIntegerFunctionTests.cpp229 static inline deUint32 reverseBits (deUint32 v) in reverseBits() function
1061 const deUint32 cmpMask = reverseBits(getLowBitMask(integerLength)); in compare()
1067 const deUint32 ref = reverseBits(value); in compare()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/
DSIShrinkInstructions.cpp225 ReverseImm = reverseBits<int32_t>(static_cast<int32_t>(Src.getImm())); in isReverseInlineImm()
/external/llvm/include/llvm/Support/
DMathExtras.h233 T reverseBits(T Val) {
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/
DMathExtras.h233 T reverseBits(T Val) {
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Support/
DMathExtras.h269 T reverseBits(T Val) {
/external/llvm/include/llvm/ADT/
DAPInt.h1461 APInt LLVM_ATTRIBUTE_UNUSED_RESULT reverseBits() const;
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
DAPInt.h1437 APInt reverseBits() const;
/external/deqp/framework/common/
DtcuAstcUtil.cpp72 inline deUint32 reverseBits (deUint32 src, int numBits) in reverseBits() function
283 : reverseBits(m_src.getBits(m_startNdxInSrc - high, m_startNdxInSrc - low), numBitsFromSrc); in getNext()
1722 …: m_dst.setBits(m_startNdxInSrc - high, m_startNdxInSrc - low, reverseBits(actualBits, numBitsToDs… in setNext()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ADT/
DAPInt.h1691 APInt reverseBits() const;
/external/llvm/lib/Analysis/
DConstantFolding.cpp1648 return ConstantInt::get(Ty->getContext(), Op->getValue().reverseBits()); in ConstantFoldScalarCall()

12