[NFC][CodeGen][X86][AArch64] Add tests for C++ std::midpoint() pattern (PR40965)
authorRoman Lebedev <lebedev.ri@gmail.com>
Tue, 5 Mar 2019 20:18:47 +0000 (20:18 +0000)
committerRoman Lebedev <lebedev.ri@gmail.com>
Tue, 5 Mar 2019 20:18:47 +0000 (20:18 +0000)
commitc38831e11dc33d2a8325ee6ada9827cff0396945
tree031183c93e86fa26c28312047870bffa798befa9
parent14c1e08ff57bbfda40fbfeec5c2f6af6aab9f4f5
[NFC][CodeGen][X86][AArch64] Add tests for C++ std::midpoint() pattern (PR40965)

Tests only for integers, not floating point or pointers.

The scalar 8-bit case uses branch instead of CMOV,
because there is no no 8-bit CMOV.

Vector tests are for consistency, since it can be vectorized.

https://bugs.llvm.org/show_bug.cgi?id=40965

llvm-svn: 355436
llvm/test/CodeGen/AArch64/midpoint-int.ll [new file with mode: 0644]
llvm/test/CodeGen/X86/midpoint-int-vec-128.ll [new file with mode: 0644]
llvm/test/CodeGen/X86/midpoint-int-vec-256.ll [new file with mode: 0644]
llvm/test/CodeGen/X86/midpoint-int-vec-512.ll [new file with mode: 0644]
llvm/test/CodeGen/X86/midpoint-int.ll [new file with mode: 0644]