Patent ID: 8010953
Filing Date: 2011-08-30
Classification: G06F

Abstract:
1. A method, in a data processing system, for generating code to perform scalar operations on a vector execution unit, comprising: receiving application code, wherein the application code includes a scalar operation; generating a first load vector instruction, based on the scalar operation, for loading a first scalar value into a first vector register; generating a second load vector instruction, based on the scalar operation, for loading a second scalar value into a second vector register; generating a vector computational instruction for combining the first scalar value in the first vector register with the second scalar value in the second vector register to thereby compute a scalar result; generating first code to align a first scalar data word of the first scalar value with respect to the first vector register; and generating second code to align a second scalar data word of the second scalar value with respect to the second vector register, wherein an alignment for the first scalar data word and the second scalar data word associated with the first scalar value and second scalar value is derived dynamically by generating third code to compute the alignment at program runtime.