Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for CSNEG (0.15 sec)

  1. test/codegen/condmove.go

    }
    
    func cmovuintptr(x, y uintptr) uintptr {
    	if x < y {
    		x = -y
    	}
    	// amd64:"CMOVQ(HI|CS)"
    	// arm64:"CSNEG\tLS"
    	// ppc64x:"ISEL\t[$]1"
    	// wasm:"Select"
    	return x
    }
    
    func cmov32bit(x, y uint32) uint32 {
    	if x < y {
    		x = -y
    	}
    	// amd64:"CMOVL(HI|CS)"
    	// arm64:"CSNEG\t(LS|HS)"
    	// ppc64x:"ISEL\t[$]1"
    	// wasm:"Select"
    	return x
    }
    
    func cmov16bit(x, y uint16) uint16 {
    	if x < y {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 06 20:57:33 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  2. src/cmd/internal/obj/arm64/doc.go

    	CCMPW HS, R19, R14, $11    <=>    ccmp w19, w14, #0xb, cs
    
    (9) CSEL, CSELW, CSNEG, CSNEGW, CSINC, CSINCW <cond>, <Rn>, <Rm>, <Rd> ;
    FCSELD, FCSELS <cond>, <Fn>, <Fm>, <Fd>
    
    Examples:
    
    	CSEL GT, R0, R19, R1        <=>    csel x1, x0, x19, gt
    	CSNEGW GT, R7, R17, R8      <=>    csneg w8, w7, w17, gt
    	FCSELD EQ, F15, F18, F16    <=>    fcsel d16, d15, d18, eq
    
    (10) TBNZ, TBZ $<imm>, <Rt>, <label>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 07 00:21:42 UTC 2023
    - 9.6K bytes
    - Viewed (0)
  3. src/cmd/asm/internal/asm/testdata/arm64enc.s

    	CMP $3817, R29                             // bfa73bf1
    	CMP R7>>23, R3                             // 7f5c47eb
    	CNEGW PL, R9, R14                          // 2e45895a
    	CSNEGW HS, R5, R9, R14                     // ae24895a
    	CSNEG PL, R14, R21, R3                     // c35595da
    	CNEG  LO, R7, R15                          // ef2487da
    	CRC32B R17, R8, R16                        // 1041d11a
    	CRC32H R3, R21, R27                        // bb46c31a
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jul 24 01:11:41 UTC 2023
    - 43.9K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/_gen/ARM64.rules

    (CSEL [cc] x (MVN a) flag) => (CSINV [cc] x a flag)
    (CSEL [cc] (MVN a) x flag) => (CSINV [arm64Negate(cc)] x a flag)
    (CSEL [cc] x (NEG a) flag) => (CSNEG [cc] x a flag)
    (CSEL [cc] (NEG a) x flag) => (CSNEG [arm64Negate(cc)] x a flag)
    
    (SUB x (SUB y z)) => (SUB (ADD <v.Type> x z) y)
    (SUB (SUB x y) z) => (SUB x (ADD <y.Type> y z))
    
    // remove redundant *const ops
    (ADDconst [0]  x) => x
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 113.1K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/_gen/ARM64Ops.go

    		{name: "CSINV", argLength: 3, reg: gp2flags1, asm: "CSINV", aux: "CCop"}, // auxint(flags) ? arg0 : ^arg1
    		{name: "CSNEG", argLength: 3, reg: gp2flags1, asm: "CSNEG", aux: "CCop"}, // auxint(flags) ? arg0 : -arg1
    		{name: "CSETM", argLength: 1, reg: readflags, asm: "CSETM", aux: "CCop"}, // auxint(flags) ? -1 : 0
    
    		// function calls
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 58.8K bytes
    - Viewed (0)
  6. src/cmd/asm/internal/asm/testdata/arm64.s

    // conditional operations
    	CSET	GT, R1	        // e1d79f9a
    	CSETW	HI, R2	        // e2979f1a
    	CSEL	LT, R1, R2, ZR	// 3fb0829a
    	CSELW	LT, R2, R3, R4	// 44b0831a
    	CSINC	GT, R1, ZR, R3	// 23c49f9a
    	CSNEG	MI, R1, R2, R3	// 234482da
    	CSINV	CS, R1, R2, R3	// CSINV	HS, R1, R2, R3 // 232082da
    	CSINV	HS, R1, R2, R3	// 232082da
    	CSINVW	MI, R2, ZR, R2	// 42409f5a
    	CINC	EQ, R4, R9	// 8914849a
    	CINCW	PL, R2, ZR	// 5f44821a
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 08 03:28:17 UTC 2023
    - 94.9K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/rewriteARM64.go

    	// match: (CSEL [cc] x (NEG a) flag)
    	// result: (CSNEG [cc] x a flag)
    	for {
    		cc := auxIntToOp(v.AuxInt)
    		x := v_0
    		if v_1.Op != OpARM64NEG {
    			break
    		}
    		a := v_1.Args[0]
    		flag := v_2
    		v.reset(OpARM64CSNEG)
    		v.AuxInt = opToAuxInt(cc)
    		v.AddArg3(x, a, flag)
    		return true
    	}
    	// match: (CSEL [cc] (NEG a) x flag)
    	// result: (CSNEG [arm64Negate(cc)] x a flag)
    	for {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 608.6K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/opGen.go

    			},
    			outputs: []outputInfo{
    				{0, 670826495}, // R0 R1 R2 R3 R4 R5 R6 R7 R8 R9 R10 R11 R12 R13 R14 R15 R16 R17 R19 R20 R21 R22 R23 R24 R25 R26 R30
    			},
    		},
    	},
    	{
    		name:    "CSNEG",
    		auxType: auxCCop,
    		argLen:  3,
    		asm:     arm64.ACSNEG,
    		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