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;" : "=f"(res) : "f"(a)); return res;
}
Differential D29117
SPARC: allow usage of floating-point registers in inline ASM pboettch on Jan 24 2017, 11:45 PM. Authored by
Details Make clang recognize floating point registers in inline assembler This code now works: static inline float fabsf(float a) float res; __asm __volatile__("fabss %1, %0;" : "=f"(res) : "f"(a)); return res; }
Diff Detail Event TimelineComment Actions Hi, Thanks for working on this. Few questions:
Also, please attach patches with full context, it's easier to review. Comment Actions 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? Comment Actions
http://llvm.org/docs/Phabricator.html#requesting-a-review-via-the-web-interface |