GBE: Fix bitcast between long and other type.
authorRuiling Song <ruiling.song@intel.com>
Fri, 30 May 2014 08:22:30 +0000 (16:22 +0800)
committerZhigang Gong <zhigang.gong@intel.com>
Fri, 30 May 2014 09:54:30 +0000 (17:54 +0800)
commit871389f906d6f6d33703851eee7111390c562bc5
tree7c5114317478ea619a1be920d6cf72c52ee30082
parentdc84f4e0aacf80e7b137c39fcf4858de9e191bf4
GBE: Fix bitcast between long and other type.

As we store long low/high 32bits separately, when we do bitcast
like int64 --> int16, the horizontal stride of the int64's low/high
half should be set as 2 instead of 4.

This fix an regression of opencv test:
Imgproc/Threshold.Mat/40, where GetParam() = (16SC1, 0, 0, false)

Signed-off-by: Ruiling Song <ruiling.song@intel.com>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
backend/src/backend/gen_insn_selection.cpp