[PATCH] D36282: Move unit test to the proper location

Taewook Oh via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 3 13:13:40 PDT 2017


twoh created this revision.
Herald added subscribers: kristof.beyls, igorb, javed.absar, aemerson.

Move test/CodeGen/AArch64/reg-bank-128bit.mir to test/CodeGen/AArch64/GlobalISel/reg-bank-128bit.mir so that the test is executed only when global-isel is enabled. lit.local.cfg under test/CodeGen/AArch64/GlobalISel checks if 'global-isel' is in the available_features while the same file under test/CodeGen/AArch64 doesn't.


https://reviews.llvm.org/D36282

Files:
  test/CodeGen/AArch64/GlobalISel/reg-bank-128bit.mir
  test/CodeGen/AArch64/reg-bank-128bit.mir


Index: test/CodeGen/AArch64/reg-bank-128bit.mir
===================================================================
--- /dev/null
+++ test/CodeGen/AArch64/reg-bank-128bit.mir
@@ -1,21 +0,0 @@
-# RUN: llc -mtriple=aarch64 -global-isel -run-pass=regbankselect -o - %s | FileCheck %s
----
-name:            test_large_merge
-legalized:       true
-registers:
-body: |
-  bb.0.entry:
-    liveins: %x0, %x1, %x2
-
-    ; CHECK-LABEL: name: test_large_merge
-    ; CHECK: registers:
-    ; CHECK:       - { id: 0, class: gpr
-    ; CHECK:       - { id: 1, class: gpr
-    ; CHECK:       - { id: 2, class: gpr
-    ; CHECK:       - { id: 3, class: fpr
-    %0:_(s64) = COPY %x0
-    %1:_(s64) = COPY %x1
-    %2:_(p0) = COPY %x2
-    %3:_(s128) = G_MERGE_VALUES %0, %1
-    %d0 = COPY %3
-...


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D36282.109620.patch
Type: text/x-patch
Size: 787 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170803/86cfd79c/attachment.bin>


More information about the llvm-commits mailing list