925 matches across 25 files for TODO lang:Assembly lang:Assembly lang:Assembly
snippet_mode: auto · sorted by relevance
src/runtime/sys_openbsd_arm.s ASSEMBLY 1 matches view file →
85 B runtime·armPublicationBarrier(SB)
86
87// TODO(jsing): OpenBSD only supports GOARM=7 machines... this
88// should not be needed, however the linker still allows GOARM=5
89// on this platform.
src/runtime/sys_openbsd_ppc64.s ASSEMBLY 4 matches view file →
26 XOR R0, R0
27
28 // TODO(jsing): Save callee-save registers (R14-R31, F14-F31, V20-V31).
29
30 MOVD m_g0(R3), g
· · ·
33 BL runtime·mstart(SB)
34
35 // TODO(jsing): Restore callee-save registers (R14-R31, F14-F31, V20-V31).
36
37 // Go is all done with this OS thread.
· · ·
55 XOR R0, R0
56
57 // TODO(jsing): Save callee-save registers (R2, R14-R31, F14-F31).
58 // in the case of signal forwarding.
59 // Please refer to https://golang.org/issue/31827 .
· · ·
64 BL runtime·sigtrampgo<ABIInternal>(SB)
65
66 // TODO(jsing): Restore callee-save registers.
67
68 RET
src/runtime/race_ppc64le.s ASSEMBLY 2 matches view file →
407// Common function used to call tsan's atomic functions
408// R3 = *ThreadState
409// R4 = TODO: What's this supposed to be?
410// R5 = caller pc
411// R6 = addr of incoming arg list
· · ·
457
458 MOVD g_racectx(g), R3
459 MOVD R8, R4 // pc being called same TODO as above
460 MOVD (R1), R5 // caller pc from latest LR
461 BL racecall<>(SB)
src/runtime/asm_amd64.s ASSEMBLY 2 matches view file →
1324 MOVQ R13, 104(SP)
1325retry:
1326 // TODO: Consider passing g.m.p in as an argument so they can be shared
1327 // across a sequence of write barriers.
1328 MOVQ g_m(R14), R13
· · ·
1355 // here is NOSPLIT, so nothing will observe these.
1356 //
1357 // TODO: We could strike a different balance; e.g., saving X0
1358 // and not saving GP registers that are less likely to be used.
1359 MOVQ DI, 0(SP)
src/runtime/memclr_amd64.s ASSEMBLY 2 matches view file →
56 CMPB internal∕cpu·X86+const_offsetX86HasAVX2(SB), $1
57 JE loop_preheader_avx2
58 // TODO: for really big clears, use MOVNTDQ, even without AVX2.
59
60loop:
· · ·
86 // For smaller sizes MOVNTDQ may be faster or slower depending on hardware.
87 // For larger sizes it is always faster, even on dual Xeons with 30M cache.
88 // TODO take into account actual LLC size. E. g. glibc uses LLC size/2.
89 CMPQ BX, $0x2000000
90 JAE loop_preheader_avx2_huge
src/runtime/sys_linux_ppc64x.s ASSEMBLY 2 matches view file →
465
466 // R3,R4,R5 already hold the arguments. Forward them on.
467 // TODO: Indirectly call runtime.sigtrampgo to avoid the linker's static NOSPLIT stack
468 // overflow detection. It thinks this might be called on a small Go stack, but this is only
469 // called from a larger pthread or sigaltstack stack. Can the checker be improved to not
· · ·
685 MOVD R3, m_procid(R7)
686
687 // TODO: setup TLS.
688
689 // In child, set up new stack
src/runtime/asm_ppc64x.s ASSEMBLY 2 matches view file →
641 MOVD R15, asmcgocallSaveOffset(R1)
642
643 MOVD R0, 0(R1) // clear back chain pointer (TODO can we give it real back trace information?)
644
645 // This is a "global call", so put the global entry point in r12
· · ·
718 MOVD R7, 0(R1) // Save frame pointer to allow manual backtrace with gdb
719#else
720 MOVD R0, 0(R1) // clear back chain pointer (TODO can we give it real back trace information?)
721#endif
722 // This is a "global call", so put the global entry point in r12
src/cmd/asm/internal/asm/testdata/amd64error.s ASSEMBLY 6 matches · showing 5 view file →
25 MOVL (AX)(Y0*1), AX // ERROR "invalid instruction"
26 // VSIB/VM is invalid without vector index.
27 // TODO(quasilyte): improve error message (#21860).
28 // "invalid VSIB address (missing vector index)"
29 VPGATHERQQ Y2, (BP), Y1 // ERROR "invalid instruction"
· · ·
86 VADDSUBPS X0, X20, X2 // ERROR "invalid instruction"
87 // Use of K0 for write mask (Yknot0).
88 // TODO(quasilyte): improve error message (#21860).
89 // "K0 can't be used for write mask"
90 VADDPD X0, X1, K0, X2 // ERROR "invalid instruction"
· · ·
92 VADDPD Z0, Z1, K0, Z2 // ERROR "invalid instruction"
93 // VEX-encoded VSIB can't use High-16 registers as index (unlike EVEX).
94 // TODO(quasilyte): improve error message (#21860).
95 VPGATHERQQ X2, (BP)(X20*2), X3 // ERROR "invalid instruction"
96 VPGATHERQQ Y2, (BP)(Y20*2), Y3 // ERROR "invalid instruction"
· · ·
97 // YzrMulti4 expects exactly 4 registers referenced by REG_LIST.
98 // TODO(quasilyte): improve error message (#21860).
99 V4FMADDPS (AX), [Z0-Z4], K1, Z7 // ERROR "invalid instruction"
100 V4FMADDPS (AX), [Z0-Z0], K1, Z7 // ERROR "invalid instruction"
· · ·
101 // Invalid ranges in REG_LIST (low > high).
102 // TODO(quasilyte): improve error message (#21860).
103 V4FMADDPS (AX), [Z4-Z0], K1, Z7 // ERROR "invalid instruction"
104 V4FMADDPS (AX), [Z1-Z0], K1, Z7 // ERROR "invalid instruction"
+ 1 more matches in this file
src/runtime/sys_freebsd_arm.s ASSEMBLY 2 matches view file →
403 RET
404
405// TODO: this is only valid for ARMv7+
406TEXT ·publicationBarrier(SB),NOSPLIT|NOFRAME,$0-0
407 B runtime·armPublicationBarrier(SB)
· · ·
408
409// TODO(minux): this only supports ARMv6K+.
410TEXT runtime·read_tls_fallback(SB),NOSPLIT|NOFRAME,$0
411 WORD $0xee1d0f70 // mrc p15, 0, r0, c13, c0, 3
src/cmd/asm/internal/asm/testdata/amd64.s ASSEMBLY 4 matches view file →
55 JMP *(R12) // JMP (R12)
56 JCS 2(PC)
57// JMP *(R12*4) // TODO: This line is silently dropped on the floor!
58 JCS 2(PC)
59 JMP *(R12)(R13*4) // JMP (R12)(R13*4)
· · ·
63 JMP *(SP) // JMP (SP)
64 JCS 2(PC)
65// JMP *(AX*4) // TODO: This line is silently dropped on the floor!
66 JCS 2(PC)
67 JMP *(AX)(AX*4) // JMP (AX)(AX*4)
· · ·
71 JMP (R12)
72 JCS 2(PC)
73// JMP (R12*4) // TODO: This line is silently dropped on the floor!
74 JCS 2(PC)
75 JMP (R12)(R13*4)
· · ·
79 JMP (SP)
80 JCS 2(PC)
81// JMP (AX*4) // TODO: This line is silently dropped on the floor!
82 JCS 2(PC)
83 JMP (AX)(AX*4)
src/runtime/sys_linux_amd64.s ASSEMBLY 1 matches view file →
232 // The kernel might spill our secrets onto g0
233 // erase our registers here.
234 // TODO(dmo): what is the ABI guarantee here? we use
235 // R14 later, but the function is ABI0
236 CMPL g_secret(R14), $0
src/runtime/sys_linux_mips64x.s ASSEMBLY 1 matches view file →
564 MOVV R2, m_procid(R16)
565
566 // TODO: setup TLS.
567
568 // In child, set up new stack
src/runtime/sys_linux_loong64.s ASSEMBLY 1 matches view file →
619 MOVV R4, m_procid(R23)
620
621 // TODO: setup TLS.
622
623 // In child, set up new stack
src/runtime/sys_linux_mipsx.s ASSEMBLY 1 matches view file →
530 MOVW R17, g
531
532// TODO(mips32): doesn't have runtime·stackcheck(SB)
533
534nog:
src/runtime/sys_aix_ppc64.s ASSEMBLY 1 matches view file →
101// This function must not have any frame as we want to control how
102// every registers are used.
103// TODO(aix): Implement SetCgoTraceback handler.
104TEXT sigtramp<>(SB),NOSPLIT|NOFRAME|TOPFRAME,$0
105 MOVD LR, R0
src/runtime/sys_netbsd_arm.s ASSEMBLY 1 matches view file →
411 RET
412
413// TODO: this is only valid for ARMv7+
414TEXT ·publicationBarrier(SB),NOSPLIT|NOFRAME,$0-0
415 B runtime·armPublicationBarrier(SB)
src/runtime/sys_solaris_amd64.s ASSEMBLY 1 matches view file →
269 CMPQ R13, $0
270 JE noswitch
271 // TODO(aram): do something about the cpu profiler here.
272
273 MOVQ m_g0(R13), R14
src/runtime/sys_windows_amd64.s ASSEMBLY 1 matches view file →
240
241 // Fallback to the TEB arbitrary pointer.
242 // TODO: don't use the arbitrary pointer (see go.dev/issue/59824)
243 MOVQ $TEB_ArbitraryPtr, CX
244 JMP settls
src/runtime/sys_linux_arm64.s ASSEMBLY 1 matches view file →
717 MOVD R0, m_procid(R10)
718
719 // TODO: setup TLS.
720
721 // In child, set up new stack
src/runtime/asm_386.s ASSEMBLY 1 matches view file →
995 MOVL BX, 24(SP)
996retry:
997 // TODO: Consider passing g.m.p in as an argument so they can be shared
998 // across a sequence of write barriers.
999 get_tls(BX)
src/internal/runtime/atomic/sys_nonlinux_arm.s ASSEMBLY 1 matches view file →
7#include "textflag.h"
8
9// TODO(minux): this is only valid for ARMv6+
10// func armcas(ptr *int32, old int32, new int32) bool
11// Atomically:
src/runtime/asm_mips64x.s ASSEMBLY 1 matches view file →
79
80TEXT runtime·breakpoint(SB),NOSPLIT|NOFRAME,$0-0
81 MOVV R0, 2(R0) // TODO: TD
82 RET
83
src/runtime/asm_s390x.s ASSEMBLY 1 matches view file →
555 SUB R2, R5
556 MOVD R5, 160(R15) // save depth in old g stack (can't just save SP, as stack might be copied during a callback)
557 MOVD $0, 0(R15) // clear back chain pointer (TODO can we give it real back trace information?)
558 MOVD R4, R2 // arg in R2
559 BL R3 // can clobber: R0-R5, R14, F0-F3, F5, F7-F15
src/cmd/asm/internal/asm/testdata/386.s ASSEMBLY 3 matches view file →
44 JMP label // JMP 16
45 CALL foo(SB)
46// CALL (AX*4) // TODO: This line is silently dropped on the floor!
47 CALL foo+4(SB)(AX*4)
48 CALL *4(SP) // CALL 4(SP)
· · ·
49 CALL *(AX) // CALL (AX)
50 CALL *(SP) // CALL (SP)
51// CALL *(AX*4) // TODO: This line is silently dropped on the floor!
52 CALL *(AX)(AX*4) // CALL (AX)(AX*4)
53 CALL 4(SP)
· · ·
54 CALL (AX)
55 CALL (SP)
56// CALL (AX*4) // TODO: This line is silently dropped on the floor!
57 JCS 2(PC)
58 JMP (AX)(AX*4)
src/runtime/libfuzzer_amd64.s ASSEMBLY 1 matches view file →
75// but take the return address as an argument and thus don't require the
76// indirection through a trampoline.
77// TODO: Remove the inline assembly trampoline once a PC argument has been added to libfuzzer's int compare hooks.
78TEXT runtime·libfuzzerCallTraceIntCmp(SB), NOSPLIT, $0-32
79 MOVQ fn+0(FP), AX
Search syntax
auth loginboth terms (AND is implicit)
auth OR logineither term
NOT path:vendorexclude matches
"exact phrase"quoted exact match
/func\s+Test/regex
handler~1fuzzy (Levenshtein 1)
file:*_test.gofilename glob
path:pkg/auth/**full path glob
lang:golanguage filter

Search any public repo from your terminal

This page calls POST /api/v1/code_search. Same tool, available over MCP for Claude/Cursor/Copilot.