OSDN Git Service

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)
commit4dad5f2731a54ed3c66bb49b300d2332b97d0efa
tree87b529559722b1a340d76d9075bde8959c97e1b1
parent1b4da6c8ce0cb58d3686f4ff92119491e77a7758
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229870 91177308-0d34-0410-b5e6-96231b3b80d8
test/CodeGen/X86/fold-load-unops.ll [new file with mode: 0644]