HSW: Fix a compact assert.
authorYang Rong <rong.r.yang@intel.com>
Thu, 29 May 2014 16:37:30 +0000 (00:37 +0800)
committerZhigang Gong <zhigang.gong@intel.com>
Wed, 4 Jun 2014 02:17:46 +0000 (10:17 +0800)
Also use const static int instead of const int to avoid build error
in some gcc.

Signed-off-by: Yang Rong <rong.r.yang@intel.com>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
backend/src/backend/gen_insn_compact.cpp

index 43852a7..f19c364 100644 (file)
@@ -321,6 +321,8 @@ namespace gbe {
       b.execution_size = GEN_WIDTH_8;
     else if (execWidth == 16)
       b.execution_size = GEN_WIDTH_16;
+    else if (execWidth == 4)
+      b.execution_size = GEN_WIDTH_4;
     else if (execWidth == 1)
       b.execution_size = GEN_WIDTH_1;
     else