[PATCH] D29117: SPARC: allow usage of floating-point registers in inline ASM

2017-03-07 Thread Patrick Boettcher via Phabricator via cfe-commits
pboettch added a comment. On SparcV8 there is no %e register. Regarding soft-float, good question, I'll try. How do I create full-context-patches? Does this mean just more context lines? Like 500 or 1000 lines? https://reviews.llvm.org/D29117

[PATCH] D29117: SPARC: allow usage of floating-point registers in inline ASM

2017-01-25 Thread Patrick Boettcher via Phabricator via cfe-commits
pboettch updated this revision to Diff 85708. pboettch added a comment. Added test-code. https://reviews.llvm.org/D29117 Files: lib/Basic/Targets.cpp test/CodeGen/sparcv8-inline-asm.c Index: test/CodeGen/sparcv8-inline-asm.c

[PATCH] D29117: SPARC: allow usage of floating-point registers in inline ASM

2017-01-24 Thread Patrick Boettcher via Phabricator via cfe-commits
pboettch created this revision. Herald added a subscriber: jyknight. Make clang recognize floating point registers in inline assembler when using the targeting Sparc. This code now works: static inline float fabsf(float a) { float res; __asm __volatile__("fabss %1, %0;"