Home
last modified time | relevance | path

Searched refs:SignedValue (Results 1 – 13 of 13) sorted by relevance

/external/llvm-project/llvm/lib/Target/AArch64/MCTargetDesc/
DAArch64AsmBackend.cpp160 int64_t SignedValue = static_cast<int64_t>(Value); in adjustFixupValue() local
165 if (SignedValue > 2097151 || SignedValue < -2097152) in adjustFixupValue()
176 if (SignedValue > 2097151 || SignedValue < -2097152) in adjustFixupValue()
233 if (SignedValue > 0xFFFF || SignedValue < -0xFFFF) in adjustFixupValue()
238 if (SignedValue < 0) in adjustFixupValue()
239 SignedValue = ~SignedValue; in adjustFixupValue()
240 Value = static_cast<uint64_t>(SignedValue); in adjustFixupValue()
263 SignedValue = SignedValue >> 16; in adjustFixupValue()
266 SignedValue = SignedValue >> 32; in adjustFixupValue()
269 SignedValue = SignedValue >> 48; in adjustFixupValue()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/MCTargetDesc/
DAArch64AsmBackend.cpp169 int64_t SignedValue = static_cast<int64_t>(Value); in adjustFixupValue() local
174 if (SignedValue > 2097151 || SignedValue < -2097152) in adjustFixupValue()
185 if (SignedValue > 2097151 || SignedValue < -2097152) in adjustFixupValue()
261 SignedValue = SignedValue >> 16; in adjustFixupValue()
264 SignedValue = SignedValue >> 32; in adjustFixupValue()
267 SignedValue = SignedValue >> 48; in adjustFixupValue()
295 if (SignedValue > 0xFFFF || SignedValue < -0xFFFF) in adjustFixupValue()
299 if (SignedValue < 0) in adjustFixupValue()
300 SignedValue = ~SignedValue; in adjustFixupValue()
301 Value = static_cast<uint64_t>(SignedValue); in adjustFixupValue()
[all …]
/external/llvm/lib/Target/AArch64/MCTargetDesc/
DAArch64AsmBackend.cpp142 int64_t SignedValue = static_cast<int64_t>(Value); in adjustFixupValue() local
147 if (Ctx && (SignedValue > 2097151 || SignedValue < -2097152)) in adjustFixupValue()
155 if (SignedValue > 2097151 || SignedValue < -2097152) in adjustFixupValue()
202 if (Ctx && (SignedValue > 32767 || SignedValue < -32768)) in adjustFixupValue()
211 if (Ctx && (SignedValue > 134217727 || SignedValue < -134217728)) in adjustFixupValue()
/external/llvm-project/llvm/unittests/ADT/
DBitFieldsTest.cpp44 using SignedValue = Bitfield::Element<int, 3, 5>; in TEST() typedef
45 Bitfield::set<SignedValue>(Storage, -2); in TEST()
48 EXPECT_EQ(Bitfield::get<SignedValue>(Storage), -2); in TEST()
58 EXPECT_EQ(Bitfield::get<SignedValue>(Storage), 0); in TEST()
64 EXPECT_EQ(Bitfield::get<SignedValue>(Storage), -1); in TEST()
/external/llvm-project/llvm/unittests/FileCheck/
DFileCheckTest.cpp425 Expected<int64_t> SignedValue = ExpressionValue(10).getSignedValue(); in TEST_F() local
426 ASSERT_THAT_EXPECTED(SignedValue, Succeeded()); in TEST_F()
427 EXPECT_EQ(*SignedValue, 10); in TEST_F()
430 SignedValue = ExpressionValue(0).getSignedValue(); in TEST_F()
431 ASSERT_THAT_EXPECTED(SignedValue, Succeeded()); in TEST_F()
432 EXPECT_EQ(*SignedValue, 0); in TEST_F()
435 SignedValue = ExpressionValue(MaxInt64).getSignedValue(); in TEST_F()
436 ASSERT_THAT_EXPECTED(SignedValue, Succeeded()); in TEST_F()
437 EXPECT_EQ(*SignedValue, MaxInt64); in TEST_F()
451 SignedValue = ExpressionValue(-10).getSignedValue(); in TEST_F()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/MCTargetDesc/
DAMDGPUAsmBackend.cpp110 int64_t SignedValue = static_cast<int64_t>(Value); in adjustFixupValue() local
114 int64_t BrImm = (SignedValue - 4) / 4; in adjustFixupValue()
/external/llvm-project/llvm/lib/Target/AMDGPU/MCTargetDesc/
DAMDGPUAsmBackend.cpp112 int64_t SignedValue = static_cast<int64_t>(Value); in adjustFixupValue() local
116 int64_t BrImm = (SignedValue - 4) / 4; in adjustFixupValue()
/external/llvm-project/llvm/lib/FileCheck/
DFileCheck.cpp81 Expected<int64_t> SignedValue = IntegerValue.getSignedValue(); in getMatchingString() local
82 if (!SignedValue) in getMatchingString()
83 return SignedValue.takeError(); in getMatchingString()
84 if (*SignedValue < 0) in getMatchingString()
87 AbsoluteValue = *SignedValue; in getMatchingString()
126 int64_t SignedValue; in valueFromStringRepr() local
128 if (StrVal.getAsInteger(10, SignedValue)) in valueFromStringRepr()
131 return ExpressionValue(SignedValue); in valueFromStringRepr()
147 int64_t SignedValue; in getAsSigned() local
148 memcpy(&SignedValue, &UnsignedValue, sizeof(SignedValue)); in getAsSigned()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/MCTargetDesc/
DX86AsmBackend.cpp563 int64_t SignedValue = static_cast<int64_t>(Value); in applyFixup() local
568 if (Size > 0 && !isIntN(Size * 8, SignedValue)) in applyFixup()
570 Fixup.getLoc(), "value of " + Twine(SignedValue) + in applyFixup()
578 assert((Size == 0 || isIntN(Size * 8 + 1, SignedValue)) && in applyFixup()
/external/llvm-project/llvm/lib/Target/X86/MCTargetDesc/
DX86AsmBackend.cpp777 int64_t SignedValue = static_cast<int64_t>(Value); in applyFixup() local
782 if (Size > 0 && !isIntN(Size * 8, SignedValue)) in applyFixup()
784 Fixup.getLoc(), "value of " + Twine(SignedValue) + in applyFixup()
792 assert((Size == 0 || isIntN(Size * 8 + 1, SignedValue)) && in applyFixup()
/external/llvm/lib/Target/SystemZ/
DSystemZISelLowering.cpp1633 int64_t SignedValue = ConstOp1->getSExtValue(); in adjustSubwordCmp() local
1634 if (uint64_t(SignedValue) + (uint64_t(1) << (NumBits - 1)) > Mask) in adjustSubwordCmp()
4039 int64_t SignedValue = SignExtend64(Value, BitsPerElement); in tryBuildVectorReplicate() local
4040 if (isInt<16>(SignedValue)) { in tryBuildVectorReplicate()
4044 DAG.getConstant(SignedValue, DL, MVT::i32)); in tryBuildVectorReplicate()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/SystemZ/
DSystemZISelLowering.cpp730 int64_t SignedValue = SignExtend64(Value, SplatBitSize); in isVectorConstantLegal() local
731 if (isInt<16>(SignedValue)) { in isVectorConstantLegal()
732 OpVals.push_back(((unsigned) SignedValue)); in isVectorConstantLegal()
2034 int64_t SignedValue = ConstOp1->getSExtValue(); in adjustSubwordCmp() local
2035 if (uint64_t(SignedValue) + (uint64_t(1) << (NumBits - 1)) > Mask) in adjustSubwordCmp()
/external/llvm-project/llvm/lib/Target/SystemZ/
DSystemZISelLowering.cpp743 int64_t SignedValue = SignExtend64(Value, SplatBitSize); in isVectorConstantLegal() local
744 if (isInt<16>(SignedValue)) { in isVectorConstantLegal()
745 OpVals.push_back(((unsigned) SignedValue)); in isVectorConstantLegal()
2082 int64_t SignedValue = ConstOp1->getSExtValue(); in adjustSubwordCmp() local
2083 if (uint64_t(SignedValue) + (uint64_t(1) << (NumBits - 1)) > Mask) in adjustSubwordCmp()