]> granicus.if.org Git - llvm/commit
[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)
commit5fe8b23a58232138616108966720e894f622dfd5
tree7f5f9b0e2b72965c8ab14b4704650625979b7df7
parentac1eef55515c29520a8b361c6b80dbd505cb9a26
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@355436 91177308-0d34-0410-b5e6-96231b3b80d8
test/CodeGen/AArch64/midpoint-int.ll [new file with mode: 0644]
test/CodeGen/X86/midpoint-int-vec-128.ll [new file with mode: 0644]
test/CodeGen/X86/midpoint-int-vec-256.ll [new file with mode: 0644]
test/CodeGen/X86/midpoint-int-vec-512.ll [new file with mode: 0644]
test/CodeGen/X86/midpoint-int.ll [new file with mode: 0644]