add X86 load folding tests for unary math ops
authorSanjay Patel <spatel@rotateright.com>
Thu, 19 Feb 2015 16:59:11 +0000 (16:59 +0000)
committerSanjay Patel <spatel@rotateright.com>
Thu, 19 Feb 2015 16:59:11 +0000 (16:59 +0000)
commitf34a29a845bf404cec007fa6e4f4d46dde5468ff
treee51346b0b7a6b4b521f63c1a454a86ce1a81b213
parent8eb8d9367291c65b7f508bbc1555e7606f01b554
add X86 load folding tests for unary math ops

X86 load folding is fragile; eg, the tests here
don't work without AVX even though they should. This
is because we have a mix of tablegen patterns that have
been added over time, and we have a load folding table
used by the peephole optimizer that has to be kept in
sync with the ever-changing ISA and tablegen defs.

llvm-svn: 229870
llvm/test/CodeGen/X86/fold-load-unops.ll [new file with mode: 0644]