Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 5,782 for Const8 (0.13 sec)

  1. test/const8.go

    // in the correct context; see issues #49157, #53585.
    
    package main
    
    const X = 2
    
    func main() {
    	const (
    		A    = iota // 0
    		iota = iota // 1
    		B           // 1 (iota is declared locally on prev. line)
    		C           // 1
    	)
    	if A != 0 || B != 1 || C != 1 {
    		println("got", A, B, C, "want 0 1 1")
    		panic("FAILED")
    	}
    
    	const (
    		X = X + X
    		Y
    		Z = iota
    	)
    	if X != 4 || Y != 8 || Z != 1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 28 18:11:31 UTC 2022
    - 727 bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/_gen/generic.rules

    (Xor(64|32|16|8) x x) => (Const(64|32|16|8) [0])
    (Xor(64|32|16|8) (Const(64|32|16|8) [0]) x) => x
    (Xor(64|32|16|8) (Com(64|32|16|8)    x)  x) => (Const(64|32|16|8) [-1])
    
    (Add(64|32|16|8) (Const(64|32|16|8) [0]) x) => x
    (Sub(64|32|16|8) x x) => (Const(64|32|16|8) [0])
    (Mul(64|32|16|8) (Const(64|32|16|8) [0]) _) => (Const(64|32|16|8) [0])
    (Select0 (Mul(64|32)uover (Const(64|32) [0]) x)) => (Const(64|32) [0])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 22:21:05 UTC 2024
    - 135.3K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/_gen/dec64.rules

    		(Or32 <typ.UInt32>
    			(Or32 <typ.UInt32>
    				(Lsh32x8 <typ.UInt32> (Int64Hi x) s)
    				(Rsh32Ux8 <typ.UInt32>
    					(Int64Lo x)
    					(Sub8 <typ.UInt8> (Const8 <typ.UInt8> [32]) s)))
    			(Lsh32x8 <typ.UInt32>
    				(Int64Lo x)
    				(Sub8 <typ.UInt8> s (Const8 <typ.UInt8> [32]))))
    		(Lsh32x8 <typ.UInt32> (Int64Lo x) s))
    
    // 64x unsigned right shift
    // result.hi = hi>>s
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 04 19:35:46 UTC 2022
    - 14.2K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/rewritegeneric.go

    			v2.AuxInt = int16ToAuxInt(d - c)
    			v.AddArg2(v0, v2)
    			return true
    		}
    		break
    	}
    	// match: (AndB (Leq8 (Const8 [c]) x) (Less8 x (Const8 [d])))
    	// cond: d >= c
    	// result: (Less8U (Sub8 <x.Type> x (Const8 <x.Type> [c])) (Const8 <x.Type> [d-c]))
    	for {
    		for _i0 := 0; _i0 <= 1; _i0, v_0, v_1 = _i0+1, v_1, v_0 {
    			if v_0.Op != OpLeq8 {
    				continue
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 18:24:47 UTC 2024
    - 812.2K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/rewritedec64.go

    	// match: (Lsh64x8 x s)
    	// result: (Int64Make (Or32 <typ.UInt32> (Or32 <typ.UInt32> (Lsh32x8 <typ.UInt32> (Int64Hi x) s) (Rsh32Ux8 <typ.UInt32> (Int64Lo x) (Sub8 <typ.UInt8> (Const8 <typ.UInt8> [32]) s))) (Lsh32x8 <typ.UInt32> (Int64Lo x) (Sub8 <typ.UInt8> s (Const8 <typ.UInt8> [32])))) (Lsh32x8 <typ.UInt32> (Int64Lo x) s))
    	for {
    		x := v_0
    		s := v_1
    		v.reset(OpInt64Make)
    		v0 := b.NewValue0(v.Pos, OpOr32, typ.UInt32)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 19 22:42:34 UTC 2023
    - 65.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/tests/graphdef2mlir/output-shapes.pbtxt

            shape {
              dim {
                size: 2
              }
            }
          }
        }
      }
    }
    node {
      name: "RaggedToTensor"
      op: "RaggedTensorToTensor"
      input: ["Const0", "_Arg", "Const1", "Const2"]
      attr {
        key: "T"
        value {
          type: DT_STRING
        }
      }
      attr {
        key: "row_partition_types"
        value {
          list {
            s: ["ROW_SPLITS"]
          }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Sep 21 04:07:13 UTC 2021
    - 3K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/_gen/genericOps.go

    	{name: "ConstNil", typ: "BytePtr"},   // nil pointer
    	{name: "Const8", aux: "Int8"},        // auxint is sign-extended 8 bits
    	{name: "Const16", aux: "Int16"},      // auxint is sign-extended 16 bits
    	{name: "Const32", aux: "Int32"},      // auxint is sign-extended 32 bits
    	// Note: ConstX are sign-extended even when the type of the value is unsigned.
    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/_gen/ARM.rules

    (Rsh8x64 x (Const64 [c])) && uint64(c) >= 8 => (SRAconst (SLLconst <typ.UInt32> x [24]) [31])
    
    // 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 ...)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 20 17:19:36 UTC 2023
    - 90.1K bytes
    - Viewed (0)
  9. test/const4.go

    package main
    
    var b struct {
    	a [10]int
    }
    
    var m map[string][20]int
    
    var s [][30]int
    
    const (
    	n1 = len(b.a)
    	n2 = len(m[""])
    	n3 = len(s[10])
    )
    
    // Non-constants (see also const5.go).
    var (
    	n4 = len(f())
    	n5 = len(<-c)
    	n6 = cap(g())
    	n7 = cap(<-c1)
    )
    
    var calledF = false
    
    func f() *[40]int {
    	calledF = true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Jul 11 14:36:33 UTC 2015
    - 1.3K bytes
    - Viewed (0)
  10. src/internal/types/testdata/check/const0.go

    	1 * 1e9,
    	5 * 1e9,
    }
    
    const _ = unsafe.Sizeof(func() {
    	const _ = 0
    	_ = iota
    
    	const (
    	   zero = iota
    	   one
    	)
    	assert(one == 1)
    	assert(iota == 0)
    })
    
    // issue #52438
    const i1 = iota
    const i2 = iota
    const i3 = iota
    
    func _() {
    	assert(i1 == 0)
    	assert(i2 == 0)
    	assert(i3 == 0)
    
    	const i4 = iota
    	const i5 = iota
    	const i6 = iota
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:25 UTC 2023
    - 9.2K bytes
    - Viewed (0)
Back to top