Contributor: Junyan He <[email protected]>
Signed-off-by: Yan Wang <[email protected]>
---
 backend/src/llvm/llvm_scalarize.cpp | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/backend/src/llvm/llvm_scalarize.cpp 
b/backend/src/llvm/llvm_scalarize.cpp
index 899a696..2cc8179 100644
--- a/backend/src/llvm/llvm_scalarize.cpp
+++ b/backend/src/llvm/llvm_scalarize.cpp
@@ -678,6 +678,11 @@ namespace gbe {
             setAppendPoint(call);
             extractFromVector(call);
             break;
+          case GEN_OCL_PRINTF:
+            for (; CI != CS.arg_end(); ++CI)
+              if ((*CI)->getType()->isVectorTy())
+                *CI = InsertToVector(call, *CI);
+            break;
         }
       }
     }
-- 
2.4.3

_______________________________________________
Beignet mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/beignet

Reply via email to