2005-04-16 22:20:36 +00:00
|
|
|
/*
|
2007-09-17 16:11:07 +00:00
|
|
|
* Copyright (C) 2004, 2007 Maciej W. Rozycki
|
2005-04-16 22:20:36 +00:00
|
|
|
*
|
|
|
|
* This file is subject to the terms and conditions of the GNU General Public
|
|
|
|
* License. See the file "COPYING" in the main directory of this archive
|
|
|
|
* for more details.
|
|
|
|
*/
|
|
|
|
#ifndef _ASM_COMPILER_H
|
|
|
|
#define _ASM_COMPILER_H
|
|
|
|
|
|
|
|
#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
|
2008-05-01 14:28:53 +00:00
|
|
|
#define GCC_IMM_ASM() "n"
|
2005-04-16 22:20:36 +00:00
|
|
|
#define GCC_REG_ACCUM "$0"
|
|
|
|
#else
|
2008-05-01 14:28:53 +00:00
|
|
|
#define GCC_IMM_ASM() "rn"
|
2005-04-16 22:20:36 +00:00
|
|
|
#define GCC_REG_ACCUM "accum"
|
|
|
|
#endif
|
|
|
|
|
2014-11-15 22:08:48 +00:00
|
|
|
#ifndef CONFIG_CPU_MICROMIPS
|
|
|
|
#define GCC_OFF12_ASM() "R"
|
|
|
|
#elif __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 9)
|
|
|
|
#define GCC_OFF12_ASM() "ZC"
|
|
|
|
#else
|
|
|
|
#error "microMIPS compilation unsupported with GCC older than 4.9"
|
|
|
|
#endif
|
|
|
|
|
2005-04-16 22:20:36 +00:00
|
|
|
#endif /* _ASM_COMPILER_H */
|