test1@rnpalmer-laptop:/home/rnpalmer/Debian/builds/stackbuild$ LD_LIBRARY_PATH=/home/test1/lib/beignet valgrind --track-origins=yes ./a.out ==10550== Memcheck, a memory error detector ==10550== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al. ==10550== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info ==10550== Command: ./a.out ==10550== ==10550== Conditional jump or move depends on uninitialised value(s) ==10550== at 0x4C2C038: strlen (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x524E7FD: cl_program_create_from_source (cl_program.c:438) ==10550== by 0x5246639: clCreateProgramWithSource (cl_api.c:842) ==10550== by 0x400F0A: main (opencl_test.c:40) ==10550== Uninitialised value was created by a heap allocation ==10550== at 0x4C28C4F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x400DF2: main (opencl_test.c:29) ==10550== built 0 stringInput.cl:11:11: warning: SKIP is not defined, will define it to 1. Tests may crash on large fields. ==10550== Invalid read of size 1 ==10550== at 0x82D4815: parser_printf_fmt (llvm_printf_parser.cpp:264) ==10550== by 0x82D4815: gbe::PrintfParser::parseOnePrintfInstruction(llvm::CallInst*, gbe::PrintfParser::PrintfParserInfo&, int&) (llvm_printf_parser.cpp:491) ==10550== by 0x82D771E: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:616) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Address 0xaf34d42 is 0 bytes after a block of size 18 alloc'd ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x82D328E: void std::__cxx11::basic_string, std::allocator >::_M_construct(char const*, char const*, std::forward_iterator_tag) [clone .isra.125] (basic_string.tcc:223) ==10550== by 0x82D46EA: _M_construct_aux (basic_string.h:195) ==10550== by 0x82D46EA: _M_construct (basic_string.h:214) ==10550== by 0x82D46EA: basic_string (basic_string.h:448) ==10550== by 0x82D46EA: str (StringRef.h:189) ==10550== by 0x82D46EA: operator std::__cxx11::string (StringRef.h:206) ==10550== by 0x82D46EA: gbe::PrintfParser::parseOnePrintfInstruction(llvm::CallInst*, gbe::PrintfParser::PrintfParserInfo&, int&) (llvm_printf_parser.cpp:487) ==10550== by 0x82D771E: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:616) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Conditional jump or move depends on uninitialised value(s) ==10550== at 0x82D481B: parser_printf_fmt (llvm_printf_parser.cpp:264) ==10550== by 0x82D481B: gbe::PrintfParser::parseOnePrintfInstruction(llvm::CallInst*, gbe::PrintfParser::PrintfParserInfo&, int&) (llvm_printf_parser.cpp:491) ==10550== by 0x82D771E: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:616) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Uninitialised value was created by a stack allocation ==10550== at 0x82D4628: gbe::PrintfParser::parseOnePrintfInstruction(llvm::CallInst*, gbe::PrintfParser::PrintfParserInfo&, int&) (llvm_printf_parser.cpp:471) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x82D603C: doit (Value.h:481) ==10550== by 0x82D603C: doit (Casting.h:96) ==10550== by 0x82D603C: doit (Casting.h:122) ==10550== by 0x82D603C: doit (Casting.h:114) ==10550== by 0x82D603C: isa (Casting.h:134) ==10550== by 0x82D603C: dyn_cast (Casting.h:278) ==10550== by 0x82D603C: CreateMul (IRBuilder.h:678) ==10550== by 0x82D603C: gbe::PrintfParser::generateOnePrintfInstruction(gbe::PrintfParser::PrintfParserInfo&) (llvm_printf_parser.cpp:391) ==10550== by 0x82D782E: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:724) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x913254F: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D607A: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D607A: CreateMul (IRBuilder.h:682) ==10550== by 0x82D607A: gbe::PrintfParser::generateOnePrintfInstruction(gbe::PrintfParser::PrintfParserInfo&) (llvm_printf_parser.cpp:391) ==10550== by 0x82D782E: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:724) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Address 0xa554cd8 is 56 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x85B7394: llvm::Use::set(llvm::Value*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132480: llvm::BinaryOperator::BinaryOperator(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Type*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132586: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D607A: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D607A: CreateMul (IRBuilder.h:682) ==10550== by 0x82D607A: gbe::PrintfParser::generateOnePrintfInstruction(gbe::PrintfParser::PrintfParserInfo&) (llvm_printf_parser.cpp:391) ==10550== by 0x82D782E: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:724) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== Address 0xa554ce0 is 64 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid write of size 8 ==10550== at 0x85B73C6: llvm::Use::set(llvm::Value*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132480: llvm::BinaryOperator::BinaryOperator(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Type*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132586: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D607A: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D607A: CreateMul (IRBuilder.h:682) ==10550== by 0x82D607A: gbe::PrintfParser::generateOnePrintfInstruction(gbe::PrintfParser::PrintfParserInfo&) (llvm_printf_parser.cpp:391) ==10550== by 0x82D782E: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:724) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== Address 0xa554ce0 is 64 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x82D603C: doit (Value.h:481) ==10550== by 0x82D603C: doit (Casting.h:96) ==10550== by 0x82D603C: doit (Casting.h:122) ==10550== by 0x82D603C: doit (Casting.h:114) ==10550== by 0x82D603C: isa (Casting.h:134) ==10550== by 0x82D603C: dyn_cast (Casting.h:278) ==10550== by 0x82D603C: CreateMul (IRBuilder.h:678) ==10550== by 0x82D603C: gbe::PrintfParser::generateOnePrintfInstruction(gbe::PrintfParser::PrintfParserInfo&) (llvm_printf_parser.cpp:391) ==10550== by 0x82D788D: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:724) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x913254F: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D607A: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D607A: CreateMul (IRBuilder.h:682) ==10550== by 0x82D607A: gbe::PrintfParser::generateOnePrintfInstruction(gbe::PrintfParser::PrintfParserInfo&) (llvm_printf_parser.cpp:391) ==10550== by 0x82D788D: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:724) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Address 0xa554cd8 is 56 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x82D603C: doit (Value.h:481) ==10550== by 0x82D603C: doit (Casting.h:96) ==10550== by 0x82D603C: doit (Casting.h:122) ==10550== by 0x82D603C: doit (Casting.h:114) ==10550== by 0x82D603C: isa (Casting.h:134) ==10550== by 0x82D603C: dyn_cast (Casting.h:278) ==10550== by 0x82D603C: CreateMul (IRBuilder.h:678) ==10550== by 0x82D603C: gbe::PrintfParser::generateOnePrintfInstruction(gbe::PrintfParser::PrintfParserInfo&) (llvm_printf_parser.cpp:391) ==10550== by 0x82D78E2: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:724) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x913254F: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D607A: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D607A: CreateMul (IRBuilder.h:682) ==10550== by 0x82D607A: gbe::PrintfParser::generateOnePrintfInstruction(gbe::PrintfParser::PrintfParserInfo&) (llvm_printf_parser.cpp:391) ==10550== by 0x82D78E2: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:724) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Address 0xa554cd8 is 56 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x82D603C: doit (Value.h:481) ==10550== by 0x82D603C: doit (Casting.h:96) ==10550== by 0x82D603C: doit (Casting.h:122) ==10550== by 0x82D603C: doit (Casting.h:114) ==10550== by 0x82D603C: isa (Casting.h:134) ==10550== by 0x82D603C: dyn_cast (Casting.h:278) ==10550== by 0x82D603C: CreateMul (IRBuilder.h:678) ==10550== by 0x82D603C: gbe::PrintfParser::generateOnePrintfInstruction(gbe::PrintfParser::PrintfParserInfo&) (llvm_printf_parser.cpp:391) ==10550== by 0x82D7939: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:724) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x913254F: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D607A: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D607A: CreateMul (IRBuilder.h:682) ==10550== by 0x82D607A: gbe::PrintfParser::generateOnePrintfInstruction(gbe::PrintfParser::PrintfParserInfo&) (llvm_printf_parser.cpp:391) ==10550== by 0x82D7939: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:724) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Address 0xa554cd8 is 56 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x82D6ACF: doit (Value.h:481) ==10550== by 0x82D6ACF: doit (Casting.h:96) ==10550== by 0x82D6ACF: doit (Casting.h:122) ==10550== by 0x82D6ACF: doit (Casting.h:114) ==10550== by 0x82D6ACF: isa (Casting.h:134) ==10550== by 0x82D6ACF: dyn_cast (Casting.h:278) ==10550== by 0x82D6ACF: CreateMul (IRBuilder.h:678) ==10550== by 0x82D6ACF: gbe::PrintfParser::generateOnePrintfInstruction(gbe::PrintfParser::PrintfParserInfo&) (llvm_printf_parser.cpp:441) ==10550== by 0x82D7939: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:724) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x913254F: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D6B0D: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D6B0D: CreateMul (IRBuilder.h:682) ==10550== by 0x82D6B0D: gbe::PrintfParser::generateOnePrintfInstruction(gbe::PrintfParser::PrintfParserInfo&) (llvm_printf_parser.cpp:441) ==10550== by 0x82D7939: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:724) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Address 0xa554cd8 is 56 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x85B7394: llvm::Use::set(llvm::Value*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132480: llvm::BinaryOperator::BinaryOperator(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Type*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132586: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D6B0D: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D6B0D: CreateMul (IRBuilder.h:682) ==10550== by 0x82D6B0D: gbe::PrintfParser::generateOnePrintfInstruction(gbe::PrintfParser::PrintfParserInfo&) (llvm_printf_parser.cpp:441) ==10550== by 0x82D7939: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:724) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== Address 0xa554ce0 is 64 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid write of size 8 ==10550== at 0x85B73C6: llvm::Use::set(llvm::Value*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132480: llvm::BinaryOperator::BinaryOperator(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Type*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132586: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D6B0D: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D6B0D: CreateMul (IRBuilder.h:682) ==10550== by 0x82D6B0D: gbe::PrintfParser::generateOnePrintfInstruction(gbe::PrintfParser::PrintfParserInfo&) (llvm_printf_parser.cpp:441) ==10550== by 0x82D7939: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:724) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== Address 0xa554ce0 is 64 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x82D6D91: doit (Value.h:481) ==10550== by 0x82D6D91: doit (Casting.h:96) ==10550== by 0x82D6D91: doit (Casting.h:122) ==10550== by 0x82D6D91: doit (Casting.h:114) ==10550== by 0x82D6D91: isa (Casting.h:134) ==10550== by 0x82D6D91: dyn_cast (Casting.h:278) ==10550== by 0x82D6D91: CreateMul (IRBuilder.h:678) ==10550== by 0x82D6D91: gbe::PrintfParser::generateOnePrintfInstruction(gbe::PrintfParser::PrintfParserInfo&) (llvm_printf_parser.cpp:448) ==10550== by 0x82D7939: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:724) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x913254F: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D6DCC: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D6DCC: CreateMul (IRBuilder.h:682) ==10550== by 0x82D6DCC: gbe::PrintfParser::generateOnePrintfInstruction(gbe::PrintfParser::PrintfParserInfo&) (llvm_printf_parser.cpp:448) ==10550== by 0x82D7939: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:724) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Address 0xa554cd8 is 56 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x85B7394: llvm::Use::set(llvm::Value*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132480: llvm::BinaryOperator::BinaryOperator(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Type*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132586: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D6DCC: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D6DCC: CreateMul (IRBuilder.h:682) ==10550== by 0x82D6DCC: gbe::PrintfParser::generateOnePrintfInstruction(gbe::PrintfParser::PrintfParserInfo&) (llvm_printf_parser.cpp:448) ==10550== by 0x82D7939: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:724) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== Address 0xa554ce0 is 64 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid write of size 8 ==10550== at 0x85B73C6: llvm::Use::set(llvm::Value*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132480: llvm::BinaryOperator::BinaryOperator(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Type*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132586: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D6DCC: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D6DCC: CreateMul (IRBuilder.h:682) ==10550== by 0x82D6DCC: gbe::PrintfParser::generateOnePrintfInstruction(gbe::PrintfParser::PrintfParserInfo&) (llvm_printf_parser.cpp:448) ==10550== by 0x82D7939: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:724) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== Address 0xa554ce0 is 64 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x82D6ACF: doit (Value.h:481) ==10550== by 0x82D6ACF: doit (Casting.h:96) ==10550== by 0x82D6ACF: doit (Casting.h:122) ==10550== by 0x82D6ACF: doit (Casting.h:114) ==10550== by 0x82D6ACF: isa (Casting.h:134) ==10550== by 0x82D6ACF: dyn_cast (Casting.h:278) ==10550== by 0x82D6ACF: CreateMul (IRBuilder.h:678) ==10550== by 0x82D6ACF: gbe::PrintfParser::generateOnePrintfInstruction(gbe::PrintfParser::PrintfParserInfo&) (llvm_printf_parser.cpp:441) ==10550== by 0x82D78E2: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:724) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x913254F: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D6B0D: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D6B0D: CreateMul (IRBuilder.h:682) ==10550== by 0x82D6B0D: gbe::PrintfParser::generateOnePrintfInstruction(gbe::PrintfParser::PrintfParserInfo&) (llvm_printf_parser.cpp:441) ==10550== by 0x82D78E2: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:724) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Address 0xa554cd8 is 56 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x82D6D91: doit (Value.h:481) ==10550== by 0x82D6D91: doit (Casting.h:96) ==10550== by 0x82D6D91: doit (Casting.h:122) ==10550== by 0x82D6D91: doit (Casting.h:114) ==10550== by 0x82D6D91: isa (Casting.h:134) ==10550== by 0x82D6D91: dyn_cast (Casting.h:278) ==10550== by 0x82D6D91: CreateMul (IRBuilder.h:678) ==10550== by 0x82D6D91: gbe::PrintfParser::generateOnePrintfInstruction(gbe::PrintfParser::PrintfParserInfo&) (llvm_printf_parser.cpp:448) ==10550== by 0x82D78E2: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:724) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x913254F: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D6DCC: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D6DCC: CreateMul (IRBuilder.h:682) ==10550== by 0x82D6DCC: gbe::PrintfParser::generateOnePrintfInstruction(gbe::PrintfParser::PrintfParserInfo&) (llvm_printf_parser.cpp:448) ==10550== by 0x82D78E2: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:724) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Address 0xa554cd8 is 56 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x82DB721: getOperand (User.h:92) ==10550== by 0x82DB721: expandInstruction(llvm::Instruction*) [clone .constprop.102] (ExpandConstantExpr.cpp:160) ==10550== by 0x82DB847: (anonymous namespace)::ExpandConstantExpr::runOnFunction(llvm::Function&) (ExpandConstantExpr.cpp:185) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x82CABEF: isValid (llvm_scalarize.cpp:510) ==10550== by 0x82CABEF: gbe::Scalarize::scalarize(llvm::Instruction*) (llvm_scalarize.cpp:522) ==10550== by 0x82CB153: gbe::Scalarize::runOnFunction(llvm::Function&) (llvm_scalarize.cpp:840) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Address 0xa554cd8 is 56 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x82F646A: shouldConvert (ExpandLargeIntegers.cpp:177) ==10550== by 0x82F646A: (anonymous namespace)::ExpandLargeIntegers::runOnFunction(llvm::Function&) (ExpandLargeIntegers.cpp:801) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Address 0xa554cd8 is 56 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x8E67976: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x8E679D2: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x8E6842C: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x8E5E750: llvm::InstCombiner::SimplifyAssociativeOrCommutative(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EB14AB: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x91328D0: llvm::BinaryOperator::isNeg(llvm::Value const*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E5EC27: llvm::InstCombiner::SimplifyAssociativeOrCommutative(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EB14AB: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x9132900: llvm::BinaryOperator::isFNeg(llvm::Value const*, bool) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E5EC39: llvm::InstCombiner::SimplifyAssociativeOrCommutative(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EB14AB: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x9132950: llvm::BinaryOperator::isNot(llvm::Value const*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E5EC4F: llvm::InstCombiner::SimplifyAssociativeOrCommutative(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EB14AB: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x8E5E7A4: llvm::InstCombiner::SimplifyAssociativeOrCommutative(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EB14AB: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x8E5E7DF: llvm::InstCombiner::SimplifyAssociativeOrCommutative(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EB14AB: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x8E5E828: llvm::InstCombiner::SimplifyAssociativeOrCommutative(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EB14AB: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== Address 0xa554ca0 is 0 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x8E5E833: llvm::InstCombiner::SimplifyAssociativeOrCommutative(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EB14AB: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== Address 0xa554cb8 is 24 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x8E5E8D9: llvm::InstCombiner::SimplifyAssociativeOrCommutative(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EB14AB: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x8E5EA84: llvm::InstCombiner::SimplifyAssociativeOrCommutative(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EB14AB: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== Address 0xa554ca0 is 0 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x8E5EA95: llvm::InstCombiner::SimplifyAssociativeOrCommutative(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EB14AB: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== Address 0xa554cb8 is 24 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x8FA7A56: SimplifyMulInst(llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.362] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA7E4E: llvm::SimplifyMulInst(llvm::Value*, llvm::Value*, llvm::DataLayout const*, llvm::TargetLibraryInfo const*, llvm::DominatorTree const*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EB1503: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x8FA7A99: SimplifyMulInst(llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.362] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA7E4E: llvm::SimplifyMulInst(llvm::Value*, llvm::Value*, llvm::DataLayout const*, llvm::TargetLibraryInfo const*, llvm::DominatorTree const*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EB1503: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x8FA7D50: SimplifyMulInst(llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.362] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA7E4E: llvm::SimplifyMulInst(llvm::Value*, llvm::Value*, llvm::DataLayout const*, llvm::TargetLibraryInfo const*, llvm::DominatorTree const*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EB1503: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== Address 0xa554cd8 is 56 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x8FA7003: SimplifyAssociativeBinOp(unsigned int, llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.348] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA7B05: SimplifyMulInst(llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.362] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA7E4E: llvm::SimplifyMulInst(llvm::Value*, llvm::Value*, llvm::DataLayout const*, llvm::TargetLibraryInfo const*, llvm::DominatorTree const*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EB1503: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x8FA701B: SimplifyAssociativeBinOp(unsigned int, llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.348] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA7B05: SimplifyMulInst(llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.362] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA7E4E: llvm::SimplifyMulInst(llvm::Value*, llvm::Value*, llvm::DataLayout const*, llvm::TargetLibraryInfo const*, llvm::DominatorTree const*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EB1503: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x8FA70F1: SimplifyAssociativeBinOp(unsigned int, llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.348] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA7B05: SimplifyMulInst(llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.362] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA7E4E: llvm::SimplifyMulInst(llvm::Value*, llvm::Value*, llvm::DataLayout const*, llvm::TargetLibraryInfo const*, llvm::DominatorTree const*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EB1503: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== Address 0xa554cb8 is 24 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x8FA70F5: SimplifyAssociativeBinOp(unsigned int, llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.348] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA7B05: SimplifyMulInst(llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.362] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA7E4E: llvm::SimplifyMulInst(llvm::Value*, llvm::Value*, llvm::DataLayout const*, llvm::TargetLibraryInfo const*, llvm::DominatorTree const*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EB1503: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== Address 0xa554ca0 is 0 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x8FA718C: SimplifyAssociativeBinOp(unsigned int, llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.348] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA7B05: SimplifyMulInst(llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.362] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA7E4E: llvm::SimplifyMulInst(llvm::Value*, llvm::Value*, llvm::DataLayout const*, llvm::TargetLibraryInfo const*, llvm::DominatorTree const*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EB1503: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x8FA7208: SimplifyAssociativeBinOp(unsigned int, llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.348] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA7B05: SimplifyMulInst(llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.362] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA7E4E: llvm::SimplifyMulInst(llvm::Value*, llvm::Value*, llvm::DataLayout const*, llvm::TargetLibraryInfo const*, llvm::DominatorTree const*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EB1503: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== Address 0xa554ca0 is 0 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x8FA7219: SimplifyAssociativeBinOp(unsigned int, llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.348] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA7B05: SimplifyMulInst(llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.362] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA7E4E: llvm::SimplifyMulInst(llvm::Value*, llvm::Value*, llvm::DataLayout const*, llvm::TargetLibraryInfo const*, llvm::DominatorTree const*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EB1503: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== Address 0xa554cb8 is 24 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x8FA5EF6: ExpandBinOp(unsigned int, llvm::Value*, llvm::Value*, unsigned int, Query const&, unsigned int) [clone .constprop.344] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA7B29: SimplifyMulInst(llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.362] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA7E4E: llvm::SimplifyMulInst(llvm::Value*, llvm::Value*, llvm::DataLayout const*, llvm::TargetLibraryInfo const*, llvm::DominatorTree const*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EB1503: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x8FA7B33: SimplifyMulInst(llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.362] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA7E4E: llvm::SimplifyMulInst(llvm::Value*, llvm::Value*, llvm::DataLayout const*, llvm::TargetLibraryInfo const*, llvm::DominatorTree const*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EB1503: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x8FA7B47: SimplifyMulInst(llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.362] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA7E4E: llvm::SimplifyMulInst(llvm::Value*, llvm::Value*, llvm::DataLayout const*, llvm::TargetLibraryInfo const*, llvm::DominatorTree const*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EB1503: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x8E5F387: llvm::InstCombiner::SimplifyUsingDistributiveLaws(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EB1513: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x8E5CA14: getBinOpsForFactorization(llvm::BinaryOperator*, llvm::Value*&, llvm::Value*&) [clone .constprop.492] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E5F3C1: llvm::InstCombiner::SimplifyUsingDistributiveLaws(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EB1513: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x8E5CA1A: getBinOpsForFactorization(llvm::BinaryOperator*, llvm::Value*&, llvm::Value*&) [clone .constprop.492] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E5F3C1: llvm::InstCombiner::SimplifyUsingDistributiveLaws(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EB1513: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== Address 0xa554ca0 is 0 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x8E5CA21: getBinOpsForFactorization(llvm::BinaryOperator*, llvm::Value*&, llvm::Value*&) [clone .constprop.492] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E5F3C1: llvm::InstCombiner::SimplifyUsingDistributiveLaws(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EB1513: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== Address 0xa554cb8 is 24 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x8E5CA28: getBinOpsForFactorization(llvm::BinaryOperator*, llvm::Value*&, llvm::Value*&) [clone .constprop.492] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E5F3C1: llvm::InstCombiner::SimplifyUsingDistributiveLaws(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EB1513: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x8E5CA90: getIdentityValue(llvm::Instruction::BinaryOps, llvm::Value*) [clone .constprop.493] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E5F489: llvm::InstCombiner::SimplifyUsingDistributiveLaws(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EB1513: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x8E5F4D2: llvm::InstCombiner::SimplifyUsingDistributiveLaws(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EB1513: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x8EB1410: bool llvm::PatternMatch::BinaryOp_match, llvm::PatternMatch::bind_ty, 20u>::match(llvm::Constant*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EB1883: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x8EB1F81: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Address 0xa554cd8 is 56 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x913254F: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EB1806: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== Address 0xa554cd8 is 56 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x85B7394: llvm::Use::set(llvm::Value*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132480: llvm::BinaryOperator::BinaryOperator(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Type*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132586: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EB1806: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== Address 0xa554ce0 is 64 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid write of size 8 ==10550== at 0x85B73C6: llvm::Use::set(llvm::Value*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132480: llvm::BinaryOperator::BinaryOperator(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Type*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132586: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EB1806: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== Address 0xa554ce0 is 64 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x8E5DBB4: llvm::InstCombiner::EraseInstFromFunction(llvm::Instruction&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E6852B: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x8F09960: llvm::isInstructionTriviallyDead(llvm::Instruction*, llvm::TargetLibraryInfo const*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68413: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Address 0xa554ce0 is 64 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x8E6841C: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Address 0xa554ce0 is 64 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x8E68425: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Address 0xa554cf8 is 88 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x8E68429: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Address 0xa554ca0 is 0 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x8E68447: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Address 0xa554d10 is 112 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x8E68461: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Address 0xa554d18 is 120 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x8E67610: llvm::InstVisitor::visit(llvm::Instruction&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x8E5E715: llvm::InstCombiner::SimplifyAssociativeOrCommutative(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EB14AB: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x8E5E74C: llvm::InstCombiner::SimplifyAssociativeOrCommutative(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EB14AB: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== Address 0xa554ca0 is 0 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x8E5E76A: llvm::InstCombiner::SimplifyAssociativeOrCommutative(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EB14AB: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== Address 0xa554cb8 is 24 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x8E5E79A: llvm::InstCombiner::SimplifyAssociativeOrCommutative(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EB14AB: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== Address 0xa554ca0 is 0 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x8E5E79E: llvm::InstCombiner::SimplifyAssociativeOrCommutative(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EB14AB: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== Address 0xa554cb8 is 24 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x912BC79: llvm::Instruction::isAssociative() const (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E5E7D5: llvm::InstCombiner::SimplifyAssociativeOrCommutative(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EB14AB: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x8E5E842: llvm::InstCombiner::SimplifyAssociativeOrCommutative(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EB14AB: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== Address 0xa554cb8 is 24 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x912BC79: llvm::Instruction::isAssociative() const (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E5E809: llvm::InstCombiner::SimplifyAssociativeOrCommutative(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EB14AB: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x8E5E8C0: llvm::InstCombiner::SimplifyAssociativeOrCommutative(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EB14AB: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x8E5EA8B: llvm::InstCombiner::SimplifyAssociativeOrCommutative(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EB14AB: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== Address 0xa554cb8 is 24 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x8EB14B5: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Address 0xa554ca0 is 0 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x8EB14B9: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Address 0xa554cb8 is 24 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x8E62790: llvm::InstCombiner::SimplifyVectorOp(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EB14C1: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== Address 0xa554cd8 is 56 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x8E5F356: llvm::InstCombiner::SimplifyUsingDistributiveLaws(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EB1513: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== Address 0xa554ca0 is 0 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x8E5F35A: llvm::InstCombiner::SimplifyUsingDistributiveLaws(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EB1513: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== Address 0xa554cb8 is 24 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x8E5EF8E: tryFactorization(llvm::IRBuilder*, llvm::DataLayout const*, llvm::BinaryOperator&, llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Value*, llvm::Value*) [clone .constprop.489] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E5F40B: llvm::InstCombiner::SimplifyUsingDistributiveLaws(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EB1513: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== Address 0xa554cb8 is 24 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x8E5EFA9: tryFactorization(llvm::IRBuilder*, llvm::DataLayout const*, llvm::BinaryOperator&, llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Value*, llvm::Value*) [clone .constprop.489] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E5F40B: llvm::InstCombiner::SimplifyUsingDistributiveLaws(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EB1513: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== Address 0xa554ca0 is 0 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x8E5EFB2: tryFactorization(llvm::IRBuilder*, llvm::DataLayout const*, llvm::BinaryOperator&, llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Value*, llvm::Value*) [clone .constprop.489] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E5F40B: llvm::InstCombiner::SimplifyUsingDistributiveLaws(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EB1513: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x8E5F4B9: llvm::InstCombiner::SimplifyUsingDistributiveLaws(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EB1513: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x8EB1569: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x8EB1874: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Address 0xa554ca0 is 0 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x8EB1911: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x8EB1BE8: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Address 0xa554ca0 is 0 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x8EB1BF5: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Address 0xa554cb8 is 24 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x8EB1CD7: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Address 0xa554cd8 is 56 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== ==10550== More than 100 errors detected. Subsequent errors ==10550== will still be recorded, but in less detail than before. ==10550== Invalid read of size 8 ==10550== at 0x8EB2154: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Address 0xa554cd8 is 56 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x8FA642B: SimplifyShift(unsigned int, llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.353] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA6861: SimplifyShlInst(llvm::Value*, llvm::Value*, bool, bool, Query const&, unsigned int) [clone .constprop.355] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA6953: llvm::SimplifyShlInst(llvm::Value*, llvm::Value*, bool, bool, llvm::DataLayout const*, llvm::TargetLibraryInfo const*, llvm::DominatorTree const*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ED0CB0: llvm::InstCombiner::visitShl(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x8FA6458: SimplifyShift(unsigned int, llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.353] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA6861: SimplifyShlInst(llvm::Value*, llvm::Value*, bool, bool, Query const&, unsigned int) [clone .constprop.355] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA6953: llvm::SimplifyShlInst(llvm::Value*, llvm::Value*, bool, bool, llvm::DataLayout const*, llvm::TargetLibraryInfo const*, llvm::DominatorTree const*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ED0CB0: llvm::InstCombiner::visitShl(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x8FA6870: SimplifyShlInst(llvm::Value*, llvm::Value*, bool, bool, Query const&, unsigned int) [clone .constprop.355] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA6953: llvm::SimplifyShlInst(llvm::Value*, llvm::Value*, bool, bool, llvm::DataLayout const*, llvm::TargetLibraryInfo const*, llvm::DominatorTree const*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ED0CB0: llvm::InstCombiner::visitShl(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x8ED4458: llvm::InstCombiner::SimplifyDemandedUseBits(llvm::Value*, llvm::APInt, llvm::APInt&, llvm::APInt&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ED9C51: llvm::InstCombiner::SimplifyDemandedInstructionBits(llvm::Instruction&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ECD616: llvm::InstCombiner::commonShiftTransforms(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ED0E1B: llvm::InstCombiner::visitShl(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x8ED2FED: llvm::InstCombiner::SimplifyDemandedUseBits(llvm::Value*, llvm::APInt, llvm::APInt&, llvm::APInt&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EDA631: llvm::InstCombiner::SimplifyDemandedBits(llvm::Use&, llvm::APInt, llvm::APInt&, llvm::APInt&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ED456B: llvm::InstCombiner::SimplifyDemandedUseBits(llvm::Value*, llvm::APInt, llvm::APInt&, llvm::APInt&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ED9C51: llvm::InstCombiner::SimplifyDemandedInstructionBits(llvm::Instruction&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ECD616: llvm::InstCombiner::commonShiftTransforms(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ED0E1B: llvm::InstCombiner::visitShl(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x8ED3005: llvm::InstCombiner::SimplifyDemandedUseBits(llvm::Value*, llvm::APInt, llvm::APInt&, llvm::APInt&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EDA631: llvm::InstCombiner::SimplifyDemandedBits(llvm::Use&, llvm::APInt, llvm::APInt&, llvm::APInt&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ED456B: llvm::InstCombiner::SimplifyDemandedUseBits(llvm::Value*, llvm::APInt, llvm::APInt&, llvm::APInt&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ED9C51: llvm::InstCombiner::SimplifyDemandedInstructionBits(llvm::Instruction&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ECD616: llvm::InstCombiner::commonShiftTransforms(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ED0E1B: llvm::InstCombiner::visitShl(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== Address 0xa554cd8 is 56 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x8ED3168: llvm::InstCombiner::SimplifyDemandedUseBits(llvm::Value*, llvm::APInt, llvm::APInt&, llvm::APInt&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EDA631: llvm::InstCombiner::SimplifyDemandedBits(llvm::Use&, llvm::APInt, llvm::APInt&, llvm::APInt&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ED456B: llvm::InstCombiner::SimplifyDemandedUseBits(llvm::Value*, llvm::APInt, llvm::APInt&, llvm::APInt&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ED9C51: llvm::InstCombiner::SimplifyDemandedInstructionBits(llvm::Instruction&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ECD616: llvm::InstCombiner::commonShiftTransforms(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ED0E1B: llvm::InstCombiner::visitShl(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x8ED33E8: llvm::InstCombiner::SimplifyDemandedUseBits(llvm::Value*, llvm::APInt, llvm::APInt&, llvm::APInt&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EDA631: llvm::InstCombiner::SimplifyDemandedBits(llvm::Use&, llvm::APInt, llvm::APInt&, llvm::APInt&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ED456B: llvm::InstCombiner::SimplifyDemandedUseBits(llvm::Value*, llvm::APInt, llvm::APInt&, llvm::APInt&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ED9C51: llvm::InstCombiner::SimplifyDemandedInstructionBits(llvm::Instruction&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ECD616: llvm::InstCombiner::commonShiftTransforms(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ED0E1B: llvm::InstCombiner::visitShl(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== Address 0xa554ce0 is 64 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x901BACA: llvm::computeKnownBits(llvm::Value*, llvm::APInt&, llvm::APInt&, llvm::DataLayout const*, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ED318D: llvm::InstCombiner::SimplifyDemandedUseBits(llvm::Value*, llvm::APInt, llvm::APInt&, llvm::APInt&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EDA631: llvm::InstCombiner::SimplifyDemandedBits(llvm::Use&, llvm::APInt, llvm::APInt&, llvm::APInt&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ED456B: llvm::InstCombiner::SimplifyDemandedUseBits(llvm::Value*, llvm::APInt, llvm::APInt&, llvm::APInt&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ED9C51: llvm::InstCombiner::SimplifyDemandedInstructionBits(llvm::Instruction&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ECD616: llvm::InstCombiner::commonShiftTransforms(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ED0E1B: llvm::InstCombiner::visitShl(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x901C45D: llvm::computeKnownBits(llvm::Value*, llvm::APInt&, llvm::APInt&, llvm::DataLayout const*, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ED318D: llvm::InstCombiner::SimplifyDemandedUseBits(llvm::Value*, llvm::APInt, llvm::APInt&, llvm::APInt&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EDA631: llvm::InstCombiner::SimplifyDemandedBits(llvm::Use&, llvm::APInt, llvm::APInt&, llvm::APInt&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ED456B: llvm::InstCombiner::SimplifyDemandedUseBits(llvm::Value*, llvm::APInt, llvm::APInt&, llvm::APInt&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ED9C51: llvm::InstCombiner::SimplifyDemandedInstructionBits(llvm::Instruction&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ECD616: llvm::InstCombiner::commonShiftTransforms(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ED0E1B: llvm::InstCombiner::visitShl(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x901C4B1: llvm::computeKnownBits(llvm::Value*, llvm::APInt&, llvm::APInt&, llvm::DataLayout const*, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ED318D: llvm::InstCombiner::SimplifyDemandedUseBits(llvm::Value*, llvm::APInt, llvm::APInt&, llvm::APInt&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EDA631: llvm::InstCombiner::SimplifyDemandedBits(llvm::Use&, llvm::APInt, llvm::APInt&, llvm::APInt&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ED456B: llvm::InstCombiner::SimplifyDemandedUseBits(llvm::Value*, llvm::APInt, llvm::APInt&, llvm::APInt&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ED9C51: llvm::InstCombiner::SimplifyDemandedInstructionBits(llvm::Instruction&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ECD616: llvm::InstCombiner::commonShiftTransforms(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ED0E1B: llvm::InstCombiner::visitShl(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x901D8C3: llvm::computeKnownBits(llvm::Value*, llvm::APInt&, llvm::APInt&, llvm::DataLayout const*, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ED318D: llvm::InstCombiner::SimplifyDemandedUseBits(llvm::Value*, llvm::APInt, llvm::APInt&, llvm::APInt&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EDA631: llvm::InstCombiner::SimplifyDemandedBits(llvm::Use&, llvm::APInt, llvm::APInt&, llvm::APInt&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ED456B: llvm::InstCombiner::SimplifyDemandedUseBits(llvm::Value*, llvm::APInt, llvm::APInt&, llvm::APInt&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ED9C51: llvm::InstCombiner::SimplifyDemandedInstructionBits(llvm::Instruction&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ECD616: llvm::InstCombiner::commonShiftTransforms(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ED0E1B: llvm::InstCombiner::visitShl(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== Address 0xa554cf8 is 88 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x901D8CB: llvm::computeKnownBits(llvm::Value*, llvm::APInt&, llvm::APInt&, llvm::DataLayout const*, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ED318D: llvm::InstCombiner::SimplifyDemandedUseBits(llvm::Value*, llvm::APInt, llvm::APInt&, llvm::APInt&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EDA631: llvm::InstCombiner::SimplifyDemandedBits(llvm::Use&, llvm::APInt, llvm::APInt&, llvm::APInt&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ED456B: llvm::InstCombiner::SimplifyDemandedUseBits(llvm::Value*, llvm::APInt, llvm::APInt&, llvm::APInt&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ED9C51: llvm::InstCombiner::SimplifyDemandedInstructionBits(llvm::Instruction&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ECD616: llvm::InstCombiner::commonShiftTransforms(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ED0E1B: llvm::InstCombiner::visitShl(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== Address 0xa554cf1 is 81 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x901D8D3: llvm::computeKnownBits(llvm::Value*, llvm::APInt&, llvm::APInt&, llvm::DataLayout const*, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ED318D: llvm::InstCombiner::SimplifyDemandedUseBits(llvm::Value*, llvm::APInt, llvm::APInt&, llvm::APInt&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EDA631: llvm::InstCombiner::SimplifyDemandedBits(llvm::Use&, llvm::APInt, llvm::APInt&, llvm::APInt&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ED456B: llvm::InstCombiner::SimplifyDemandedUseBits(llvm::Value*, llvm::APInt, llvm::APInt&, llvm::APInt&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ED9C51: llvm::InstCombiner::SimplifyDemandedInstructionBits(llvm::Instruction&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ECD616: llvm::InstCombiner::commonShiftTransforms(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ED0E1B: llvm::InstCombiner::visitShl(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== Address 0xa554cb8 is 24 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x901D8E9: llvm::computeKnownBits(llvm::Value*, llvm::APInt&, llvm::APInt&, llvm::DataLayout const*, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ED318D: llvm::InstCombiner::SimplifyDemandedUseBits(llvm::Value*, llvm::APInt, llvm::APInt&, llvm::APInt&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EDA631: llvm::InstCombiner::SimplifyDemandedBits(llvm::Use&, llvm::APInt, llvm::APInt&, llvm::APInt&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ED456B: llvm::InstCombiner::SimplifyDemandedUseBits(llvm::Value*, llvm::APInt, llvm::APInt&, llvm::APInt&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ED9C51: llvm::InstCombiner::SimplifyDemandedInstructionBits(llvm::Instruction&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ECD616: llvm::InstCombiner::commonShiftTransforms(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ED0E1B: llvm::InstCombiner::visitShl(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== Address 0xa554ca0 is 0 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x8ECD61B: llvm::InstCombiner::commonShiftTransforms(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ED0E1B: llvm::InstCombiner::visitShl(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x8EC8320: CanEvaluateShifted(llvm::Value*, unsigned int, bool, llvm::InstCombiner&) [clone .constprop.159] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ECB28E: llvm::InstCombiner::FoldShiftByConstant(llvm::Value*, llvm::Constant*, llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ECD64F: llvm::InstCombiner::commonShiftTransforms(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ED0E1B: llvm::InstCombiner::visitShl(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x8EC833C: CanEvaluateShifted(llvm::Value*, unsigned int, bool, llvm::InstCombiner&) [clone .constprop.159] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ECB28E: llvm::InstCombiner::FoldShiftByConstant(llvm::Value*, llvm::Constant*, llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ECD64F: llvm::InstCombiner::commonShiftTransforms(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ED0E1B: llvm::InstCombiner::visitShl(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== Address 0xa554ce0 is 64 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x8ECB460: llvm::InstCombiner::FoldShiftByConstant(llvm::Value*, llvm::Constant*, llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ECD64F: llvm::InstCombiner::commonShiftTransforms(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ED0E1B: llvm::InstCombiner::visitShl(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== Address 0xa554cd8 is 56 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x8ECB46C: llvm::InstCombiner::FoldShiftByConstant(llvm::Value*, llvm::Constant*, llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ECD64F: llvm::InstCombiner::commonShiftTransforms(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ED0E1B: llvm::InstCombiner::visitShl(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x8ECBC59: llvm::InstCombiner::FoldShiftByConstant(llvm::Value*, llvm::Constant*, llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ECD64F: llvm::InstCombiner::commonShiftTransforms(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ED0E1B: llvm::InstCombiner::visitShl(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== Address 0xa554cb8 is 24 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x8ECB96C: llvm::InstCombiner::FoldShiftByConstant(llvm::Value*, llvm::Constant*, llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ECD64F: llvm::InstCombiner::commonShiftTransforms(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ED0E1B: llvm::InstCombiner::visitShl(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== Address 0xa554ce0 is 64 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x901BACA: llvm::computeKnownBits(llvm::Value*, llvm::APInt&, llvm::APInt&, llvm::DataLayout const*, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x901E668: llvm::MaskedValueIsZero(llvm::Value*, llvm::APInt const&, llvm::DataLayout const*, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ED16BE: llvm::InstCombiner::visitShl(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x901C45D: llvm::computeKnownBits(llvm::Value*, llvm::APInt&, llvm::APInt&, llvm::DataLayout const*, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x901E668: llvm::MaskedValueIsZero(llvm::Value*, llvm::APInt const&, llvm::DataLayout const*, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ED16BE: llvm::InstCombiner::visitShl(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x901C4B1: llvm::computeKnownBits(llvm::Value*, llvm::APInt&, llvm::APInt&, llvm::DataLayout const*, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x901E668: llvm::MaskedValueIsZero(llvm::Value*, llvm::APInt const&, llvm::DataLayout const*, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ED16BE: llvm::InstCombiner::visitShl(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x901D8C3: llvm::computeKnownBits(llvm::Value*, llvm::APInt&, llvm::APInt&, llvm::DataLayout const*, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x901E668: llvm::MaskedValueIsZero(llvm::Value*, llvm::APInt const&, llvm::DataLayout const*, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ED16BE: llvm::InstCombiner::visitShl(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== Address 0xa554cf8 is 88 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x901D8CB: llvm::computeKnownBits(llvm::Value*, llvm::APInt&, llvm::APInt&, llvm::DataLayout const*, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x901E668: llvm::MaskedValueIsZero(llvm::Value*, llvm::APInt const&, llvm::DataLayout const*, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ED16BE: llvm::InstCombiner::visitShl(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== Address 0xa554cf1 is 81 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x901D8D3: llvm::computeKnownBits(llvm::Value*, llvm::APInt&, llvm::APInt&, llvm::DataLayout const*, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x901E668: llvm::MaskedValueIsZero(llvm::Value*, llvm::APInt const&, llvm::DataLayout const*, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ED16BE: llvm::InstCombiner::visitShl(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== Address 0xa554cb8 is 24 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x901D8E9: llvm::computeKnownBits(llvm::Value*, llvm::APInt&, llvm::APInt&, llvm::DataLayout const*, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x901E668: llvm::MaskedValueIsZero(llvm::Value*, llvm::APInt const&, llvm::DataLayout const*, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ED16BE: llvm::InstCombiner::visitShl(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== Address 0xa554ca0 is 0 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x901E80A: llvm::ComputeNumSignBits(llvm::Value*, llvm::DataLayout const*, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ED1537: llvm::InstCombiner::visitShl(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== Address 0xa554cd8 is 56 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x901E851: llvm::ComputeNumSignBits(llvm::Value*, llvm::DataLayout const*, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ED1537: llvm::InstCombiner::visitShl(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x901BACA: llvm::computeKnownBits(llvm::Value*, llvm::APInt&, llvm::APInt&, llvm::DataLayout const*, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x901E904: llvm::ComputeNumSignBits(llvm::Value*, llvm::DataLayout const*, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ED1537: llvm::InstCombiner::visitShl(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x901C45D: llvm::computeKnownBits(llvm::Value*, llvm::APInt&, llvm::APInt&, llvm::DataLayout const*, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x901E904: llvm::ComputeNumSignBits(llvm::Value*, llvm::DataLayout const*, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ED1537: llvm::InstCombiner::visitShl(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x901C4B1: llvm::computeKnownBits(llvm::Value*, llvm::APInt&, llvm::APInt&, llvm::DataLayout const*, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x901E904: llvm::ComputeNumSignBits(llvm::Value*, llvm::DataLayout const*, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ED1537: llvm::InstCombiner::visitShl(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x901D8C3: llvm::computeKnownBits(llvm::Value*, llvm::APInt&, llvm::APInt&, llvm::DataLayout const*, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x901E904: llvm::ComputeNumSignBits(llvm::Value*, llvm::DataLayout const*, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ED1537: llvm::InstCombiner::visitShl(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== Address 0xa554cf8 is 88 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x901D8CB: llvm::computeKnownBits(llvm::Value*, llvm::APInt&, llvm::APInt&, llvm::DataLayout const*, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x901E904: llvm::ComputeNumSignBits(llvm::Value*, llvm::DataLayout const*, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ED1537: llvm::InstCombiner::visitShl(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== Address 0xa554cf1 is 81 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x901D8D3: llvm::computeKnownBits(llvm::Value*, llvm::APInt&, llvm::APInt&, llvm::DataLayout const*, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x901E904: llvm::ComputeNumSignBits(llvm::Value*, llvm::DataLayout const*, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ED1537: llvm::InstCombiner::visitShl(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== Address 0xa554cb8 is 24 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x901D8E9: llvm::computeKnownBits(llvm::Value*, llvm::APInt&, llvm::APInt&, llvm::DataLayout const*, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x901E904: llvm::ComputeNumSignBits(llvm::Value*, llvm::DataLayout const*, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ED1537: llvm::InstCombiner::visitShl(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== Address 0xa554ca0 is 0 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x8ED0E46: llvm::InstCombiner::visitShl(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Address 0xa554ce0 is 64 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x901BACA: llvm::computeKnownBits(llvm::Value*, llvm::APInt&, llvm::APInt&, llvm::DataLayout const*, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x901DA85: llvm::computeKnownBits(llvm::Value*, llvm::APInt&, llvm::APInt&, llvm::DataLayout const*, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E6FFBE: llvm::InstCombiner::visitAdd(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x901C45D: llvm::computeKnownBits(llvm::Value*, llvm::APInt&, llvm::APInt&, llvm::DataLayout const*, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x901DA85: llvm::computeKnownBits(llvm::Value*, llvm::APInt&, llvm::APInt&, llvm::DataLayout const*, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E6FFBE: llvm::InstCombiner::visitAdd(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x901C4B1: llvm::computeKnownBits(llvm::Value*, llvm::APInt&, llvm::APInt&, llvm::DataLayout const*, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x901DA85: llvm::computeKnownBits(llvm::Value*, llvm::APInt&, llvm::APInt&, llvm::DataLayout const*, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E6FFBE: llvm::InstCombiner::visitAdd(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x901D8C3: llvm::computeKnownBits(llvm::Value*, llvm::APInt&, llvm::APInt&, llvm::DataLayout const*, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x901DA85: llvm::computeKnownBits(llvm::Value*, llvm::APInt&, llvm::APInt&, llvm::DataLayout const*, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E6FFBE: llvm::InstCombiner::visitAdd(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== Address 0xa554cf8 is 88 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x901D8CB: llvm::computeKnownBits(llvm::Value*, llvm::APInt&, llvm::APInt&, llvm::DataLayout const*, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x901DA85: llvm::computeKnownBits(llvm::Value*, llvm::APInt&, llvm::APInt&, llvm::DataLayout const*, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E6FFBE: llvm::InstCombiner::visitAdd(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== Address 0xa554cf1 is 81 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x901D8D3: llvm::computeKnownBits(llvm::Value*, llvm::APInt&, llvm::APInt&, llvm::DataLayout const*, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x901DA85: llvm::computeKnownBits(llvm::Value*, llvm::APInt&, llvm::APInt&, llvm::DataLayout const*, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E6FFBE: llvm::InstCombiner::visitAdd(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== Address 0xa554cb8 is 24 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x901D8E9: llvm::computeKnownBits(llvm::Value*, llvm::APInt&, llvm::APInt&, llvm::DataLayout const*, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x901DA85: llvm::computeKnownBits(llvm::Value*, llvm::APInt&, llvm::APInt&, llvm::DataLayout const*, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E6FFBE: llvm::InstCombiner::visitAdd(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== Address 0xa554ca0 is 0 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x901E80A: llvm::ComputeNumSignBits(llvm::Value*, llvm::DataLayout const*, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x901F0A3: llvm::ComputeNumSignBits(llvm::Value*, llvm::DataLayout const*, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E6BC84: llvm::InstCombiner::WillNotOverflowSignedAdd(llvm::Value*, llvm::Value*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E70A2C: llvm::InstCombiner::visitAdd(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== Address 0xa554cd8 is 56 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x901E851: llvm::ComputeNumSignBits(llvm::Value*, llvm::DataLayout const*, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x901F0A3: llvm::ComputeNumSignBits(llvm::Value*, llvm::DataLayout const*, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E6BC84: llvm::InstCombiner::WillNotOverflowSignedAdd(llvm::Value*, llvm::Value*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E70A2C: llvm::InstCombiner::visitAdd(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x8ED4458: llvm::InstCombiner::SimplifyDemandedUseBits(llvm::Value*, llvm::APInt, llvm::APInt&, llvm::APInt&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EDA631: llvm::InstCombiner::SimplifyDemandedBits(llvm::Use&, llvm::APInt, llvm::APInt&, llvm::APInt&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ED89F2: llvm::InstCombiner::SimplifyDemandedUseBits(llvm::Value*, llvm::APInt, llvm::APInt&, llvm::APInt&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EDA631: llvm::InstCombiner::SimplifyDemandedBits(llvm::Use&, llvm::APInt, llvm::APInt&, llvm::APInt&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ED456B: llvm::InstCombiner::SimplifyDemandedUseBits(llvm::Value*, llvm::APInt, llvm::APInt&, llvm::APInt&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ED9C51: llvm::InstCombiner::SimplifyDemandedInstructionBits(llvm::Instruction&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ECD616: llvm::InstCombiner::commonShiftTransforms(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8ED0E1B: llvm::InstCombiner::visitShl(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x8EB1984: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x8EAF050: bool llvm::PatternMatch::OneUse_match, llvm::PatternMatch::bind_ty, 8u> >::match(llvm::Value*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EB19CA: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== Address 0xa554ce0 is 64 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x91328D0: llvm::BinaryOperator::isNeg(llvm::Value const*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E5CFBB: llvm::InstCombiner::dyn_castNegVal(llvm::Value*) const (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EB15B0: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x8E5CFC0: llvm::InstCombiner::dyn_castNegVal(llvm::Value*) const (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EB15B0: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x8EB1C77: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x8E5CFC0: llvm::InstCombiner::dyn_castNegVal(llvm::Value*) const (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EB1F9C: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x8E96E4C: bool llvm::PatternMatch::BinaryOp_match, llvm::PatternMatch::bind_ty, 20u>::match(llvm::Value*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EB1D1B: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x901BACA: llvm::computeKnownBits(llvm::Value*, llvm::APInt&, llvm::APInt&, llvm::DataLayout const*, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8220917: computeKnownBitsMul(llvm::Value*, llvm::Value*, bool, llvm::APInt&, llvm::APInt&, llvm::APInt&, llvm::APInt&, llvm::DataLayout const*, unsigned int) [clone .constprop.274] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x901D8F8: llvm::computeKnownBits(llvm::Value*, llvm::APInt&, llvm::APInt&, llvm::DataLayout const*, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E6FFBE: llvm::InstCombiner::visitAdd(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x901C45D: llvm::computeKnownBits(llvm::Value*, llvm::APInt&, llvm::APInt&, llvm::DataLayout const*, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8220917: computeKnownBitsMul(llvm::Value*, llvm::Value*, bool, llvm::APInt&, llvm::APInt&, llvm::APInt&, llvm::APInt&, llvm::DataLayout const*, unsigned int) [clone .constprop.274] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x901D8F8: llvm::computeKnownBits(llvm::Value*, llvm::APInt&, llvm::APInt&, llvm::DataLayout const*, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E6FFBE: llvm::InstCombiner::visitAdd(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x901C4B1: llvm::computeKnownBits(llvm::Value*, llvm::APInt&, llvm::APInt&, llvm::DataLayout const*, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8220917: computeKnownBitsMul(llvm::Value*, llvm::Value*, bool, llvm::APInt&, llvm::APInt&, llvm::APInt&, llvm::APInt&, llvm::DataLayout const*, unsigned int) [clone .constprop.274] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x901D8F8: llvm::computeKnownBits(llvm::Value*, llvm::APInt&, llvm::APInt&, llvm::DataLayout const*, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E6FFBE: llvm::InstCombiner::visitAdd(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x901D8C3: llvm::computeKnownBits(llvm::Value*, llvm::APInt&, llvm::APInt&, llvm::DataLayout const*, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8220917: computeKnownBitsMul(llvm::Value*, llvm::Value*, bool, llvm::APInt&, llvm::APInt&, llvm::APInt&, llvm::APInt&, llvm::DataLayout const*, unsigned int) [clone .constprop.274] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x901D8F8: llvm::computeKnownBits(llvm::Value*, llvm::APInt&, llvm::APInt&, llvm::DataLayout const*, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E6FFBE: llvm::InstCombiner::visitAdd(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== Address 0xa554cf8 is 88 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x901D8CB: llvm::computeKnownBits(llvm::Value*, llvm::APInt&, llvm::APInt&, llvm::DataLayout const*, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8220917: computeKnownBitsMul(llvm::Value*, llvm::Value*, bool, llvm::APInt&, llvm::APInt&, llvm::APInt&, llvm::APInt&, llvm::DataLayout const*, unsigned int) [clone .constprop.274] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x901D8F8: llvm::computeKnownBits(llvm::Value*, llvm::APInt&, llvm::APInt&, llvm::DataLayout const*, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E6FFBE: llvm::InstCombiner::visitAdd(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== Address 0xa554cf1 is 81 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x901D8D3: llvm::computeKnownBits(llvm::Value*, llvm::APInt&, llvm::APInt&, llvm::DataLayout const*, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8220917: computeKnownBitsMul(llvm::Value*, llvm::Value*, bool, llvm::APInt&, llvm::APInt&, llvm::APInt&, llvm::APInt&, llvm::DataLayout const*, unsigned int) [clone .constprop.274] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x901D8F8: llvm::computeKnownBits(llvm::Value*, llvm::APInt&, llvm::APInt&, llvm::DataLayout const*, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E6FFBE: llvm::InstCombiner::visitAdd(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== Address 0xa554cb8 is 24 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x901D8E9: llvm::computeKnownBits(llvm::Value*, llvm::APInt&, llvm::APInt&, llvm::DataLayout const*, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8220917: computeKnownBitsMul(llvm::Value*, llvm::Value*, bool, llvm::APInt&, llvm::APInt&, llvm::APInt&, llvm::APInt&, llvm::DataLayout const*, unsigned int) [clone .constprop.274] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x901D8F8: llvm::computeKnownBits(llvm::Value*, llvm::APInt&, llvm::APInt&, llvm::DataLayout const*, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E6FFBE: llvm::InstCombiner::visitAdd(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== Address 0xa554ca0 is 0 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x8FA7A56: SimplifyMulInst(llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.362] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA5CB0: SimplifyBinOp(unsigned int, llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.345] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA7149: SimplifyAssociativeBinOp(unsigned int, llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.348] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA7B05: SimplifyMulInst(llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.362] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA5CB0: SimplifyBinOp(unsigned int, llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.345] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA5FD9: ExpandBinOp(unsigned int, llvm::Value*, llvm::Value*, unsigned int, Query const&, unsigned int) [clone .constprop.344] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA7B29: SimplifyMulInst(llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.362] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA7E4E: llvm::SimplifyMulInst(llvm::Value*, llvm::Value*, llvm::DataLayout const*, llvm::TargetLibraryInfo const*, llvm::DominatorTree const*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EB1503: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x8FA7A99: SimplifyMulInst(llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.362] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA5CB0: SimplifyBinOp(unsigned int, llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.345] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA7149: SimplifyAssociativeBinOp(unsigned int, llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.348] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA7B05: SimplifyMulInst(llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.362] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA5CB0: SimplifyBinOp(unsigned int, llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.345] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA5FD9: ExpandBinOp(unsigned int, llvm::Value*, llvm::Value*, unsigned int, Query const&, unsigned int) [clone .constprop.344] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA7B29: SimplifyMulInst(llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.362] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA7E4E: llvm::SimplifyMulInst(llvm::Value*, llvm::Value*, llvm::DataLayout const*, llvm::TargetLibraryInfo const*, llvm::DominatorTree const*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EB1503: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x8FA7D50: SimplifyMulInst(llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.362] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA5CB0: SimplifyBinOp(unsigned int, llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.345] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA7149: SimplifyAssociativeBinOp(unsigned int, llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.348] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA7B05: SimplifyMulInst(llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.362] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA5CB0: SimplifyBinOp(unsigned int, llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.345] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA5FD9: ExpandBinOp(unsigned int, llvm::Value*, llvm::Value*, unsigned int, Query const&, unsigned int) [clone .constprop.344] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA7B29: SimplifyMulInst(llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.362] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA7E4E: llvm::SimplifyMulInst(llvm::Value*, llvm::Value*, llvm::DataLayout const*, llvm::TargetLibraryInfo const*, llvm::DominatorTree const*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EB1503: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== Address 0xa554cd8 is 56 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x8FA7B33: SimplifyMulInst(llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.362] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA5CB0: SimplifyBinOp(unsigned int, llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.345] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA7149: SimplifyAssociativeBinOp(unsigned int, llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.348] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA7B05: SimplifyMulInst(llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.362] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA5CB0: SimplifyBinOp(unsigned int, llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.345] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA5FD9: ExpandBinOp(unsigned int, llvm::Value*, llvm::Value*, unsigned int, Query const&, unsigned int) [clone .constprop.344] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA7B29: SimplifyMulInst(llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.362] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA7E4E: llvm::SimplifyMulInst(llvm::Value*, llvm::Value*, llvm::DataLayout const*, llvm::TargetLibraryInfo const*, llvm::DominatorTree const*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EB1503: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x8FA7B47: SimplifyMulInst(llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.362] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA5CB0: SimplifyBinOp(unsigned int, llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.345] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA7149: SimplifyAssociativeBinOp(unsigned int, llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.348] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA7B05: SimplifyMulInst(llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.362] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA5CB0: SimplifyBinOp(unsigned int, llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.345] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA5FD9: ExpandBinOp(unsigned int, llvm::Value*, llvm::Value*, unsigned int, Query const&, unsigned int) [clone .constprop.344] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA7B29: SimplifyMulInst(llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.362] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA7E4E: llvm::SimplifyMulInst(llvm::Value*, llvm::Value*, llvm::DataLayout const*, llvm::TargetLibraryInfo const*, llvm::DominatorTree const*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EB1503: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x8FA7A62: SimplifyMulInst(llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.362] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA5CB0: SimplifyBinOp(unsigned int, llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.345] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA7229: SimplifyAssociativeBinOp(unsigned int, llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.348] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA7B05: SimplifyMulInst(llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.362] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA5CB0: SimplifyBinOp(unsigned int, llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.345] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA5FD9: ExpandBinOp(unsigned int, llvm::Value*, llvm::Value*, unsigned int, Query const&, unsigned int) [clone .constprop.344] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA7B29: SimplifyMulInst(llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.362] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA7E4E: llvm::SimplifyMulInst(llvm::Value*, llvm::Value*, llvm::DataLayout const*, llvm::TargetLibraryInfo const*, llvm::DominatorTree const*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EB1503: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x8FA7A8B: SimplifyMulInst(llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.362] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA5CB0: SimplifyBinOp(unsigned int, llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.345] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA60FF: llvm::SimplifyBinOp(unsigned int, llvm::Value*, llvm::Value*, llvm::DataLayout const*, llvm::TargetLibraryInfo const*, llvm::DominatorTree const*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E5EAA1: llvm::InstCombiner::SimplifyAssociativeOrCommutative(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EB14AB: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== Address 0xa554cd8 is 56 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x8FA7ABF: SimplifyMulInst(llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.362] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA5CB0: SimplifyBinOp(unsigned int, llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.345] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA60FF: llvm::SimplifyBinOp(unsigned int, llvm::Value*, llvm::Value*, llvm::DataLayout const*, llvm::TargetLibraryInfo const*, llvm::DominatorTree const*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E5EAA1: llvm::InstCombiner::SimplifyAssociativeOrCommutative(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EB14AB: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x8FA7011: SimplifyAssociativeBinOp(unsigned int, llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.348] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA7B05: SimplifyMulInst(llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.362] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA5CB0: SimplifyBinOp(unsigned int, llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.345] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA60FF: llvm::SimplifyBinOp(unsigned int, llvm::Value*, llvm::Value*, llvm::DataLayout const*, llvm::TargetLibraryInfo const*, llvm::DominatorTree const*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E5EAA1: llvm::InstCombiner::SimplifyAssociativeOrCommutative(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EB14AB: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x8FA703E: SimplifyAssociativeBinOp(unsigned int, llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.348] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA7B05: SimplifyMulInst(llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.362] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA5CB0: SimplifyBinOp(unsigned int, llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.345] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA60FF: llvm::SimplifyBinOp(unsigned int, llvm::Value*, llvm::Value*, llvm::DataLayout const*, llvm::TargetLibraryInfo const*, llvm::DominatorTree const*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E5EAA1: llvm::InstCombiner::SimplifyAssociativeOrCommutative(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EB14AB: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x8FA704E: SimplifyAssociativeBinOp(unsigned int, llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.348] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA7B05: SimplifyMulInst(llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.362] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA5CB0: SimplifyBinOp(unsigned int, llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.345] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA60FF: llvm::SimplifyBinOp(unsigned int, llvm::Value*, llvm::Value*, llvm::DataLayout const*, llvm::TargetLibraryInfo const*, llvm::DominatorTree const*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E5EAA1: llvm::InstCombiner::SimplifyAssociativeOrCommutative(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EB14AB: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== Address 0xa554ca0 is 0 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x8FA7052: SimplifyAssociativeBinOp(unsigned int, llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.348] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA7B05: SimplifyMulInst(llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.362] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA5CB0: SimplifyBinOp(unsigned int, llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.345] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA60FF: llvm::SimplifyBinOp(unsigned int, llvm::Value*, llvm::Value*, llvm::DataLayout const*, llvm::TargetLibraryInfo const*, llvm::DominatorTree const*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E5EAA1: llvm::InstCombiner::SimplifyAssociativeOrCommutative(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EB14AB: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== Address 0xa554cb8 is 24 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x8FA71A1: SimplifyAssociativeBinOp(unsigned int, llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.348] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA7B05: SimplifyMulInst(llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.362] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA5CB0: SimplifyBinOp(unsigned int, llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.345] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA60FF: llvm::SimplifyBinOp(unsigned int, llvm::Value*, llvm::Value*, llvm::DataLayout const*, llvm::TargetLibraryInfo const*, llvm::DominatorTree const*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E5EAA1: llvm::InstCombiner::SimplifyAssociativeOrCommutative(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EB14AB: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x8FA71B1: SimplifyAssociativeBinOp(unsigned int, llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.348] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA7B05: SimplifyMulInst(llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.362] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA5CB0: SimplifyBinOp(unsigned int, llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.345] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA60FF: llvm::SimplifyBinOp(unsigned int, llvm::Value*, llvm::Value*, llvm::DataLayout const*, llvm::TargetLibraryInfo const*, llvm::DominatorTree const*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E5EAA1: llvm::InstCombiner::SimplifyAssociativeOrCommutative(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EB14AB: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== Address 0xa554ca0 is 0 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x8FA71B5: SimplifyAssociativeBinOp(unsigned int, llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.348] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA7B05: SimplifyMulInst(llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.362] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA5CB0: SimplifyBinOp(unsigned int, llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.345] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA60FF: llvm::SimplifyBinOp(unsigned int, llvm::Value*, llvm::Value*, llvm::DataLayout const*, llvm::TargetLibraryInfo const*, llvm::DominatorTree const*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E5EAA1: llvm::InstCombiner::SimplifyAssociativeOrCommutative(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EB14AB: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== Address 0xa554cb8 is 24 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x8FA5F15: ExpandBinOp(unsigned int, llvm::Value*, llvm::Value*, unsigned int, Query const&, unsigned int) [clone .constprop.344] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA7B29: SimplifyMulInst(llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.362] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA5CB0: SimplifyBinOp(unsigned int, llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.345] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA60FF: llvm::SimplifyBinOp(unsigned int, llvm::Value*, llvm::Value*, llvm::DataLayout const*, llvm::TargetLibraryInfo const*, llvm::DominatorTree const*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E5EAA1: llvm::InstCombiner::SimplifyAssociativeOrCommutative(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EB14AB: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x8FA7B3D: SimplifyMulInst(llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.362] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA5CB0: SimplifyBinOp(unsigned int, llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.345] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA60FF: llvm::SimplifyBinOp(unsigned int, llvm::Value*, llvm::Value*, llvm::DataLayout const*, llvm::TargetLibraryInfo const*, llvm::DominatorTree const*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E5EAA1: llvm::InstCombiner::SimplifyAssociativeOrCommutative(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EB14AB: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x8FA7B4F: SimplifyMulInst(llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.362] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA5CB0: SimplifyBinOp(unsigned int, llvm::Value*, llvm::Value*, Query const&, unsigned int) [clone .constprop.345] (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8FA60FF: llvm::SimplifyBinOp(unsigned int, llvm::Value*, llvm::Value*, llvm::DataLayout const*, llvm::TargetLibraryInfo const*, llvm::DominatorTree const*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E5EAA1: llvm::InstCombiner::SimplifyAssociativeOrCommutative(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8EB14AB: llvm::InstCombiner::visitMul(llvm::BinaryOperator&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68474: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 1 ==10550== at 0x8F9232E: llvm::ConstantFoldInstruction(llvm::Instruction*, llvm::DataLayout const*, llvm::TargetLibraryInfo const*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8DC48ED: (anonymous namespace)::ConstantPropagation::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Address 0xa554cf0 is 80 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== Invalid read of size 8 ==10550== at 0x82DBFB0: shouldConvert(llvm::Value*) (PromoteIntegers.cpp:137) ==10550== by 0x82EA0AD: (anonymous namespace)::PromoteIntegers::runOnFunction(llvm::Function&) (PromoteIntegers.cpp:641) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Address 0xa554cd8 is 56 bytes inside a block of size 128 free'd ==10550== at 0x4C2A30B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x8E67E49: llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8E68F44: llvm::InstCombiner::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== by 0x400FC0: main (opencl_test.c:46) ==10550== Block was alloc'd at ==10550== at 0x4C291AF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10550== by 0x915C9FA: llvm::User::operator new(unsigned long, unsigned int) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9132561: llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82D8D6B: CreateInsertNUWNSWBinOp (IRBuilder.h:615) ==10550== by 0x82D8D6B: CreateMul (IRBuilder.h:682) ==10550== by 0x82D8D6B: gbe::PrintfParser::runOnFunction(llvm::Function&) (llvm_printf_parser.cpp:717) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ASSERTION FAILED: con.getName() == v.getName() at file /home/rnpalmer/Debian/builds/stackbuild/beignet/backend/src/llvm/llvm_gen_backend.cpp, function void gbe::GenWriter::allocateGlobalVariableRegister(llvm::Function&), line 2479 ==10550== ==10550== Process terminating with default action of signal 5 (SIGTRAP) ==10550== at 0x822F478: gbe::onFailedAssertion(char const*, char const*, char const*, int) (assert.cpp:76) ==10550== by 0x829DCEA: gbe::GenWriter::allocateGlobalVariableRegister(llvm::Function&) (llvm_gen_backend.cpp:2479) ==10550== by 0x82BC411: gbe::GenWriter::emitFunction(llvm::Function&) (llvm_gen_backend.cpp:2724) ==10550== by 0x82C37C9: gbe::GenWriter::runOnFunction(llvm::Function&) (llvm_gen_backend.cpp:568) ==10550== by 0x9147ED6: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x8F5B9AD: (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x9147B63: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in /home/test1/lib/beignet/libgbe.so) ==10550== by 0x82F9C2D: gbe::llvmToGen(gbe::ir::Unit&, char const*, void const*, int, bool) (llvm_to_gen.cpp:308) ==10550== by 0x827F650: gbe::Program::buildFromLLVMFile(char const*, void const*, std::__cxx11::basic_string, std::allocator >&, int) (program.cpp:124) ==10550== by 0x8375DBE: gbe::genProgramBuildFromLLVM(_gbe_program*, unsigned long, char*, unsigned long*, char const*) (gen_program.cpp:443) ==10550== by 0x524F0F0: cl_program_link (cl_program.c:679) ==10550== by 0x5246D1F: clLinkProgram (cl_api.c:1022) ==10550== ==10550== HEAP SUMMARY: ==10550== in use at exit: 3,094,443 bytes in 10,420 blocks ==10550== total heap usage: 176,649 allocs, 166,229 frees, 31,743,928 bytes allocated ==10550== ==10550== LEAK SUMMARY: ==10550== definitely lost: 50,442 bytes in 7 blocks ==10550== indirectly lost: 3,024 bytes in 8 blocks ==10550== possibly lost: 286,184 bytes in 1,162 blocks ==10550== still reachable: 2,754,793 bytes in 9,243 blocks ==10550== of which reachable via heuristic: ==10550== multipleinheritance: 424 bytes in 1 blocks ==10550== suppressed: 0 bytes in 0 blocks ==10550== Rerun with --leak-check=full to see details of leaked memory ==10550== ==10550== For counts of detected and suppressed errors, rerun with: -v ==10550== ERROR SUMMARY: 20830 errors from 184 contexts (suppressed: 0 from 0) Trace/breakpoint trap