Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for UBFX (0.05 sec)

  1. test/codegen/bitfield.go

    	return ((x << 5) & (0xfff << 5)) << 2
    }
    
    // ubfx
    // merge shifts into ubfx: (x<<lc)>>rc && lc<rc
    func ubfx1(x uint64) uint64 {
    	// arm64:"UBFX\t[$]1, R[0-9]+, [$]62",-"LSL",-"LSR"
    	// s390x:"RISBGZ\t[$]2, [$]63, [$]63,",-"SLD",-"SRD"
    	return (x << 1) >> 2
    }
    
    // merge shift and zero-extension into ubfx.
    func ubfx2(x uint32) uint64 {
    	return uint64(x >> 15) // arm64:"UBFX\t[$]15, R[0-9]+, [$]17",-"LSR"
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 23 06:11:32 UTC 2022
    - 9.6K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/_gen/ARM64.rules

    	=> (UBFX [armBFAuxInt(sc, arm64BFWidth(ac, sc))] x)
    // merge ANDconst and ubfx into ubfx
    (ANDconst [c] (UBFX [bfc] x)) && isARM64BFMask(0, c, 0) =>
    	(UBFX [armBFAuxInt(bfc.getARM64BFlsb(), min(bfc.getARM64BFwidth(), arm64BFWidth(c, 0)))] x)
    (UBFX [bfc] (ANDconst [c] x)) && isARM64BFMask(0, c, 0) && bfc.getARM64BFlsb() + bfc.getARM64BFwidth() <= arm64BFWidth(c, 0) =>
    	(UBFX [bfc] x)
    // merge ubfx and zerso-extension into ubfx
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 113.1K bytes
    - Viewed (0)
  3. src/cmd/internal/obj/arm64/anames.go

    	"SWPW",
    	"SXTB",
    	"SXTBW",
    	"SXTH",
    	"SXTHW",
    	"SXTW",
    	"SYS",
    	"SYSL",
    	"TBNZ",
    	"TBZ",
    	"TLBI",
    	"TST",
    	"TSTW",
    	"UBFIZ",
    	"UBFIZW",
    	"UBFM",
    	"UBFMW",
    	"UBFX",
    	"UBFXW",
    	"UCVTFD",
    	"UCVTFS",
    	"UCVTFWD",
    	"UCVTFWS",
    	"UDIV",
    	"UDIVW",
    	"UMADDL",
    	"UMNEGL",
    	"UMSUBL",
    	"UMULH",
    	"UMULL",
    	"UREM",
    	"UREMW",
    	"UXTB",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 18 01:40:37 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  4. src/cmd/internal/obj/arm64/doc.go

    Examples:
    
    	FMADDD F30, F20, F3, F29    <=>    fmadd d29, d3, d30, d20
    	FNMSUBS F7, F25, F7, F22    <=>    fnmsub s22, s7, s7, s25
    
    (4) BFI, BFXIL, SBFIZ, SBFX, UBFIZ, UBFX $<lsb>, <Rn>, $<width>, <Rd>
    
    Examples:
    
    	BFIW $16, R20, $6, R0      <=>    bfi w0, w20, #16, #6
    	UBFIZ $34, R26, $5, R20    <=>    ubfiz x20, x26, #34, #5
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 07 00:21:42 UTC 2023
    - 9.6K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/rewriteARM64.go

    			break
    		}
    		v.reset(OpARM64UBFX)
    		v.AuxInt = arm64BitFieldToAuxInt(armBFAuxInt(sc, arm64BFWidth(ac, 0)))
    		v.AddArg(x)
    		return true
    	}
    	// match: (ANDconst [c] (UBFX [bfc] x))
    	// cond: isARM64BFMask(0, c, 0)
    	// result: (UBFX [armBFAuxInt(bfc.getARM64BFlsb(), min(bfc.getARM64BFwidth(), arm64BFWidth(c, 0)))] x)
    	for {
    		c := auxIntToInt64(v.AuxInt)
    		if v_0.Op != OpARM64UBFX {
    			break
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 608.6K bytes
    - Viewed (0)
  6. test/codegen/memcombine.go

    	// s390x:-"MOVW",-"SRD"
    	p.b = uint32(x)
    }
    func store16le(p *struct{ a, b uint16 }, x uint32) {
    	// amd64:"MOVL",-"MOVW",-"SHRL"
    	// arm64:"MOVW",-"MOVH",-"UBFX"
    	// ppc64le:"MOVW",-"MOVH",-"SRW"
    	p.a = uint16(x)
    	// amd64:-"MOVW",-"SHRL"
    	// arm64:-"MOVH",-"UBFX"
    	// ppc64le:-"MOVH",-"SRW"
    	p.b = uint16(x >> 16)
    }
    func store16be(p *struct{ a, b uint16 }, x uint32) {
    	// ppc64:"MOVW",-"MOVH",-"SRW"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 19:45:41 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  7. test/codegen/mathbits.go

    	// 386:"BSWAPL"
    	// s390x:"MOVWBR"
    	// arm64:"REVW"
    	// ppc64x/power10: "BRW"
    	return bits.ReverseBytes32(n)
    }
    
    func ReverseBytes16(n uint16) uint16 {
    	// amd64:"ROLW"
    	// arm64:"REV16W",-"UBFX",-"ORR"
    	// arm/5:"SLL","SRL","ORR"
    	// arm/6:"REV16"
    	// arm/7:"REV16"
    	// ppc64x/power10: "BRH"
    	return bits.ReverseBytes16(n)
    }
    
    // --------------------- //
    //    bits.RotateLeft    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:51:17 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/arch/arm64/arm64asm/plan9x.go

    			if rno <= uint16(WZR) {
    				op += "W"
    			}
    		}
    		args[1], args[2] = args[2], args[1]
    
    	case STLXRB, STLXRH, STXRB, STXRH:
    		args[1], args[2] = args[2], args[1]
    
    	case BFI, BFXIL, SBFIZ, SBFX, UBFIZ, UBFX:
    		if r, ok := inst.Args[0].(Reg); ok {
    			rno := uint16(r)
    			if rno <= uint16(WZR) {
    				op += "W"
    			}
    		}
    		args[1], args[2], args[3] = args[3], args[1], args[2]
    
    	case LDAXP, LDXP:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 16 22:24:28 UTC 2022
    - 17K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/_gen/ARM64Ops.go

    		{name: "UBFIZ", argLength: 1, reg: gp11, asm: "UBFIZ", aux: "ARM64BitField"},
    		// extract width bits of arg0 starting at bit lsb and insert at low end of result, remaining high bits are zeroed
    		{name: "UBFX", argLength: 1, reg: gp11, asm: "UBFX", aux: "ARM64BitField"},
    
    		// moves
    		{name: "MOVDconst", argLength: 0, reg: gp01, aux: "Int64", asm: "MOVD", typ: "UInt64", rematerializeable: true},      // 64 bits from auxint
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 58.8K bytes
    - Viewed (0)
  10. src/cmd/asm/internal/asm/testdata/arm64enc.s

    	ANDS R17<<11, R24, ZR                      // 1f2f11ea
    	UBFIZW $3, R19, $14, R14                   // 6e361d53
    	UBFIZ $3, R22, $14, R4                     // c4367dd3
    	UBFXW $3, R7, $20, R15                     // ef580353
    	UBFX $33, R17, $25, R5                     // 25e661d3
    	UDIVW R8, R21, R15                         // af0ac81a
    	UDIV R2, R19, R21                          // 750ac29a
    	UMADDL R0, R20, R17, R17                   // 3152a09b
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jul 24 01:11:41 UTC 2023
    - 43.9K bytes
    - Viewed (0)
Back to top