Added options to clang are -mmadd4 and -mno-madd4, used to enable or disable generation
of madd.fmt and similar instructions respectively, as per GCC.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
This also requires that __mips_no_madd4 is defined when the -mnomadd4 option is in use.
Comment Actions
Changed feature name from madd4 to nomadd4 to reflect the change from the dependency.
Added macro definition when +nomadd4 is present.
Comment Actions
The new define also requires a test in test/Preprocessor/init.c - test that by default the new define isn't present, and in some case, when supplied with the -mno-madd4 that it is present.
LGTM with that change.
Comment Actions
Provided define checks, one when the target feature is present, other when the feature isn't provided at all (default).