[llvm] dfd2858 - [InstCombine] add test comments for negative tests; NFC

Sanjay Patel via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 20 05:00:05 PST 2020


Author: Sanjay Patel
Date: 2020-11-20T07:59:46-05:00
New Revision: dfd2858b7f03c6a722f44126d6fe288608c7cad8

URL: https://github.com/llvm/llvm-project/commit/dfd2858b7f03c6a722f44126d6fe288608c7cad8
DIFF: https://github.com/llvm/llvm-project/commit/dfd2858b7f03c6a722f44126d6fe288608c7cad8.diff

LOG: [InstCombine] add test comments for negative tests; NFC

Added: 
    

Modified: 
    llvm/test/Transforms/InstCombine/and.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/Transforms/InstCombine/and.ll b/llvm/test/Transforms/InstCombine/and.ll
index 00d8ffe4c560..ed50ae16350d 100644
--- a/llvm/test/Transforms/InstCombine/and.ll
+++ b/llvm/test/Transforms/InstCombine/and.ll
@@ -1098,6 +1098,8 @@ define <2 x i8> @lowmask_add_2_splat(<2 x i8> %x, <2 x i8>* %p) {
   ret <2 x i8> %r
 }
 
+; Negative test - mask overlaps low bit of add
+
 define i8 @not_lowmask_add(i8 %x) {
 ; CHECK-LABEL: @not_lowmask_add(
 ; CHECK-NEXT:    [[A:%.*]] = add i8 [[X:%.*]], -64
@@ -1111,6 +1113,8 @@ define i8 @not_lowmask_add(i8 %x) {
   ret i8 %r
 }
 
+; Negative test - mask overlaps low bit of add
+
 define i8 @not_lowmask_add2(i8 %x) {
 ; CHECK-LABEL: @not_lowmask_add2(
 ; CHECK-NEXT:    [[A:%.*]] = add i8 [[X:%.*]], -96


        


More information about the llvm-commits mailing list