Power8 inline assembly fixes#1098
Merged
martin-frbg merged 1 commit intoOpenMathLib:developfrom Feb 21, 2017
martin-frbg:amodra-power8
Merged
Power8 inline assembly fixes#1098martin-frbg merged 1 commit intoOpenMathLib:developfrom martin-frbg:amodra-power8
martin-frbg merged 1 commit intoOpenMathLib:developfrom
martin-frbg:amodra-power8
Conversation
Quoting patch author amodra from #1078 Lots of issues here. - The vsx regs weren't listed as clobbered. - Poor choice of vsx regs, which along with the lack of clobbers led to trashing v0..v21 and fr14..fr23. Ideally you'd let gcc choose all temp vsx regs, but asms currently have a limit of 30 i/o parms. - Other regs were clobbered unnecessarily, seemingly in an attempt to clobber inputs, with gcc-7 complaining about the clobber of r2. (Changed inputs should be also listed as outputs or as an i/o.) - "r" constraint used instead of "b" for gprs used in insns where the r0 encoding means zero rather than r0. - There were unused asm inputs too. - All memory was clobbered rather than hooking up memory outputs with proper memory constraints, and that and the lack of proper memory input constraints meant the asms needed to be volatile and their containing function noinline. - Some parameters were being passed unnecessarily via memory. - When a copy of a
tkelman
added a commit
to JuliaLang/julia
that referenced
this pull request
Mar 19, 2017
tkelman
added a commit
to JuliaLang/julia
that referenced
this pull request
May 2, 2017
from OpenMathLib/OpenBLAS#1098 (cherry picked from commit 26beab3) ref #21091
tkelman
added a commit
to JuliaLang/julia
that referenced
this pull request
May 3, 2017
from OpenMathLib/OpenBLAS#1098 (cherry picked from commit 26beab3) ref #21091 fix Makefile.system dependency for release-0.5
This was referenced Jul 16, 2017
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Quoting patch author amodra from #1078
Lots of issues here.
trashing v0..v21 and fr14..fr23. Ideally you'd let gcc choose all
temp vsx regs, but asms currently have a limit of 30 i/o parms.
clobber inputs, with gcc-7 complaining about the clobber of r2.
(Changed inputs should be also listed as outputs or as an i/o.)
r0 encoding means zero rather than r0.
proper memory constraints, and that and the lack of proper memory
input constraints meant the asms needed to be volatile and their
containing function noinline.
the asm was incremented in C and decremented in asm, rather than
using i/o parms, an early clobber constraint, or a temp output reg
copied in the asm. In most cases a small change to assembly could
be made that obviated the need for the extra pointer.
in assembly, instead using scalar code in C.