Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for constBool (0.61 sec)

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

    (EqB (ConstBool [false]) x) => (Not x)
    (EqB (ConstBool [true]) x) => x
    
    (Neq(64|32|16|8) x x) => (ConstBool [false])
    (NeqB (ConstBool [c]) (ConstBool [d])) => (ConstBool [c != d])
    (NeqB (ConstBool [false]) x) => x
    (NeqB (ConstBool [true]) x) => (Not x)
    (NeqB (Not x) (Not y)) => (NeqB x y)
    
    (Eq64 (Const64 <t> [c]) (Add64 (Const64 <t> [d]) x)) => (Eq64 (Const64 <t> [c-d]) x)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 22:21:05 UTC 2024
    - 135.3K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. src/cmd/compile/internal/ssa/rewriteMIPS.go

    	for {
    		val := auxIntToInt8(v.AuxInt)
    		v.reset(OpMIPSMOVWconst)
    		v.AuxInt = int32ToAuxInt(int32(val))
    		return true
    	}
    }
    func rewriteValueMIPS_OpConstBool(v *Value) bool {
    	// match: (ConstBool [t])
    	// result: (MOVWconst [b2i32(t)])
    	for {
    		t := auxIntToBool(v.AuxInt)
    		v.reset(OpMIPSMOVWconst)
    		v.AuxInt = int32ToAuxInt(b2i32(t))
    		return true
    	}
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 24 14:43:03 UTC 2023
    - 176.6K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/rewriteLOONG64.go

    	for {
    		val := auxIntToInt8(v.AuxInt)
    		v.reset(OpLOONG64MOVVconst)
    		v.AuxInt = int64ToAuxInt(int64(val))
    		return true
    	}
    }
    func rewriteValueLOONG64_OpConstBool(v *Value) bool {
    	// match: (ConstBool [t])
    	// result: (MOVVconst [int64(b2i(t))])
    	for {
    		t := auxIntToBool(v.AuxInt)
    		v.reset(OpLOONG64MOVVconst)
    		v.AuxInt = int64ToAuxInt(int64(b2i(t)))
    		return true
    	}
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 19:26:25 UTC 2023
    - 195.8K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/rewriteMIPS64.go

    	for {
    		val := auxIntToInt8(v.AuxInt)
    		v.reset(OpMIPS64MOVVconst)
    		v.AuxInt = int64ToAuxInt(int64(val))
    		return true
    	}
    }
    func rewriteValueMIPS64_OpConstBool(v *Value) bool {
    	// match: (ConstBool [t])
    	// result: (MOVVconst [int64(b2i(t))])
    	for {
    		t := auxIntToBool(v.AuxInt)
    		v.reset(OpMIPS64MOVVconst)
    		v.AuxInt = int64ToAuxInt(int64(b2i(t)))
    		return true
    	}
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jul 31 03:59:48 UTC 2023
    - 211.6K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/rewriteRISCV64.go

    	for {
    		val := auxIntToInt8(v.AuxInt)
    		v.reset(OpRISCV64MOVDconst)
    		v.AuxInt = int64ToAuxInt(int64(val))
    		return true
    	}
    }
    func rewriteValueRISCV64_OpConstBool(v *Value) bool {
    	// match: (ConstBool [val])
    	// result: (MOVDconst [int64(b2i(val))])
    	for {
    		val := auxIntToBool(v.AuxInt)
    		v.reset(OpRISCV64MOVDconst)
    		v.AuxInt = int64ToAuxInt(int64(b2i(val)))
    		return true
    	}
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 14:57:07 UTC 2024
    - 205.1K bytes
    - Viewed (0)
Back to top