Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for CMPWconstload (0.37 sec)

  1. src/cmd/compile/internal/ssa/_gen/386splitload.rules

    (CMP(L|W|B)load {sym} [off] ptr x mem) => (CMP(L|W|B) (MOV(L|W|B)load {sym} [off] ptr mem) x)
    
    (CMPLconstload {sym} [vo] ptr mem) => (CMPLconst (MOVLload {sym} [vo.Off()] ptr mem) [vo.Val()])
    (CMPWconstload {sym} [vo] ptr mem) => (CMPWconst (MOVWload {sym} [vo.Off()] ptr mem) [vo.Val16()])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 04 19:35:46 UTC 2022
    - 620 bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/rewrite386splitload.go

    		v.AddArg2(v0, x)
    		return true
    	}
    }
    func rewriteValue386splitload_Op386CMPWconstload(v *Value) bool {
    	v_1 := v.Args[1]
    	v_0 := v.Args[0]
    	b := v.Block
    	typ := &b.Func.Config.Types
    	// match: (CMPWconstload {sym} [vo] ptr mem)
    	// result: (CMPWconst (MOVWload {sym} [vo.Off()] ptr mem) [vo.Val16()])
    	for {
    		vo := auxIntToValAndOff(v.AuxInt)
    		sym := auxToSym(v.Aux)
    		ptr := v_0
    		mem := v_1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 19 22:42:34 UTC 2023
    - 4K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/_gen/AMD64splitload.rules

    (CMPQconstload {sym} [vo] ptr mem) && vo.Val() != 0 => (CMPQconst (MOVQload {sym} [vo.Off()] ptr mem) [vo.Val()])
    (CMPLconstload {sym} [vo] ptr mem) && vo.Val() != 0 => (CMPLconst (MOVLload {sym} [vo.Off()] ptr mem) [vo.Val()])
    (CMPWconstload {sym} [vo] ptr mem) && vo.Val() != 0 => (CMPWconst (MOVWload {sym} [vo.Off()] ptr mem) [vo.Val16()])
    (CMPBconstload {sym} [vo] ptr mem) && vo.Val() != 0 => (CMPBconst (MOVBload {sym} [vo.Off()] ptr mem) [vo.Val8()])
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 04 19:35:46 UTC 2022
    - 3.4K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/rewriteAMD64splitload.go

    		return true
    	}
    }
    func rewriteValueAMD64splitload_OpAMD64CMPWconstload(v *Value) bool {
    	v_1 := v.Args[1]
    	v_0 := v.Args[0]
    	b := v.Block
    	typ := &b.Func.Config.Types
    	// match: (CMPWconstload {sym} [vo] ptr mem)
    	// cond: vo.Val() == 0
    	// result: (TESTW x:(MOVWload {sym} [vo.Off()] ptr mem) x)
    	for {
    		vo := auxIntToValAndOff(v.AuxInt)
    		sym := auxToSym(v.Aux)
    		ptr := v_0
    		mem := v_1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 19 22:42:34 UTC 2023
    - 21.4K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/_gen/386Ops.go

    		{name: "CMPLconstload", argLength: 2, reg: gp0flagsLoad, asm: "CMPL", aux: "SymValAndOff", typ: "Flags", symEffect: "Read", faultOnNilArg0: true},
    		{name: "CMPWconstload", argLength: 2, reg: gp0flagsLoad, asm: "CMPW", aux: "SymValAndOff", typ: "Flags", symEffect: "Read", faultOnNilArg0: true},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 14 08:10:32 UTC 2023
    - 45.1K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/_gen/AMD64Ops.go

    		{name: "CMPLconstload", argLength: 2, reg: gp0flagsLoad, asm: "CMPL", aux: "SymValAndOff", typ: "Flags", symEffect: "Read", faultOnNilArg0: true},
    		{name: "CMPWconstload", argLength: 2, reg: gp0flagsLoad, asm: "CMPW", aux: "SymValAndOff", typ: "Flags", symEffect: "Read", faultOnNilArg0: true},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 04 16:40:24 UTC 2023
    - 98K bytes
    - Viewed (1)
  7. src/cmd/compile/internal/ssa/_gen/AMD64.rules

    (CMPLload {sym} [off] ptr (MOVLconst [c]) mem) => (CMPLconstload {sym} [makeValAndOff(c,off)] ptr mem)
    (CMPWload {sym} [off] ptr (MOVLconst [c]) mem) => (CMPWconstload {sym} [makeValAndOff(int32(int16(c)),off)] ptr mem)
    (CMPBload {sym} [off] ptr (MOVLconst [c]) mem) => (CMPBconstload {sym} [makeValAndOff(int32(int8(c)),off)] ptr mem)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 12 19:38:41 UTC 2024
    - 93.9K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/rewriteAMD64.go

    	}
    	return false
    }
    func rewriteValueAMD64_OpAMD64CMPWconstload(v *Value) bool {
    	v_1 := v.Args[1]
    	v_0 := v.Args[0]
    	// match: (CMPWconstload [valoff1] {sym} (ADDQconst [off2] base) mem)
    	// cond: ValAndOff(valoff1).canAdd32(off2)
    	// result: (CMPWconstload [ValAndOff(valoff1).addOffset32(off2)] {sym} base mem)
    	for {
    		valoff1 := auxIntToValAndOff(v.AuxInt)
    		sym := auxToSym(v.Aux)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 12 19:38:41 UTC 2024
    - 712.7K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/rewrite386.go

    		}
    		x := v_0
    		v.reset(Op386TESTW)
    		v.AddArg2(x, x)
    		return true
    	}
    	// match: (CMPWconst l:(MOVWload {sym} [off] ptr mem) [c])
    	// cond: l.Uses == 1 && clobber(l)
    	// result: @l.Block (CMPWconstload {sym} [makeValAndOff(int32(c),off)] ptr mem)
    	for {
    		c := auxIntToInt16(v.AuxInt)
    		l := v_0
    		if l.Op != Op386MOVWload {
    			break
    		}
    		off := auxIntToInt32(l.AuxInt)
    		sym := auxToSym(l.Aux)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 21 21:05:46 UTC 2023
    - 262.4K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/opGen.go

    		symEffect:      SymRead,
    		asm:            x86.ACMPL,
    		reg: regInfo{
    			inputs: []inputInfo{
    				{0, 65791}, // AX CX DX BX SP BP SI DI SB
    			},
    		},
    	},
    	{
    		name:           "CMPWconstload",
    		auxType:        auxSymValAndOff,
    		argLen:         2,
    		faultOnNilArg0: true,
    		symEffect:      SymRead,
    		asm:            x86.ACMPW,
    		reg: regInfo{
    			inputs: []inputInfo{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 1M bytes
    - Viewed (0)
Back to top