[NFC][Codegen] Add add+sub/sub+add constant-fold tests for from D62257
authorRoman Lebedev <lebedev.ri@gmail.com>
Thu, 30 May 2019 13:02:11 +0000 (13:02 +0000)
committerRoman Lebedev <lebedev.ri@gmail.com>
Thu, 30 May 2019 13:02:11 +0000 (13:02 +0000)
commit8f220a5d2c85ee75c0bca4e07bff57cace6cf07a
treee01028149f68941e4d77f78a601138b992fbf906
parente8578953ac6c3f708aa2081c9b11e0e946020e7c
[NFC][Codegen] Add add+sub/sub+add constant-fold tests for from D62257

add+sub/sub+add when second operands are constants should be folded
into a single add, just like with add+add.

llvm-svn: 362093
llvm/test/CodeGen/AArch64/vec_add.ll [new file with mode: 0644]
llvm/test/CodeGen/X86/vec_add.ll