{
std::vector<llvm::Value*> res(4);
+ res[0] = m_builder.CreateAdd(in1[0], in2[0], name("addx"));
+ res[1] = m_builder.CreateAdd(in1[1], in2[1], name("addy"));
+ res[2] = m_builder.CreateAdd(in1[2], in2[2], name("addz"));
+ res[3] = m_builder.CreateAdd(in1[3], in2[3], name("addw"));
+
return res;
}
{
std::vector<llvm::Value*> res(4);
- res[0] = m_builder.CreateMul(in1[0], in2[0], name("mul"));
- res[1] = m_builder.CreateMul(in1[1], in2[1], name("mul"));
- res[2] = m_builder.CreateMul(in1[2], in2[2], name("mul"));
- res[3] = m_builder.CreateMul(in1[3], in2[3], name("mul"));
+ res[0] = m_builder.CreateMul(in1[0], in2[0], name("mulx"));
+ res[1] = m_builder.CreateMul(in1[1], in2[1], name("muly"));
+ res[2] = m_builder.CreateMul(in1[2], in2[2], name("mulz"));
+ res[3] = m_builder.CreateMul(in1[3], in2[3], name("mulw"));
return res;
}