Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for MOVK (0.05 sec)

  1. src/cmd/internal/obj/arm64/asm_arm64_test.s

    	VMOV    V1.D[0], R0
    	VMOV    V1.D[1], R1
    	MOVD    R0, r1+0(FP)
    	MOVD    R1, r2+8(FP)
    	RET
    
    // testmovk() uint64
    TEXT ·testmovk(SB), NOSPLIT, $0-8
    	MOVD	$0, R0
    	MOVK	$(40000<<48), R0
    	MOVD	R0, ret+0(FP)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 02:46:11 UTC 2023
    - 892 bytes
    - Viewed (0)
  2. src/cmd/internal/obj/arm64/doc.go

    The current Go assembler does not accept zero shifts, such as "op $0, Rd" and "op $(0<<(16|32|48)), Rd" instructions.
    
    Examples:
    
    	MOVK $(10<<32), R20     <=>      movk x20, #10, lsl #32
    	MOVZW $(20<<16), R8     <=>      movz w8, #20, lsl #16
    	MOVK $(0<<16), R10 will be reported as an error by the assembler.
    
    Special Cases.
    
    (1) umov is written as VMOV.
    
    (2) br is renamed JMP, blr is renamed CALL.
    
    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/internal/obj/arm64/asm_arm64_test.go

    			t.Errorf("%v: got: a=0x%x, b=0x%x, want: a=0x%x, b=0x%x", test.op, gotA, gotB, test.wantA, test.wantB)
    		}
    	}
    }
    
    func testmovk() uint64
    
    // TestMOVK makes sure MOVK with a very large constant works. See issue 52261.
    func TestMOVK(t *testing.T) {
    	x := testmovk()
    	want := uint64(40000 << 48)
    	if x != want {
    		t.Errorf("Got %x want %x\n", x, want)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 02:46:11 UTC 2023
    - 7.8K bytes
    - Viewed (0)
  4. src/cmd/asm/internal/asm/testdata/arm64error.s

    	STP	(R26, R27), 700(R2)                              // ERROR "cannot use REGTMP as source"
    	MOVK	$0, R10                                          // ERROR "zero shifts cannot be handled correctly"
    	MOVK	$(0<<32), R10                                    // ERROR "zero shifts cannot be handled correctly"
    	TLBI	PLDL1KEEP                                        // ERROR "illegal argument"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 08 03:28:17 UTC 2023
    - 37.8K bytes
    - Viewed (0)
  5. src/cmd/asm/internal/asm/testdata/arm64enc.s

    	MOVKW $(3905<<0), R21                      // MOVKW $3905, R21              // 35e88172
    	MOVKW $(3905<<16), R21                     // MOVKW $255918080, R21         // 35e8a172
    	MOVK $(3905<<32), R21                      // MOVK $16771847290880, R21     // 35e8c1f2
    	MOVD $0, R5                                // e5031faa
    	MSR $1, SPSel                              // bf4100d5
    	MSR $9, DAIFSet                            // df4903d5
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jul 24 01:11:41 UTC 2023
    - 43.9K bytes
    - Viewed (0)
  6. src/cmd/internal/obj/arm64/a.out.go

    	C_BITCON   // bitfield and logical immediate masks
    	C_ADDCON2  // 24-bit constant
    	C_LCON     // 32-bit constant
    	C_MOVCON2  // a constant that can be loaded with one MOVZ/MOVN and one MOVK
    	C_MOVCON3  // a constant that can be loaded with one MOVZ/MOVN and two MOVKs
    	C_VCON     // 64-bit constant
    	C_FCON     // floating-point constant
    	C_VCONADDR // 64-bit memory address
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 17:56:30 UTC 2023
    - 18.1K bytes
    - Viewed (0)
  7. src/cmd/internal/obj/arm64/asm7.go

    		o1 = c.omovconst(p.As, p, &p.From, int(p.To.Reg))
    
    	case 33: /* movk $uimm16 << pos */
    		o1 = c.opirr(p, p.As)
    
    		d := p.From.Offset
    		if d == 0 {
    			c.ctxt.Diag("zero shifts cannot be handled correctly: %v", p)
    		}
    		s := movcon(d)
    		if s < 0 || s >= 4 {
    			c.ctxt.Diag("bad constant for MOVK: %#x\n%v", uint64(d), p)
    		}
    		if (o1&S64) == 0 && s >= 2 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 15:44:14 UTC 2024
    - 201.1K bytes
    - Viewed (0)
  8. src/cmd/link/internal/arm64/asm.go

    			}
    
    			// R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21
    			// turn ADRP to MOVZ
    			o0 = 0xd2a00000 | uint32(o0&0x1f) | (uint32((v>>16)&0xffff) << 5)
    			// R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC
    			// turn LD64 to MOVK
    			if v&3 != 0 {
    				ldr.Errorf(s, "invalid address: %x for relocation type: R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC", v)
    			}
    			o1 = 0xf2800000 | uint32(o1&0x1f) | (uint32(v&0xffff) << 5)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 30 20:09:45 UTC 2024
    - 47K bytes
    - Viewed (0)
  9. src/cmd/asm/internal/asm/testdata/arm64.s

    	MOVD	$0xffffffffffffaaaa, R1       // MOVD	$-21846, R1                 // a1aa8a92
    	MOVW	$1, ZR                        // 3f008052
    	MOVW	$1, R1
    	MOVD	$1, ZR                        // 3f0080d2
    	MOVD	$1, R1
    	MOVK	$1, R1
    	MOVD	$0x1000100010001000, RSP      // MOVD	$1152939097061330944, RSP   // ff8304b2
    	MOVW	$0x10001000, RSP              // MOVW	$268439552, RSP             // ff830432
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 08 03:28:17 UTC 2023
    - 94.9K bytes
    - Viewed (0)
Back to top