/freebsd/contrib/llvm-project/llvm/lib/Support/ |
H A D | SlowDynamicAPInt.cpp | 128 return Val.sext(Width) == O.Val.sext(Width); in operator ==() 132 return Val.sext(Width) != O.Val.sext(Width); in operator !=() 136 return Val.sext(Width).sgt(O.Val.sext(Width)); in operator >() 140 return Val.sext(Width).slt(O.Val.sext(Width)); in operator <() 144 return Val.sext(Width).sle(O.Val.sext(Width)); in operator <=() 148 return Val.sext(Width).sge(O.Val.sext(Width)); in operator >=() 164 APInt Ret = Op(A.sext(Width), B.sext(Width), Overflow); in runOpWithExpandOnOverflow() 169 Ret = Op(A.sext(Width), B.sext(Width), Overflow); in runOpWithExpandOnOverflow() 199 LHS.Val.sext(Width), RHS.Val.sext(Width), APInt::Rounding::UP)); in ceilDiv() 207 LHS.Val.sext(Width), RHS.Val.sext(Width), APInt::Rounding::DOWN)); in floorDiv() [all …]
|
H A D | APFixedPoint.cpp | 247 ThisVal = ThisVal.sext(Wide); in mul() 248 OtherVal = OtherVal.sext(Wide); in mul() 307 ThisVal = ThisVal.sext(Wide); in div() 308 OtherVal = OtherVal.sext(Wide); in div() 360 ThisVal = ThisVal.sext(Wide); in shl()
|
H A D | KnownBits.cpp | 769 LHS = IsSigned ? LHS.sext(BitWidth + 1) : LHS.zext(BitWidth + 1); in avgCompute() 770 RHS = IsSigned ? RHS.sext(BitWidth + 1) : RHS.zext(BitWidth + 1); in avgCompute() 897 KnownBits WideLHS = LHS.sext(2 * BitWidth); in mulhs() 898 KnownBits WideRHS = RHS.sext(2 * BitWidth); in mulhs()
|
H A D | APInt.cpp | 855 int64_t sext = SignExtend64(getWord(0), BitWidth); in roundToDouble() local 856 return double(sext); in roundToDouble() 954 APInt APInt::sext(unsigned Width) const { in sext() function in APInt 1012 return sext(width); in sextOrTrunc() 2813 A = A.sext(CoeffWidth); in SolveQuadraticEquationWrap() 2814 B = B.sext(CoeffWidth); in SolveQuadraticEquationWrap() 2815 C = C.sext(CoeffWidth); in SolveQuadraticEquationWrap() 3095 APInt C1Ext = C1.sext(FullWidth); in mulhs() 3096 APInt C2Ext = C2.sext(FullWidth); in mulhs()
|
/freebsd/contrib/processor-trace/libipt/src/ |
H A D | pt_last_ip.c | 68 static uint64_t sext(uint64_t val, uint8_t sign) in sext() function 93 last_ip->ip = sext(packet->ip, 48); in pt_last_ip_update_ip()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/ |
H A D | KnownBits.h | 169 KnownBits sext(unsigned BitWidth) const { in sext() function 170 return KnownBits(Zero.sext(BitWidth), One.sext(BitWidth)); in sext() 197 return sext(BitWidth); in sextOrTrunc()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
H A D | X86InstrExtension.td | 49 [(set GR32:$dst, (sext GR8:$src))]>, TB, 57 [(set GR32:$dst, (sext GR16:$src))]>, TB, 141 [(set GR64:$dst, (sext GR8:$src))]>, TB, 149 [(set GR64:$dst, (sext GR16:$src))]>, TB, 157 [(set GR64:$dst, (sext GR32:$src))]>,
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/ |
H A D | Mips64r6InstrInfo.td | 307 def : MipsPat<(i64 (sext (i32 (mul GPR32:$src, GPR32:$src2)))), 310 def : MipsPat<(i64 (sext (i32 (sdiv GPR32:$src, GPR32:$src2)))), 313 def : MipsPat<(i64 (sext (i32 (udiv GPR32:$src, GPR32:$src2)))), 316 def : MipsPat<(i64 (sext (i32 (srem GPR32:$src, GPR32:$src2)))), 319 def : MipsPat<(i64 (sext (i32 (urem GPR32:$src, GPR32:$src2)))),
|
H A D | Mips64InstrInfo.td | 840 def : MipsPat<(i64 (sext GPR32:$src)), (SLL64_32 GPR32:$src)>, ISA_MIPS3, 908 def : MipsPat<(i64 (sext (i32 (add GPR32:$src, immSExt16:$imm16)))), 911 def : MipsPat<(i64 (sext (i32 (add GPR32:$src, GPR32:$src2)))), 914 def : MipsPat<(i64 (sext (i32 (sub GPR32:$src, GPR32:$src2)))), 917 def : MipsPat<(i64 (sext (i32 (mul GPR32:$src, GPR32:$src2)))), 920 def : MipsPat<(i64 (sext (i32 (MipsMFHI ACC64:$src)))), 923 def : MipsPat<(i64 (sext (i32 (MipsMFLO ACC64:$src)))), 926 def : MipsPat<(i64 (sext (i32 (shl GPR32:$src, immZExt5:$imm5)))), 929 def : MipsPat<(i64 (sext (i32 (shl GPR32:$src, GPR32:$src2)))), 932 def : MipsPat<(i64 (sext (i32 (srl GPR32:$src, immZExt5:$imm5)))), [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | ScalarEvolutionDivision.cpp | 116 DenominatorVal = DenominatorVal.sext(NumeratorBW); in visitConstant() 118 NumeratorVal = NumeratorVal.sext(DenominatorBW); in visitConstant()
|
/freebsd/contrib/llvm-project/llvm/lib/IR/ |
H A D | ConstantRange.cpp | 813 SMin = SMin.sext(ResultBitWidth); in castOp() 814 SMax = SMax.sext(ResultBitWidth); in castOp() 853 return ConstantRange(Lower.sext(DstTySize), Upper.zext(DstTySize)); in signExtend() 860 return ConstantRange(Lower.sext(DstTySize), Upper.sext(DstTySize)); in signExtend() 1214 this_min = getSignedMin().sext(getBitWidth() * 2); in multiply() 1215 this_max = getSignedMax().sext(getBitWidth() * 2); in multiply() 1216 Other_min = Other.getSignedMin().sext(getBitWidth() * 2); in multiply() 1217 Other_max = Other.getSignedMax().sext(getBitWidth() * 2); in multiply()
|
/freebsd/contrib/llvm-project/clang/lib/AST/Interp/ |
H A D | IntegralAP.h | 44 Extended = V.sext(BitSize); in truncateCast() 132 return APSInt(V.sext(Bits), !Signed);
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/MCTargetDesc/ |
H A D | AMDGPUMCTargetDesc.cpp | 136 Target = (SignedOffset.sext(64) + Addr + Size).getZExtValue(); in evaluateBranch()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/ |
H A D | WebAssemblyInstrAtomics.td | 161 // We don't have single sext atomic load instructions. So for sext loads, we 180 // 32->64 sext load gets selected as i32.atomic.load, i64.extend_i32_s 391 // 32->64 sext RMW gets selected as i32.atomic.rmw.***, i64.extend_i32_s 525 // 32->64 sext RMW gets selected as i32.atomic.rmw.***, i64.extend_i32_s
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
H A D | HexagonPatterns.td | 284 def asext: PatFrags<(ops node:$Rs), [(sext node:$Rs), (anyext node:$Rs)]>; 498 def: Pat<(i64 (sext I32:$Rs)), (A2_sxtw I32:$Rs)>; 514 def: Pat<(i32 (sext I1:$Pu)), (C2_muxii I1:$Pu, -1, 0)>; 515 def: Pat<(i64 (sext I1:$Pu)), (Combinew (C2_muxii PredRegs:$Pu, -1, 0), 518 def: Pat<(v2i16 (sext V2I1:$Pu)), (S2_vtrunehb (C2_mask V2I1:$Pu))>; 519 def: Pat<(v2i32 (sext V2I1:$Pu)), (C2_mask V2I1:$Pu)>; 520 def: Pat<(v4i8 (sext V4I1:$Pu)), (S2_vtrunehb (C2_mask V4I1:$Pu))>; 521 def: Pat<(v4i16 (sext V4I1:$Pu)), (C2_mask V4I1:$Pu)>; 522 def: Pat<(v8i8 (sext V8I1:$Pu)), (C2_mask V8I1:$Pu)>; 540 def: Pat<(v4i16 (sext V4I8:$Rs)), (S2_vsxtbh V4I8:$Rs)>; [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/M68k/ |
H A D | M68kInstrData.td | 583 // i16 <- sext i8 584 def: Pat<(i16 (sext i8:$src)), 594 // i32 <- sext i8 595 def: Pat<(i32 (sext i8:$src)), (MOVSXd32d8 MxDRD8:$src)>; 601 // i32 <- sext i16 602 def: Pat<(i32 (sext i16:$src)), (MOVSXd32d16 MxDRD16:$src)>;
|
H A D | M68kInstrControl.td | 145 // Currently M68k does not allow 16 bit indirect jumps use sext operands 360 def : Pat<(i16 (sext (i8 (MxSetCC_C MxCONDcs, CCR)))), (SETCS_C16d)>; 361 def : Pat<(i32 (sext (i8 (MxSetCC_C MxCONDcs, CCR)))), (SETCS_C32d)>;
|
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/ |
H A D | README_P9.txt | 53 (set v4i32:$vD, (sext v4i8:$vB)) 61 (set v4i32:$vD, (sext v4i16:$vB)) 69 (set v2i64:$vD, (sext v2i8:$vB)) 77 (set v2i64:$vD, (sext v2i16:$vB)) 85 (set v2i64:$vD, (sext v2i32:$vB))
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
H A D | AArch64InstrGISel.td | 371 def : PatIgnoreCopies<(i32 (sext (i8 (intOp (v8i8 V64:$Rn))))), 379 def : PatIgnoreCopies<(i32 (sext (i8 (intOp (v16i8 V128:$Rn))))), 387 def : PatIgnoreCopies<(i32 (sext (i16 (intOp (v4i16 V64:$Rn))))), 395 def : PatIgnoreCopies<(i32 (sext (i16 (intOp (v8i16 V128:$Rn))))),
|
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/ |
H A D | SystemZPatterns.td | 12 def : Pat<(operator (sext (i32 GR32:$src))), 23 def : Pat<(operator cls:$src1, (sext GR32:$src2)),
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
H A D | FunctionLoweringInfo.cpp | 475 Val = CI->getValue().sext(BitWidth); in ComputePHILiveOutRegInfo() 511 Val = CI->getValue().sext(BitWidth); in ComputePHILiveOutRegInfo()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/ |
H A D | RISCVInstrInfoZc.td | 176 def C_SEXT_B : RVZcArith_r<0b11001 , "c.sext.b">, 178 def C_SEXT_H : RVZcArith_r<0b11011 , "c.sext.h">,
|
H A D | RISCVInstrInfo.td | 893 def : InstAlias<"sext.w $rd, $rs", (ADDIW GPR:$rd, GPR:$rs, 0)>; 1221 def ext : PatFrags<(ops node:$A), [(sext node:$A), (zext node:$A)]>; 1245 def sext_oneuse : unop_oneuse<sext>; 1682 def PseudoSEXT_B : Pseudo<(outs GPR:$rd), (ins GPR:$rs), [], "sext.b", "$rd, $rs">; 1683 def PseudoSEXT_H : Pseudo<(outs GPR:$rd), (ins GPR:$rs), [], "sext.h", "$rd, $rs">; 1684 // rv64's sext.w is defined above, using InstAlias<"sext.w ... 1854 /// sext and zext 1994 def : Pat<(sext GPR:$src), (ADDIW GPR:$src, 0)>; 2023 // Use sext if the sign bit of the input is 0.
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | LowerSwitch.cpp | 463 APInt N = High.sext(BitWidth + 1) - Low.sext(BitWidth + 1) + 1; in ProcessSwitchInst()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | StraightLineStrengthReduce.cpp | 570 A = A.sext(B.getBitWidth()); in unifyBitWidth() 572 B = B.sext(A.getBitWidth()); in unifyBitWidth()
|