Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for Neg32 (0.17 sec)

  1. test/fixedbugs/issue27718.go

    	inf := 1.0 / zero
    	negZero := -1 / inf
    	if 1/sub32(negZero) != -inf {
    		panic("negZero-0 != negZero (32 bit)")
    	}
    }
    
    //go:noinline
    func neg32(x float32) float32 {
    	return -x
    }
    
    func testNeg32() {
    	var zero float32
    	inf := 1.0 / zero
    	negZero := -1 / inf
    	if 1/neg32(negZero) != inf {
    		panic("-negZero != posZero (32 bit)")
    	}
    }
    
    func main() {
    	testAdd64()
    	testSub64()
    	testNeg64()
    	testAdd32()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 28 02:29:42 UTC 2019
    - 1.6K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/_gen/RISCV64.rules

    (Lsh32x8  <t> x y) && !shiftIsBounded(v) => (AND (SLL <t> x y) (Neg32 <t> (SLTIU <t> [64] (ZeroExt8to64  y))))
    (Lsh32x16 <t> x y) && !shiftIsBounded(v) => (AND (SLL <t> x y) (Neg32 <t> (SLTIU <t> [64] (ZeroExt16to64 y))))
    (Lsh32x32 <t> x y) && !shiftIsBounded(v) => (AND (SLL <t> x y) (Neg32 <t> (SLTIU <t> [64] (ZeroExt32to64 y))))
    (Lsh32x64 <t> x y) && !shiftIsBounded(v) => (AND (SLL <t> x y) (Neg32 <t> (SLTIU <t> [64] y)))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 14:57:07 UTC 2024
    - 40.3K bytes
    - Viewed (0)
  3. src/runtime/softfloat64.go

    	expbits32  uint = 8
    	bias32          = -1<<(expbits32-1) + 1
    
    	nan32 uint32 = (1<<expbits32-1)<<mantbits32 + 1<<(mantbits32-1) // quiet NaN, 0 payload
    	inf32 uint32 = (1<<expbits32 - 1) << mantbits32
    	neg32 uint32 = 1 << (expbits32 + mantbits32)
    )
    
    func funpack64(f uint64) (sign, mant uint64, exp int, inf, nan bool) {
    	sign = f & (1 << (mantbits64 + expbits64))
    	mant = f & (1<<mantbits64 - 1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 08 17:58:41 UTC 2021
    - 11.5K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/rewriteRISCV64.go

    	v_1 := v.Args[1]
    	v_0 := v.Args[0]
    	b := v.Block
    	typ := &b.Func.Config.Types
    	// match: (Lsh32x16 <t> x y)
    	// cond: !shiftIsBounded(v)
    	// result: (AND (SLL <t> x y) (Neg32 <t> (SLTIU <t> [64] (ZeroExt16to64 y))))
    	for {
    		t := v.Type
    		x := v_0
    		y := v_1
    		if !(!shiftIsBounded(v)) {
    			break
    		}
    		v.reset(OpRISCV64AND)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 14:57:07 UTC 2024
    - 205.1K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/_gen/generic.rules

    (SignExt16to64 (Const16 [c])) => (Const64 [int64(c)])
    (SignExt32to64 (Const32 [c])) => (Const64 [int64(c)])
    
    (Neg8   (Const8   [c])) => (Const8   [-c])
    (Neg16  (Const16  [c])) => (Const16  [-c])
    (Neg32  (Const32  [c])) => (Const32  [-c])
    (Neg64  (Const64  [c])) => (Const64  [-c])
    (Neg32F (Const32F [c])) && c != 0 => (Const32F [-c])
    (Neg64F (Const64F [c])) && c != 0 => (Const64F [-c])
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 22:21:05 UTC 2024
    - 135.3K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/rewritegeneric.go

    		x := v_0.Args[0]
    		v.reset(OpSub32)
    		v.AddArg2(y, x)
    		return true
    	}
    	// match: (Neg32 (Neg32 x))
    	// result: x
    	for {
    		if v_0.Op != OpNeg32 {
    			break
    		}
    		x := v_0.Args[0]
    		v.copyOf(x)
    		return true
    	}
    	// match: (Neg32 <t> (Com32 x))
    	// result: (Add32 (Const32 <t> [1]) x)
    	for {
    		t := v.Type
    		if v_0.Op != OpCom32 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 18:24:47 UTC 2024
    - 812.2K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/_gen/genericOps.go

    	{name: "Not", argLength: 1, typ: "Bool"},                     // !arg0, boolean
    
    	// 1-input ops
    	{name: "Neg8", argLength: 1}, // -arg0
    	{name: "Neg16", argLength: 1},
    	{name: "Neg32", argLength: 1},
    	{name: "Neg64", argLength: 1},
    	{name: "Neg32F", argLength: 1},
    	{name: "Neg64F", argLength: 1},
    
    	{name: "Com8", argLength: 1}, // ^arg0
    	{name: "Com16", argLength: 1},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/rewriteWasm.go

    		v0.AuxInt = int64ToAuxInt(0)
    		v.AddArg2(v0, x)
    		return true
    	}
    }
    func rewriteValueWasm_OpNeg32(v *Value) bool {
    	v_0 := v.Args[0]
    	b := v.Block
    	typ := &b.Func.Config.Types
    	// match: (Neg32 x)
    	// result: (I64Sub (I64Const [0]) x)
    	for {
    		x := v_0
    		v.reset(OpWasmI64Sub)
    		v0 := b.NewValue0(v.Pos, OpWasmI64Const, typ.Int64)
    		v0.AuxInt = int64ToAuxInt(0)
    		v.AddArg2(v0, x)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 03:56:57 UTC 2023
    - 108.6K bytes
    - Viewed (0)
  9. src/debug/macho/file.go

    		case LoadCmdSegment:
    			var seg32 Segment32
    			b := bytes.NewReader(cmddat)
    			if err := binary.Read(b, bo, &seg32); err != nil {
    				return nil, err
    			}
    			s = new(Segment)
    			s.LoadBytes = cmddat
    			s.Cmd = cmd
    			s.Len = siz
    			s.Name = cstring(seg32.Name[0:])
    			s.Addr = uint64(seg32.Addr)
    			s.Memsz = uint64(seg32.Memsz)
    			s.Offset = uint64(seg32.Offset)
    			s.Filesz = uint64(seg32.Filesz)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:33:30 UTC 2023
    - 17.9K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/rewriteARM.go

    		x := v_0
    		v.reset(OpARMRSBconst)
    		v.AuxInt = int32ToAuxInt(0)
    		v.AddArg(x)
    		return true
    	}
    }
    func rewriteValueARM_OpNeg32(v *Value) bool {
    	v_0 := v.Args[0]
    	// match: (Neg32 x)
    	// result: (RSBconst [0] x)
    	for {
    		x := v_0
    		v.reset(OpARMRSBconst)
    		v.AuxInt = int32ToAuxInt(0)
    		v.AddArg(x)
    		return true
    	}
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 20 17:19:36 UTC 2023
    - 486.8K bytes
    - Viewed (0)
Back to top