Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for srw (0.1 sec)

  1. test/codegen/shift.go

    	c[1] = c[((v>>7)&0x3F)<<7]
    }
    
    func checkShiftMask(a uint32, b uint64, z []uint32, y []uint64) {
    	_ = y[128]
    	_ = z[128]
    	// ppc64x: -"MOVBZ", -"SRW", "RLWNM"
    	z[0] = uint32(uint8(a >> 5))
    	// ppc64x: -"MOVBZ", -"SRW", "RLWNM"
    	z[1] = uint32(uint8((a >> 4) & 0x7e))
    	// ppc64x: "RLWNM\t[$]25, R[0-9]+, [$]27, [$]29, R[0-9]+"
    	z[2] = uint32(uint8(a>>7)) & 0x1c
    	// ppc64x: -"MOVWZ"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 18:53:43 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/rewrite.go

    // or return 0 if they cannot be combined.
    func mergePPC64SldiSrw(sld, srw int64) int64 {
    	if sld > srw || srw >= 32 {
    		return 0
    	}
    	mask_r := uint32(0xFFFFFFFF) >> uint(srw)
    	mask_l := uint32(0xFFFFFFFF) >> uint(sld)
    	mask := (mask_r & mask_l) << uint(sld)
    	return encodePPC64RotateMask((32-srw+sld)&31, int64(mask), 32)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 64.2K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/_gen/PPC64Ops.go

    		{name: "SRAW", argLength: 2, reg: gp21cxer, asm: "SRAW"}, // signed arg0 >> (arg1&63), 32 bit width
    		{name: "SRD", argLength: 2, reg: gp21, asm: "SRD"},       // unsigned arg0 >> (arg1&127), 64 bit width
    		{name: "SRW", argLength: 2, reg: gp21, asm: "SRW"},       // unsigned arg0 >> (arg1&63), 32 bit width
    		{name: "SLD", argLength: 2, reg: gp21, asm: "SLD"},       // arg0 << (arg1&127), 64 bit width
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 19:59:38 UTC 2024
    - 43.8K bytes
    - Viewed (0)
  4. src/cmd/asm/internal/asm/testdata/ppc64.s

    	SLWCC R3, R4                    // 7c841831
    	SLD $16, R3, R4                 // 786483e4
    	SLD R3, R4, R5                  // 7c851836
    	SLDCC R3, R4                    // 7c841837
    
    	SRW $8, R3, R4                  // 5464c23e
    	SRW R3, R4, R5                  // 7c851c30
    	SRWCC R3, R4                    // 7c841c31
    	SRAW $8, R3, R4                 // 7c644670
    	SRAW R3, R4, R5                 // 7c851e30
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 21:53:50 UTC 2024
    - 50.2K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/rewritePPC64.go

    	// match: (Rsh32Ux16 x y)
    	// cond: shiftIsBounded(v)
    	// result: (SRW x y)
    	for {
    		x := v_0
    		y := v_1
    		if !(shiftIsBounded(v)) {
    			break
    		}
    		v.reset(OpPPC64SRW)
    		v.AddArg2(x, y)
    		return true
    	}
    	// match: (Rsh32Ux16 <t> x y)
    	// result: (ISEL [2] (SRW <t> x y) (MOVDconst [0]) (CMPconst [0] (ANDconst [0xFFE0] y)))
    	for {
    		t := v.Type
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 360.2K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/_gen/PPC64.rules

    (Lsh16x(64|32|16|8)  x y) && shiftIsBounded(v) => (SLD x y)
    (Lsh8x(64|32|16|8)   x y) && shiftIsBounded(v) => (SLD x y)
    (Rsh64Ux(64|32|16|8) x y) && shiftIsBounded(v) => (SRD x y)
    (Rsh32Ux(64|32|16|8) x y) && shiftIsBounded(v) => (SRW x y)
    (Rsh16Ux(64|32|16|8) x y) && shiftIsBounded(v) => (SRD (MOVHZreg x) y)
    (Rsh8Ux(64|32|16|8)  x y) && shiftIsBounded(v) => (SRD (MOVBZreg x) y)
    (Rsh64x(64|32|16|8)  x y) && shiftIsBounded(v) => (SRAD x y)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 53.2K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/opGen.go

    			},
    			outputs: []outputInfo{
    				{0, 1073733624}, // R3 R4 R5 R6 R7 R8 R9 R10 R11 R12 R14 R15 R16 R17 R18 R19 R20 R21 R22 R23 R24 R25 R26 R27 R28 R29
    			},
    		},
    	},
    	{
    		name:   "SRW",
    		argLen: 2,
    		asm:    ppc64.ASRW,
    		reg: regInfo{
    			inputs: []inputInfo{
    				{0, 1073733630}, // SP SB R3 R4 R5 R6 R7 R8 R9 R10 R11 R12 R14 R15 R16 R17 R18 R19 R20 R21 R22 R23 R24 R25 R26 R27 R28 R29
    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