x86: add architecture enabled ps_shr()

This shows how we can add an architecture enabled optimization for
ps_shr(). This is currently disabled though as I'm sure the asm is
not right yet. Once the x86 asm is fixed in the header file
arch/x86/include/asm/ps_const.h just edit the top level Makefile and
uncomment:

  #CFLAGS += -DCONFIG_HAVE_ARCH_PS_CONST

Expected synth driver output:

Synthetics: ps_shr(0xDEADBEEF, get_demo_shr) returns: 0x0000DEAD

Signed-off-by: Luis R. Rodriguez <mcgrof@kernel.org>
4 files changed