Re: [PATCH, i386]: Add bswaphi2 insn pattern
Hello! Attached patch introduces bswaphi2 named insn pattern that results in movbe instruction. Without the patch, the following testcase: void baz (char *buf, unsigned int data) { buf[0] = data >> 8; buf[1] = data; } compiles to (-O2 -march=haswell): rolw$8, %si movw
[PATCH, i386]: Add bswaphi2 insn pattern
Hello! Attached patch introduces bswaphi2 named insn pattern that results in movbe instruction. Without the patch, the following testcase: