From 299ae186f1296d02ed645ab5f0889f944e3e63c9 Mon Sep 17 00:00:00 2001 From: Matt Pharr Date: Fri, 18 May 2012 06:13:45 -0700 Subject: [PATCH] Expect support for half and transcendentals from all generic targets --- ispc.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ispc.cpp b/ispc.cpp index 05ca7c07..99155056 100644 --- a/ispc.cpp +++ b/ispc.cpp @@ -238,6 +238,8 @@ Target::GetTarget(const char *arch, const char *cpu, const char *isa, t->vectorWidth = 4; t->maskingIsFree = true; t->maskBitCount = 1; + t->hasHalf = true; + t->hasTranscendentals = true; } else if (!strcasecmp(isa, "generic-8")) { t->isa = Target::GENERIC; @@ -245,6 +247,8 @@ Target::GetTarget(const char *arch, const char *cpu, const char *isa, t->vectorWidth = 8; t->maskingIsFree = true; t->maskBitCount = 1; + t->hasHalf = true; + t->hasTranscendentals = true; } else if (!strcasecmp(isa, "generic-16")) { t->isa = Target::GENERIC;