[x86] Rework all of the 128-bit vector shuffle tests with my handy test
authorChandler Carruth <chandlerc@gmail.com>
Tue, 30 Sep 2014 21:44:34 +0000 (21:44 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Tue, 30 Sep 2014 21:44:34 +0000 (21:44 +0000)
commit8b6f2eee0775a69ca420d22e679421d295f3fd4a
treeaa700053275d65bdecfbb5bd25ab76a4f39343c5
parent76ff19ffa7c3dd899aee66ab737649bf1643f7f5
[x86] Rework all of the 128-bit vector shuffle tests with my handy test
updating script so that they are more thorough and consistent.

Specific fixes here include:
- Actually test VEX-encoded AVX mnemonics.
- Actually use an SSE 4.1 run to test SSE 4.1 features!
- Correctly check instructions sequences from the start of the function.
- Elide the shuffle operands and comment designator in a consistent way.
- Test all of the architectures instead of just the ones I was motivated
  to manually author.

I've gone back through and fixed up any egregious issues I spotted. Let
me know if I missed something you really dislike.

One downside to this is that we're now not as diligently using FileCheck
variables for registers. I would be much more concerned with this if we
had larger register usage, but there just aren't that interesting of
register choices here and most of the registers are constrained by the
ABI. Ultimately, I don't think this is likely to be the maintenance
burden for these tests and updating them again should be staright
forward.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218707 91177308-0d34-0410-b5e6-96231b3b80d8
test/CodeGen/X86/vector-shuffle-128-v16.ll
test/CodeGen/X86/vector-shuffle-128-v2.ll
test/CodeGen/X86/vector-shuffle-128-v4.ll
test/CodeGen/X86/vector-shuffle-128-v8.ll