]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: fix scattered non-tab indentation in assembly
authorRuss Cox <rsc@golang.org>
Wed, 5 Jun 2019 17:57:47 +0000 (13:57 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 6 Jun 2019 00:12:04 +0000 (00:12 +0000)
Change-Id: I6940a4c747f2da871263afa6a4e3386395d5cf54
Reviewed-on: https://go-review.googlesource.com/c/go/+/180839
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/runtime/asm_386.s
src/runtime/asm_ppc64x.s
src/runtime/asm_s390x.s
src/runtime/memclr_arm64.s
src/runtime/memmove_arm64.s
src/runtime/race_arm64.s
src/runtime/race_ppc64le.s
src/runtime/rt0_linux_mipsx.s
src/runtime/sys_aix_ppc64.s
src/runtime/tls_arm.s

index b98843e73e1599de92ced457d5201ec7c0e42de6..a01841d7968f4c1513a7c723368a3a155926a5d2 100644 (file)
@@ -1333,10 +1333,10 @@ TEXT runtime·goexit(SB),NOSPLIT,$0-0
 // CX (implicitly) and DX, but it does not follow the ABI wrt arguments:
 // instead the pointer to the moduledata is passed in AX.
 TEXT runtime·addmoduledata(SB),NOSPLIT,$0-0
-       MOVL    runtime·lastmoduledatap(SB), DX
-       MOVL    AX, moduledata_next(DX)
-       MOVL    AX, runtime·lastmoduledatap(SB)
-       RET
+       MOVL    runtime·lastmoduledatap(SB), DX
+       MOVL    AX, moduledata_next(DX)
+       MOVL    AX, runtime·lastmoduledatap(SB)
+       RET
 
 TEXT runtime·uint32tofloat64(SB),NOSPLIT,$8-12
        MOVL    a+0(FP), AX
index bb327fe9ccadac1282ab9e6954f1e43a2a0637f8..441042cebe98138b0c428e0a7dab223e4a085a8d 100644 (file)
@@ -211,7 +211,7 @@ TEXT runtime·mcall(SB), NOSPLIT|NOFRAME, $0-8
 TEXT runtime·systemstack_switch(SB), NOSPLIT, $0-0
        // We have several undefs here so that 16 bytes past
        // $runtime·systemstack_switch lies within them whether or not the
-        // instructions that derive r2 from r12 are there.
+       // instructions that derive r2 from r12 are there.
        UNDEF
        UNDEF
        UNDEF
@@ -891,9 +891,9 @@ TEXT runtime·goexit(SB),NOSPLIT|NOFRAME|TOPFRAME,$0-0
 // the goroutine exits. It's implemented in assembly mainly because that's the
 // easiest way to get access to R2.
 TEXT runtime·prepGoExitFrame(SB),NOSPLIT,$0-8
-      MOVD    sp+0(FP), R3
-      MOVD    R2, 24(R3)
-      RET
+       MOVD    sp+0(FP), R3
+       MOVD    R2, 24(R3)
+       RET
 
 TEXT runtime·addmoduledata(SB),NOSPLIT|NOFRAME,$0-0
        ADD     $-8, R1
index 6bab3fd175cbd82f534afaabd0335cb054206deb..ff3caf72adfecef778b85577c3d9669b036cda15 100644 (file)
@@ -782,8 +782,8 @@ TEXT runtime·goexit(SB),NOSPLIT|NOFRAME|TOPFRAME,$0-0
        BYTE $0x07; BYTE $0x00; // 2-byte nop
 
 TEXT ·publicationBarrier(SB),NOSPLIT|NOFRAME,$0-0
-        // Stores are already ordered on s390x, so this is just a
-        // compile barrier.
+       // Stores are already ordered on s390x, so this is just a
+       // compile barrier.
        RET
 
 // This is called from .init_array and follows the platform, not Go, ABI.
index c9cdc4b12a8b07d5518b353683c1582a2c23ed21..a56a6dfb85df8099e3c80bbb457cfce239f330a6 100644 (file)
@@ -113,10 +113,10 @@ try_zva:
        MOVW    block_size<>(SB), R5
        TBNZ    $31, R5, no_zva
        CBNZ    R5, zero_by_line
-        // DCZID_EL0 bit assignments
-        // [63:5] Reserved
-        // [4]    DZP, if bit set DC ZVA instruction is prohibited, else permitted
-        // [3:0]  log2 of the block size in words, eg. if it returns 0x4 then block size is 16 words
+       // DCZID_EL0 bit assignments
+       // [63:5] Reserved
+       // [4]    DZP, if bit set DC ZVA instruction is prohibited, else permitted
+       // [3:0]  log2 of the block size in words, eg. if it returns 0x4 then block size is 16 words
        MRS     DCZID_EL0, R3
        TBZ     $4, R3, init
        // ZVA not available
index dcbead8cf4bfb48e4961b3916b6ec37068a98fbd..ac29f94c7b314e51623627f034940b373ebab11e 100644 (file)
@@ -25,10 +25,10 @@ check:
        // Copying forward proceeds by copying R7/8 words then copying R6 bytes.
        // R3 and R4 are advanced as we copy.
 
-        // (There may be implementations of armv8 where copying by bytes until
-        // at least one of source or dest is word aligned is a worthwhile
-        // optimization, but the on the one tested so far (xgene) it did not
-        // make a significance difference.)
+       // (There may be implementations of armv8 where copying by bytes until
+       // at least one of source or dest is word aligned is a worthwhile
+       // optimization, but the on the one tested so far (xgene) it did not
+       // make a significance difference.)
 
        CBZ     R7, noforwardlarge      // Do we need to do any doubleword-by-doubleword copying?
 
@@ -111,7 +111,7 @@ nobackwardtail:
        RET
 
 backwardlarge:
-        SUB    R7, R3, R9      // R9 points at the lowest destination byte
+       SUB     R7, R3, R9      // R9 points at the lowest destination byte
 
 backwardlargeloop:
        LDP     -16(R4), (R8, R10)
index 192a847ad854131b999bb04524245eebadb8c002..48c719aa36fdd05f104e1f2b34254007adf27bf1 100644 (file)
@@ -432,7 +432,7 @@ TEXT        runtime·racecallbackthunk(SB), NOSPLIT|NOFRAME, $0
        MOVD    R13, g
        JMP     (LR)
 rest:
-        // Save callee-saved registers (Go code won't respect that).
+       // Save callee-saved registers (Go code won't respect that).
        // 8(RSP) and 16(RSP) are for args passed through racecallback
        SUB     $96, RSP
        MOVD    LR, 0(RSP)
index 8aba786d3f0a6f065cf452a03386278c07c62377..79b8ba2ae86f4717f8dc75cbcab6a40ee8c17926 100644 (file)
@@ -97,9 +97,9 @@ TEXT  runtime·racereadrangepc1(SB), NOSPLIT, $0-24
        MOVD    size+8(FP), R5
        MOVD    pc+16(FP), R6
        ADD     $4, R6          // tsan wants return addr
-        // void __tsan_read_range(ThreadState *thr, void *addr, uintptr size, void *pc);
-        MOVD    $__tsan_read_range(SB), R8
-        BR     racecalladdr<>(SB)
+       // void __tsan_read_range(ThreadState *thr, void *addr, uintptr size, void *pc);
+       MOVD    $__tsan_read_range(SB), R8
+       BR      racecalladdr<>(SB)
 
 TEXT    runtime·RaceReadRange(SB), NOSPLIT, $0-24
        BR      runtime·racereadrange(SB)
@@ -384,8 +384,8 @@ racecallatomic_ignore:
        MOVD    R17, R6 // restore arg list addr
        // Call the atomic function.
        // racecall will call LLVM race code which might clobber r30 (g)
-       MOVD    runtime·tls_g(SB), R10
-        MOVD    0(R13)(R10*1), g
+       MOVD    runtime·tls_g(SB), R10
+       MOVD    0(R13)(R10*1), g
 
        MOVD    g_racectx(g), R3
        MOVD    R8, R4          // pc being called same TODO as above
@@ -516,7 +516,7 @@ rest:
        BL      runtime·racecallback(SB)
        // All registers are clobbered after Go code, reload.
        MOVD    runtime·tls_g(SB), R10
-        MOVD    0(R13)(R10*1), g
+       MOVD    0(R13)(R10*1), g
 
        MOVD    g_m(g), R7
        MOVD    m_curg(R7), g // restore g = m->curg
index 17f6c3b4c88b86850d10bd4301da8ef8d80cfce7..74b8f50b73f12daeb507c77fffae5647295a2fad 100644 (file)
@@ -23,6 +23,6 @@ TEXT _main<>(SB),NOSPLIT|NOFRAME,$0
        JMP     main(SB)
 
 TEXT main(SB),NOSPLIT|NOFRAME,$0
-        // In external linking, libc jumps to main with argc in R4, argv in R5
+       // In external linking, libc jumps to main with argc in R4, argv in R5
        MOVW    $runtime·rt0_go(SB), R1
        JMP     (R1)
index 9561e11d28d9461fff44653d1cfbf78d9b4e3dff..75f41786cd59a75bf8f408c2c4c9d5386c1a00b0 100644 (file)
@@ -59,7 +59,7 @@ TEXT asmsyscall6<>(SB),NOSPLIT,$256
        CMP     R6, R3
        BNE     skiperrno
 
-    // Save errno in libcall
+       // Save errno in libcall
        BL      runtime·load_g(SB)
        MOVD    g_m(g), R4
        MOVD    (m_mOS + mOS_perrno)(R4), R9
index 9b8855e1709517c6abc89904050e72e798d39dcb..350089abc6a617d978dc18134491b7e224e260ce 100644 (file)
@@ -88,7 +88,7 @@ TEXT runtime·_initcgo(SB),NOSPLIT,$4
 #ifdef TLSG_IS_VARIABLE
        MOVW    $runtime·tls_g(SB), R2         // arg 2: &tls_g
 #else
-        MOVW   $0, R2                  // arg 2: not used when using platform tls
+       MOVW    $0, R2                  // arg 2: not used when using platform tls
 #endif
        MOVW    $setg_gcc<>(SB), R1     // arg 1: setg
        MOVW    g, R0                   // arg 0: G