tests: fp_sharing: fix code style

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2017-06-16 22:00:30 -04:00 committed by Kumar Gala
commit b778ec3604
5 changed files with 40 additions and 40 deletions

View file

@ -91,10 +91,10 @@ struct fp_non_volatile_register_set {
#else #else
#error "Architecture must provide the following definitions:\n" #error "Architecture must provide the following definitions:\n"
"\t'struct fp_volatile_registers'\n" "\t'struct fp_volatile_registers'\n"
"\t'struct fp_non_volatile_registers'\n" "\t'struct fp_non_volatile_registers'\n"
"\t'SIZEOF_FP_VOLATILE_REGISTER_SET'\n" "\t'SIZEOF_FP_VOLATILE_REGISTER_SET'\n"
"\t'SIZEOF_FP_NON_VOLATILE_REGISTER_SET'\n" "\t'SIZEOF_FP_NON_VOLATILE_REGISTER_SET'\n"
#endif /* CONFIG_ISA_IA32 */ #endif /* CONFIG_ISA_IA32 */
/* the set of ALL floating point registers */ /* the set of ALL floating point registers */

View file

@ -42,7 +42,7 @@ static inline void _load_all_float_registers(struct fp_register_set *regs)
__asm__ volatile ( __asm__ volatile (
"vldmia %0, {s0-s15};\n\t" "vldmia %0, {s0-s15};\n\t"
"vldmia %1, {s16-s31};\n\t" "vldmia %1, {s16-s31};\n\t"
:: "r" (&regs->fp_volatile), "r" (&regs->fp_non_volatile) : : "r" (&regs->fp_volatile), "r" (&regs->fp_non_volatile)
); );
} }
@ -63,7 +63,7 @@ static inline void _store_all_float_registers(struct fp_register_set *regs)
__asm__ volatile ( __asm__ volatile (
"vstmia %0, {s0-s15};\n\t" "vstmia %0, {s0-s15};\n\t"
"vstmia %1, {s16-s31};\n\t" "vstmia %1, {s16-s31};\n\t"
:: "r" (&regs->fp_volatile), "r" (&regs->fp_non_volatile) : : "r" (&regs->fp_volatile), "r" (&regs->fp_non_volatile)
: "memory" : "memory"
); );
} }

View file

@ -58,7 +58,7 @@ static inline void _load_all_float_registers(struct fp_register_set *regs)
"fldt 188(%0)\n\t;" "fldt 188(%0)\n\t;"
"fldt 198(%0)\n\t;" "fldt 198(%0)\n\t;"
:: "r" (regs) : : "r" (regs)
); );
} }
@ -82,7 +82,7 @@ static inline void _load_all_float_registers(struct fp_register_set *regs)
*/ */
static inline void static inline void
_load_then_store_all_float_registers(struct fp_register_set *regs) _load_then_store_all_float_registers(struct fp_register_set *regs)
{ {
__asm__ volatile ( __asm__ volatile (
"movdqu 0(%0), %%xmm0\n\t;" "movdqu 0(%0), %%xmm0\n\t;"
@ -114,7 +114,7 @@ static inline void
"fstpt 138(%0)\n\t;" "fstpt 138(%0)\n\t;"
"fstpt 128(%0)\n\t;" "fstpt 128(%0)\n\t;"
:: "r" (regs) : : "r" (regs)
); );
} }
@ -152,7 +152,7 @@ static inline void _store_all_float_registers(struct fp_register_set *regs)
"fstpt 138(%0)\n\t;" "fstpt 138(%0)\n\t;"
"fstpt 128(%0)\n\t;" "fstpt 128(%0)\n\t;"
:: "r" (regs) : "memory" : : "r" (regs) : "memory"
); );
} }
#endif /* _FLOAT_REGS_X86_GCC_H */ #endif /* _FLOAT_REGS_X86_GCC_H */

View file

@ -141,7 +141,7 @@ void load_store_low(void)
/* Keep cranking forever, or until an error is detected. */ /* Keep cranking forever, or until an error is detected. */
for (load_store_low_count = 0; ; load_store_low_count++) { for (load_store_low_count = 0;; load_store_low_count++) {
/* /*
* Clear store buffer to erase all traces of any previous * Clear store buffer to erase all traces of any previous