bifrost: Lower x->bool conversions to != 0

Signed-off-by: Chris Forbes <chrisforbes@google.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6079>
This commit is contained in:
Chris Forbes 2020-07-25 20:11:11 -07:00 committed by Marge Bot
parent 8e8baecd6a
commit 0ffefad791
1 changed files with 3 additions and 0 deletions

View File

@ -86,6 +86,9 @@ SPECIAL = ['fexp2', 'flog2', 'fsin', 'fcos']
for op in SPECIAL:
converts += [((op + '@16', a), ('f2f16', (op, ('f2f32', a))))]
converts += [(('f2b32', a), ('fne32', a, 0.0)),
(('i2b32', a), ('ine32', a, 0))]
def main():
parser = argparse.ArgumentParser()
parser.add_argument('-p', '--import-path', required=True)