gen.py (11704:c38fcdaa5fe5) gen.py (11735:4e208a5350b8)
1#! /usr/bin/python
2
3#
4# Copyright (c) 2015 Advanced Micro Devices, Inc.
5# All rights reserved.
6#
7# For use for simulation and test purposes only
8#

--- 672 unchanged lines hidden (view full) ---

681
682# gen('Mul_hi', types=('s32','u32', '??'))
683# gen('Mul24', types=('s32','u32', '??'))
684gen('Rem', arith_int_types, 'src0 - ((src0 / src1) * src1)')
685
686gen('Abs', arith_types, 'std::abs(src0)')
687gen('Neg', arith_types, '-src0')
688
1#! /usr/bin/python
2
3#
4# Copyright (c) 2015 Advanced Micro Devices, Inc.
5# All rights reserved.
6#
7# For use for simulation and test purposes only
8#

--- 672 unchanged lines hidden (view full) ---

681
682# gen('Mul_hi', types=('s32','u32', '??'))
683# gen('Mul24', types=('s32','u32', '??'))
684gen('Rem', arith_int_types, 'src0 - ((src0 / src1) * src1)')
685
686gen('Abs', arith_types, 'std::abs(src0)')
687gen('Neg', arith_types, '-src0')
688
689gen('Mov', bit_types, 'src0')
689gen('Mov', bit_types + arith_types, 'src0')
690gen('Not', bit_types, 'heynot(src0)')
691
692# mad and fma differ only in rounding behavior, which we don't emulate
693# also there's an integer form of mad, but not of fma
694gen('Mad', arith_types, 'src0 * src1 + src2')
695gen('Fma', arith_float_types, 'src0 * src1 + src2')
696
697#native floating point operations

--- 155 unchanged lines hidden ---
690gen('Not', bit_types, 'heynot(src0)')
691
692# mad and fma differ only in rounding behavior, which we don't emulate
693# also there's an integer form of mad, but not of fma
694gen('Mad', arith_types, 'src0 * src1 + src2')
695gen('Fma', arith_float_types, 'src0 * src1 + src2')
696
697#native floating point operations

--- 155 unchanged lines hidden ---