]> granicus.if.org Git - llvm/commit
[ARM/AArch64] Relocate and update InterleavedAccessPass tests (NFC)
authorMatthew Simpson <mssimpso@codeaurora.org>
Fri, 27 Jan 2017 17:33:16 +0000 (17:33 +0000)
committerMatthew Simpson <mssimpso@codeaurora.org>
Fri, 27 Jan 2017 17:33:16 +0000 (17:33 +0000)
commit6ea10124d17d8cccabe79aab1b57831cfff8963e
tree0ba4ef399b18d50f1720511c4229e526cb35431d
parent1d8c95f0c146299005e399306d3018f67ee2b647
[ARM/AArch64] Relocate and update InterleavedAccessPass tests (NFC)

The interleaved access pass is an IR-to-IR transformation that runs before code
generation. It matches interleaved memory operations to target-specific
intrinsics (that are later lowered to load and store multiple instructions on
ARM/AArch64). We place tests for similar passes (e.g., GlobalMergePass) under
test/Transforms. This patch moves the InterleavedAccessPass tests out of
test/CodeGen and into target-specific directories under
test/Transforms/InterleavedAccess.

Although the pass is an IR pass, many of the existing tests were llc tests
rather opt tests. For example, the tests would check for ldN/stN instructions
generated by llc rather than the intrinsic calls the pass actually inserts.
Thus, this patch updates all tests to be opt tests that check for the inserted
intrinsics. We already have separate CodeGen tests that ensure we lower the
interleaved access intrinsics to their corresponding ldN/stN instructions. In
addition to migrating the tests to opt, this patch also performs some minor
clean-up (to ensure consistent naming, etc.).

Differential Revision: https://reviews.llvm.org/D29184

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@293309 91177308-0d34-0410-b5e6-96231b3b80d8
test/CodeGen/AArch64/aarch64-interleaved-accesses-extract-user.ll [deleted file]
test/CodeGen/AArch64/aarch64-interleaved-accesses.ll [deleted file]
test/CodeGen/ARM/arm-interleaved-accesses-extract-user.ll [deleted file]
test/CodeGen/ARM/arm-interleaved-accesses.ll [deleted file]
test/Transforms/InterleavedAccess/AArch64/interleaved-accesses-extract-user.ll [new file with mode: 0644]
test/Transforms/InterleavedAccess/AArch64/interleaved-accesses.ll [new file with mode: 0644]
test/Transforms/InterleavedAccess/AArch64/lit.local.cfg [new file with mode: 0644]
test/Transforms/InterleavedAccess/ARM/interleaved-accesses-extract-user.ll [new file with mode: 0644]
test/Transforms/InterleavedAccess/ARM/interleaved-accesses.ll [new file with mode: 0644]
test/Transforms/InterleavedAccess/ARM/lit.local.cfg [new file with mode: 0644]