Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 30 for constBool (0.17 sec)

  1. src/cmd/compile/internal/ssa/_gen/MIPS.rules

    (NeqB ...) => (XOR ...)
    (Not x) => (XORconst [1] x)
    
    // constants
    (Const(32|16|8) [val]) => (MOVWconst [int32(val)])
    (Const(32|64)F ...) => (MOV(F|D)const ...)
    (ConstNil) => (MOVWconst [0])
    (ConstBool [t]) => (MOVWconst [b2i32(t)])
    
    // truncations
    // Because we ignore high parts of registers, truncates are just copies.
    (Trunc16to8 ...)  => (Copy ...)
    (Trunc32to8 ...)  => (Copy ...)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 24 14:43:03 UTC 2023
    - 35.3K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/_gen/MIPS64.rules

    (NeqB ...) => (XOR ...)
    (Not x) => (XORconst [1] x)
    
    // constants
    (Const(64|32|16|8) [val]) => (MOVVconst [int64(val)])
    (Const(32|64)F [val]) => (MOV(F|D)const [float64(val)])
    (ConstNil) => (MOVVconst [0])
    (ConstBool [t]) => (MOVVconst [int64(b2i(t))])
    
    (Slicemask <t> x) => (SRAVconst (NEGV <t> x) [63])
    
    // truncations
    // Because we ignore high parts of registers, truncates are just copies.
    (Trunc16to8 ...) => (Copy ...)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jul 31 03:59:48 UTC 2023
    - 41.9K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/_gen/genericOps.go

    	// arg0=ptr/int arg1=mem, output=int/ptr
    	{name: "Convert", argLength: 2, zeroWidth: true, resultInArg0: true},
    
    	// constants. Constant values are stored in the aux or
    	// auxint fields.
    	{name: "ConstBool", aux: "Bool"},     // auxint is 0 for false and 1 for true
    	{name: "ConstString", aux: "String"}, // value is aux.(string)
    	{name: "ConstNil", typ: "BytePtr"},   // nil pointer
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssagen/ssa.go

    }
    func (s *state) constNil(t *types.Type) *ssa.Value { return s.f.ConstNil(t) }
    func (s *state) constEmptyString(t *types.Type) *ssa.Value {
    	return s.f.ConstEmptyString(t)
    }
    func (s *state) constBool(c bool) *ssa.Value {
    	return s.f.ConstBool(types.Types[types.TBOOL], c)
    }
    func (s *state) constInt8(t *types.Type, c int8) *ssa.Value {
    	return s.f.ConstInt8(t, c)
    }
    func (s *state) constInt16(t *types.Type, c int16) *ssa.Value {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 284.9K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/_gen/PPC64.rules

    (Trunc64to32 x) => (MOVWZreg x)
    
    // Lowering constants
    (Const(64|32|16|8) [val]) => (MOVDconst [int64(val)])
    (Const(32|64)F ...) => (FMOV(S|D)const ...)
    (ConstNil) => (MOVDconst [0])
    (ConstBool [t]) => (MOVDconst [b2i(t)])
    
    // Carrying addition.
    (Select0 (Add64carry x y c)) =>            (Select0 <typ.UInt64> (ADDE x y (Select1 <typ.UInt64> (ADDCconst c [-1]))))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 53.2K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/_gen/S390X.rules

    // Lowering constants
    (Const(64|32|16|8) [val]) => (MOVDconst [int64(val)])
    (Const(32|64)F ...) => (FMOV(S|D)const ...)
    (ConstNil) => (MOVDconst [0])
    (ConstBool [t]) => (MOVDconst [b2i(t)])
    
    // Lowering calls
    (StaticCall ...) => (CALLstatic ...)
    (ClosureCall ...) => (CALLclosure ...)
    (InterCall ...) => (CALLinter ...)
    (TailCall ...) => (CALLtail ...)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 18:09:26 UTC 2023
    - 74.3K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/rewriteAMD64.go

    	v_0 := v.Args[0]
    	// match: (SETAE (TESTQ x x))
    	// result: (ConstBool [true])
    	for {
    		if v_0.Op != OpAMD64TESTQ {
    			break
    		}
    		x := v_0.Args[1]
    		if x != v_0.Args[0] {
    			break
    		}
    		v.reset(OpConstBool)
    		v.AuxInt = boolToAuxInt(true)
    		return true
    	}
    	// match: (SETAE (TESTL x x))
    	// result: (ConstBool [true])
    	for {
    		if v_0.Op != OpAMD64TESTL {
    			break
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 12 19:38:41 UTC 2024
    - 712.7K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/_gen/ARM64.rules

    // constants
    (Const(64|32|16|8) [val]) => (MOVDconst [int64(val)])
    (Const(32|64)F    [val]) => (FMOV(S|D)const [float64(val)])
    (ConstNil) => (MOVDconst [0])
    (ConstBool [t]) => (MOVDconst [b2i(t)])
    
    (Slicemask <t> x) => (SRAconst (NEG <t> x) [63])
    
    // truncations
    // Because we ignore high parts of registers, truncates are just copies.
    (Trunc16to8  ...) => (Copy ...)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 113.1K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/rewriteWasm.go

    	for {
    		c := auxIntToInt8(v.AuxInt)
    		v.reset(OpWasmI64Const)
    		v.AuxInt = int64ToAuxInt(int64(c))
    		return true
    	}
    }
    func rewriteValueWasm_OpConstBool(v *Value) bool {
    	// match: (ConstBool [c])
    	// result: (I64Const [b2i(c)])
    	for {
    		c := auxIntToBool(v.AuxInt)
    		v.reset(OpWasmI64Const)
    		v.AuxInt = int64ToAuxInt(b2i(c))
    		return true
    	}
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 03:56:57 UTC 2023
    - 108.6K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/_gen/ARM.rules

    // constants
    (Const(8|16|32) [val]) => (MOVWconst [int32(val)])
    (Const(32|64)F [val]) => (MOV(F|D)const [float64(val)])
    (ConstNil) => (MOVWconst [0])
    (ConstBool [t]) => (MOVWconst [b2i32(t)])
    
    // truncations
    // Because we ignore high parts of registers, truncates are just copies.
    (Trunc16to8 ...) => (Copy ...)
    (Trunc32to8 ...) => (Copy ...)
    (Trunc32to16 ...) => (Copy ...)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 20 17:19:36 UTC 2023
    - 90.1K bytes
    - Viewed (0)
Back to top