aboutsummaryrefslogtreecommitdiff
path: root/tests/fp
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@redhat.com>2021-03-03 19:46:44 +0100
committerLaurent Vivier <laurent@vivier.eu>2021-03-09 22:17:06 +0100
commitd5f846813c45515a846e9791ded839690642e90a (patch)
tree29c3c517107790df791aefbb034f6ae398574302 /tests/fp
parentd42304b1ed9f9c4121cd1d49d92d84480f1fef44 (diff)
downloadqemu-d5f846813c45515a846e9791ded839690642e90a.zip
qemu-d5f846813c45515a846e9791ded839690642e90a.tar.gz
qemu-d5f846813c45515a846e9791ded839690642e90a.tar.bz2
tests/fp/fp-test: Replace the word 'blacklist'
Follow the inclusive terminology from the "Conscious Language in your Open Source Projects" guidelines [*] and replace the word "blacklist" appropriately. [*] https://github.com/conscious-lang/conscious-lang-docs/blob/main/faq.md Acked-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Message-Id: <20210303184644.1639691-6-philmd@redhat.com> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'tests/fp')
-rw-r--r--tests/fp/fp-test.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/fp/fp-test.c b/tests/fp/fp-test.c
index 06ffebd..5a4cad8 100644
--- a/tests/fp/fp-test.c
+++ b/tests/fp/fp-test.c
@@ -123,7 +123,7 @@ static void not_implemented(void)
fprintf(stderr, "Not implemented.\n");
}
-static bool blacklisted(unsigned op, int rmode)
+static bool is_allowed(unsigned op, int rmode)
{
/* odd has not been implemented for any 80-bit ops */
if (rmode == softfloat_round_odd) {
@@ -161,10 +161,10 @@ static bool blacklisted(unsigned op, int rmode)
case F32_TO_EXTF80:
case F64_TO_EXTF80:
case F128_TO_EXTF80:
- return true;
+ return false;
}
}
- return false;
+ return true;
}
static void do_testfloat(int op, int rmode, bool exact)
@@ -194,7 +194,7 @@ static void do_testfloat(int op, int rmode, bool exact)
verCases_writeFunctionName(stderr);
fputs("\n", stderr);
- if (blacklisted(op, rmode)) {
+ if (!is_allowed(op, rmode)) {
not_implemented();
return;
}