[ARM GlobalISel] Add comment for r318398. NFC.
authorDiana Picus <diana.picus@linaro.org>
Tue, 21 Nov 2017 10:17:02 +0000 (10:17 +0000)
committerDiana Picus <diana.picus@linaro.org>
Tue, 21 Nov 2017 10:17:02 +0000 (10:17 +0000)
Mention the purpose of the BICri tests added by r318398, as requested in
post-commit review.

llvm-svn: 318747

llvm/test/CodeGen/ARM/GlobalISel/arm-instruction-select-combos.mir

index 8932e22..d8da961 100644 (file)
@@ -461,6 +461,11 @@ body:             |
     %0(s32) = COPY %r0
     ; CHECK: [[VREGX:%[0-9]+]]:gpr = COPY %r0
 
+    ; This test and the following ones are a bit contrived, since they use a
+    ; G_XOR that can be constant-folded. They exist mostly to validate the
+    ; TableGen pattern that defines BICri. We also have a pattern for matching a
+    ; G_AND with a G_CONSTANT operand directly, which is the more common case,
+    ; but that will be covered by different tests.
     %1(s32) = G_CONSTANT i32 192
 
     %2(s32) = G_CONSTANT i32 -1