Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for signExtNto64 (0.45 sec)

  1. test/prove.go

    	}
    	return x
    }
    
    // The 4 xxxxExtNto64 functions below test whether prove is looking
    // through value-preserving sign/zero extensions of index values (issue #26292).
    
    // Look through all extensions
    func signExtNto64(x []int, j8 int8, j16 int16, j32 int32) int {
    	if len(x) < 22 {
    		return 0
    	}
    	if j8 >= 0 && j8 < 22 {
    		return x[j8] // ERROR "Proved IsInBounds$"
    	}
    	if j16 >= 0 && j16 < 22 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 23 00:02:36 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/_gen/LOONG64.rules

    (Rsh8x64 <t> x y) => (SRAV (SignExt8to64 x) (OR <t> (NEGV <t> (SGTU y (MOVVconst <typ.UInt64> [63]))) y))
    (Rsh8x32 <t> x y) => (SRAV (SignExt8to64 x) (OR <t> (NEGV <t> (SGTU (ZeroExt32to64 y) (MOVVconst <typ.UInt64> [63]))) (ZeroExt32to64 y)))
    (Rsh8x16 <t> x y) => (SRAV (SignExt8to64 x) (OR <t> (NEGV <t> (SGTU (ZeroExt16to64 y) (MOVVconst <typ.UInt64> [63]))) (ZeroExt16to64 y)))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 19:26:25 UTC 2023
    - 31.8K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/_gen/RISCV64.rules

    (Rsh8x8   <t> x y) && !shiftIsBounded(v) => (SRA  <t> (SignExt8to64  x) (OR <y.Type> y (ADDI <y.Type> [-1] (SLTIU <y.Type> [64] (ZeroExt8to64  y)))))
    (Rsh8x16  <t> x y) && !shiftIsBounded(v) => (SRA  <t> (SignExt8to64  x) (OR <y.Type> y (ADDI <y.Type> [-1] (SLTIU <y.Type> [64] (ZeroExt16to64 y)))))
    (Rsh8x32  <t> x y) && !shiftIsBounded(v) => (SRA  <t> (SignExt8to64  x) (OR <y.Type> y (ADDI <y.Type> [-1] (SLTIU <y.Type> [64] (ZeroExt32to64 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)
  4. src/cmd/compile/internal/ssa/rewriteLOONG64.go

    	}
    }
    func rewriteValueLOONG64_OpDiv8(v *Value) bool {
    	v_1 := v.Args[1]
    	v_0 := v.Args[0]
    	b := v.Block
    	typ := &b.Func.Config.Types
    	// match: (Div8 x y)
    	// result: (DIVV (SignExt8to64 x) (SignExt8to64 y))
    	for {
    		x := v_0
    		y := v_1
    		v.reset(OpLOONG64DIVV)
    		v0 := b.NewValue0(v.Pos, OpSignExt8to64, typ.Int64)
    		v0.AddArg(x)
    		v1 := b.NewValue0(v.Pos, OpSignExt8to64, typ.Int64)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 19:26:25 UTC 2023
    - 195.8K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/_gen/generic.rules

    (Trunc32to8  (SignExt8to32  x)) => x
    (Trunc32to16 (SignExt8to32  x)) => (SignExt8to16  x)
    (Trunc32to16 (SignExt16to32 x)) => x
    (Trunc64to8  (SignExt8to64  x)) => x
    (Trunc64to16 (SignExt8to64  x)) => (SignExt8to16  x)
    (Trunc64to16 (SignExt16to64 x)) => x
    (Trunc64to32 (SignExt8to64  x)) => (SignExt8to32  x)
    (Trunc64to32 (SignExt16to64 x)) => (SignExt16to32 x)
    (Trunc64to32 (SignExt32to64 x)) => 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)
  6. src/cmd/compile/internal/ssa/rewriteRISCV64.go

    	}
    }
    func rewriteValueRISCV64_OpLess8(v *Value) bool {
    	v_1 := v.Args[1]
    	v_0 := v.Args[0]
    	b := v.Block
    	typ := &b.Func.Config.Types
    	// match: (Less8 x y)
    	// result: (SLT (SignExt8to64 x) (SignExt8to64 y))
    	for {
    		x := v_0
    		y := v_1
    		v.reset(OpRISCV64SLT)
    		v0 := b.NewValue0(v.Pos, OpSignExt8to64, typ.Int64)
    		v0.AddArg(x)
    		v1 := b.NewValue0(v.Pos, OpSignExt8to64, typ.Int64)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 14:57:07 UTC 2024
    - 205.1K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/_gen/ARM64.rules

    (Rsh8x64 x y) && !shiftIsBounded(v)        => (SRA (SignExt8to64 x) (CSEL [OpARM64LessThanU] <y.Type> y (Const64 <y.Type> [63]) (CMPconst [64] y)))
    (Rsh8x(32|16|8) x y) && !shiftIsBounded(v) => (SRA (SignExt8to64 x) (CSEL [OpARM64LessThanU] <y.Type> y (Const64 <y.Type> [63]) (CMPconst [64] ((ZeroExt32to64|ZeroExt16to64|ZeroExt8to64) y))))
    
    // constants
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 113.1K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/_gen/genericOps.go

    	// Conversions: signed extensions, zero (unsigned) extensions, truncations
    	{name: "SignExt8to16", argLength: 1, typ: "Int16"},
    	{name: "SignExt8to32", argLength: 1, typ: "Int32"},
    	{name: "SignExt8to64", argLength: 1, typ: "Int64"},
    	{name: "SignExt16to32", argLength: 1, typ: "Int32"},
    	{name: "SignExt16to64", argLength: 1, typ: "Int64"},
    	{name: "SignExt32to64", argLength: 1, typ: "Int64"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/rewriteARM64.go

    	v_1 := v.Args[1]
    	v_0 := v.Args[0]
    	b := v.Block
    	typ := &b.Func.Config.Types
    	// match: (Rsh8x16 <t> x y)
    	// cond: shiftIsBounded(v)
    	// result: (SRA <t> (SignExt8to64 x) y)
    	for {
    		t := v.Type
    		x := v_0
    		y := v_1
    		if !(shiftIsBounded(v)) {
    			break
    		}
    		v.reset(OpARM64SRA)
    		v.Type = t
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 608.6K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/_gen/AMD64.rules

    // Lowering extension
    // Note: we always extend to 64 bits even though some ops don't need that many result bits.
    (SignExt8to16  ...) => (MOVBQSX ...)
    (SignExt8to32  ...) => (MOVBQSX ...)
    (SignExt8to64  ...) => (MOVBQSX ...)
    (SignExt16to32 ...) => (MOVWQSX ...)
    (SignExt16to64 ...) => (MOVWQSX ...)
    (SignExt32to64 ...) => (MOVLQSX ...)
    
    (ZeroExt8to16  ...) => (MOVBQZX ...)
    (ZeroExt8to32  ...) => (MOVBQZX ...)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 12 19:38:41 UTC 2024
    - 93.9K bytes
    - Viewed (0)
Back to top