Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 554 for opload (0.94 sec)

  1. src/cmd/compile/internal/ssa/rewritedec.go

    		return true
    	}
    	// match: (ArraySelect [i] x:(Load <t> ptr mem))
    	// result: @x.Block (Load <v.Type> (OffPtr <v.Type.PtrTo()> [t.Elem().Size()*i] ptr) mem)
    	for {
    		i := auxIntToInt64(v.AuxInt)
    		x := v_0
    		if x.Op != OpLoad {
    			break
    		}
    		t := x.Type
    		mem := x.Args[1]
    		ptr := x.Args[0]
    		b = x.Block
    		v0 := b.NewValue0(v.Pos, OpLoad, v.Type)
    		v.copyOf(v0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 00:48:31 UTC 2023
    - 24.9K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/nilcheck_test.go

    			Valu("sb", OpSB, c.config.Types.Uintptr, 0, nil),
    			Goto("checkPtr")),
    		Bloc("checkPtr",
    			Valu("ptr1", OpLoad, ptrType, 0, nil, "sb", "mem"),
    			Valu("bool1", OpIsNonNil, c.config.Types.Bool, 0, nil, "ptr1"),
    			If("bool1", "differentCheck", "exit")),
    		Bloc("differentCheck",
    			Valu("ptr2", OpLoad, ptrType, 0, nil, "sb", "mem"),
    			Valu("bool2", OpIsNonNil, c.config.Types.Bool, 0, nil, "ptr2"),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 17 23:34:11 UTC 2023
    - 12.3K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/shift_test.go

    			Valu("SP", OpSP, c.config.Types.Uintptr, 0, nil),
    			Valu("argptr", OpOffPtr, ptyp, 8, nil, "SP"),
    			Valu("resptr", OpOffPtr, ptyp, 16, nil, "SP"),
    			Valu("load", OpLoad, typ, 0, nil, "argptr", "mem"),
    			Valu("c", OpConst64, c.config.Types.UInt64, amount, nil),
    			Valu("shift", op, typ, 0, nil, "load", "c"),
    			Valu("store", OpStore, types.TypeMem, 0, c.config.Types.UInt64, "resptr", "shift", "mem"),
    			Exit("store")))
    	Compile(fun.f)
    	return fun
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 4K bytes
    - Viewed (0)
  4. test/fixedbugs/issue42727.go

    // compile
    
    // Copyright 2020 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Ensure that late expansion correctly handles an OpLoad with type interface{}
    
    package p
    
    type iface interface {
    	m()
    }
    
    type it interface{}
    
    type makeIface func() iface
    
    func f() {
    	var im makeIface
    	e := im().(it)
    	_ = &e
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 20 17:31:50 UTC 2020
    - 400 bytes
    - Viewed (0)
  5. test/fixedbugs/issue42784.go

    // compile
    
    // Copyright 2020 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Ensure that late expansion correctly set OpLoad argument type interface{}
    
    package p
    
    type iface interface {
    	m()
    }
    
    type it interface{}
    
    type makeIface func() iface
    
    func f() {
    	var im makeIface
    	e := im().(it)
    	g(e)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 24 03:06:15 UTC 2020
    - 426 bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/branchelim_test.go

    					Valu("sb", OpSB, c.config.Types.Uintptr, 0, nil),
    					Valu("const1", OpConst32, intType, 1, nil),
    					Valu("const2", OpConst32, intType, 2, nil),
    					Valu("addr", OpAddr, boolType.PtrTo(), 0, nil, "sb"),
    					Valu("cond", OpLoad, boolType, 0, nil, "addr", "start"),
    					If("cond", "b2", "b3")),
    				Bloc("b2",
    					Goto("b3")),
    				Bloc("b3",
    					Valu("phi", OpPhi, intType, 0, nil, "const1", "const2"),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 24 15:51:15 UTC 2018
    - 5.2K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/cse_test.go

    			Valu("addr1", OpAddr, c.config.Types.Int64.PtrTo(), 0, nil, "sb1"),
    			Valu("addr2", OpAddr, c.config.Types.Int64.PtrTo(), 0, nil, "sb2"),
    			Valu("a1ld", OpLoad, c.config.Types.Int64, 0, nil, "addr1", "start"),
    			Valu("a2ld", OpLoad, c.config.Types.Int64, 0, nil, "addr2", "start"),
    			Valu("c1", OpConst64, c.config.Types.Int64, 1, nil),
    			Valu("r1", OpAdd64, c.config.Types.Int64, 0, nil, "a1ld", "c1"),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:09:14 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/schedule_test.go

    				Valu("mem2", OpStore, types.TypeMem, 0, c.config.Types.Int64, "ptr", "v", "mem1"),
    				Valu("mem3", OpStore, types.TypeMem, 0, c.config.Types.Int64, "ptr", "sum", "mem2"),
    				Valu("l1", OpLoad, c.config.Types.Int64, 0, nil, "ptr", "mem1"),
    				Valu("l2", OpLoad, c.config.Types.Int64, 0, nil, "ptr", "mem2"),
    				Valu("sum", OpAdd64, c.config.Types.Int64, 0, nil, "l1", "l2"),
    				Goto("exit")),
    			Bloc("exit",
    				Exit("mem3"))),
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Oct 08 01:46:00 UTC 2022
    - 5.6K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/softfloat.go

    	if !f.Config.SoftFloat {
    		return
    	}
    	newInt64 := false
    
    	for _, b := range f.Blocks {
    		for _, v := range b.Values {
    			if v.Type.IsFloat() {
    				f.unCache(v)
    				switch v.Op {
    				case OpPhi, OpLoad, OpArg:
    					if v.Type.Size() == 4 {
    						v.Type = f.Config.Types.UInt32
    					} else {
    						v.Type = f.Config.Types.UInt64
    					}
    				case OpConst32F:
    					v.Op = OpConst32
    					v.Type = f.Config.Types.UInt32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 03 16:14:24 UTC 2021
    - 2K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/fuse_test.go

    	fun := c.Fun("entry",
    		Bloc("entry",
    			Valu("mem", OpInitMem, types.TypeMem, 0, nil),
    			Valu("sb", OpSB, c.config.Types.Uintptr, 0, nil),
    			Goto("checkPtr")),
    		Bloc("checkPtr",
    			Valu("ptr1", OpLoad, ptrType, 0, nil, "sb", "mem"),
    			Valu("nilptr", OpConstNil, ptrType, 0, nil),
    			Valu("bool1", OpNeqPtr, c.config.Types.Bool, 0, nil, "ptr1", "nilptr"),
    			If("bool1", "then", "exit")),
    		Bloc("then",
    			Goto("exit")),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 31 20:45:54 UTC 2023
    - 7.4K bytes
    - Viewed (0)
Back to top