On Fri, Nov 20, 2020 at 10:40 PM Niels Möller nisse@lysator.liu.se wrote:
nisse@lysator.liu.se (Niels Möller) writes: The intention of this piece of code is just to construct the value {1, 0, 0, 0} in one of the vector registers. Maybe there's a better way to do that?
The cheapest replacement I can think of:
vspltisw ZERO,0 C 0x00000000000000000000000000000000 vspltisw ONE,1 C 0x00000001000000010000000100000001 vsldoi ONE, ONE, ZERO,12 C 0x00000001000000000000000000000000
regards, Mamone