x86-ncg: Fix fma codegen when arguments are globals.
x86-ncg: Fix fma codegen when arguments are globals.
Fix a bug in the x86 ncg where results would be wrong when the desired output
register and one of the input registers were the same global.
Also adds a tiny optimization to make use of the memory addressing
support when convenient.
Fixes #24496