add 64-bit version of "mad_sat"
authorHomer Hsing <homer.xing@intel.com>
Sun, 22 Sep 2013 06:18:01 +0000 (14:18 +0800)
committerZhigang Gong <zhigang.gong@linux.intel.com>
Thu, 26 Sep 2013 08:30:38 +0000 (16:30 +0800)
commit2f5fc02430fa39f6990b0f33b42ae9de8b43b16b
treed7b2bb07fe72609887339552578f2375afdc073d
parent53ad7a9871a6cc0b38364bc03fb3b194dd4602b9
add 64-bit version of "mad_sat"

tested by piglit:
   piglit/framework/../bin/cl-program-tester generated_tests/cl/builtin/int/builtin-long-mad_sat-1.0.generated.cl
   piglit/framework/../bin/cl-program-tester generated_tests/cl/builtin/int/builtin-ulong-mad_sat-1.0.generated.cl

version 2:
   temp flag register is allocated by RA

version 3:
   divide subnr of flag register by typesize

Signed-off-by: Homer Hsing <homer.xing@intel.com>
Reviewed-by: "Song, Ruiling" <ruiling.song@intel.com>
12 files changed:
backend/src/backend/gen_context.cpp
backend/src/backend/gen_context.hpp
backend/src/backend/gen_insn_gen7_schedule_info.hxx
backend/src/backend/gen_insn_selection.cpp
backend/src/backend/gen_insn_selection.hxx
backend/src/ir/context.hpp
backend/src/ir/instruction.cpp
backend/src/ir/instruction.hpp
backend/src/ir/instruction.hxx
backend/src/llvm/llvm_gen_backend.cpp
backend/src/llvm/llvm_gen_ocl_function.hxx
backend/src/ocl_stdlib.tmpl.h