VBROADCASTSS lazarus / 62-General ---------------------------------------------------------------------- SonnyBoyXXl · 2021-11-02 22:26 I declare this function Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i {$IF defined(_XM_AVX_INTRINSICS_)}function XMVectorReplicate(constref Value: single): TXMVECTOR; assembler; nostackframe;asm           VBROADCASTSS XMM0,[Value]           VMOVUPS  [Result],XMM0end;{$ELSE} But I get this error DirectX.Math.pas(1880,12) Error: Asm: [vbroadcastss xmmreg0,mem128] invalid combination of opcode and operands.  But refering to here https://www.felixcloutier.com/x86/vbroadcast this opcode should be possible. ---------------------------------------------------------------------- SonnyBoyXXl · 2021-11-02 22:30 It works now. no idea why, but it works ---------------------------------------------------------------------- Kays · 2021-11-04 13:19 Quote from: SonnyBoyXXl on November 02, 2021, 11:26:11 pmBut I get this error DirectX.Math.pas(1880,12) Error: Asm: [vbroadcastss xmmreg0,mem128] invalid combination of opcode and operands.  But refering to here https://www.felixcloutier.com/x86/vbroadcast this opcode should be possible.No, the error message is correct. This combination is not possible. Quote from: SonnyBoyXXl on November 02, 2021, 11:30:28 pmIt works now. no idea why, but it works  I experienced the same bug: I could compile it by kicking the FPC in the butt “Hey, this is a pSingle!” Code: ASM  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i         vbroadcastss xmm0, single ptr [value]