[llvm] 05de0ab - [X86] Add X86 and X64 prefixes to parity.ll to reduce duplicate check lines. NFC

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 6 11:01:32 PDT 2021


Author: Craig Topper
Date: 2021-10-06T11:01:03-07:00
New Revision: 05de0ab431ec70abdd035eb80244f8788a115259

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

LOG: [X86] Add X86 and X64 prefixes to parity.ll to reduce duplicate check lines. NFC

Added: 
    

Modified: 
    llvm/test/CodeGen/X86/parity.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/CodeGen/X86/parity.ll b/llvm/test/CodeGen/X86/parity.ll
index 08a1a8749039..a665420900d1 100644
--- a/llvm/test/CodeGen/X86/parity.ll
+++ b/llvm/test/CodeGen/X86/parity.ll
@@ -1,62 +1,38 @@
 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
-; RUN: llc < %s -mtriple=i686-unknown-unknown -mattr=-popcnt | FileCheck %s --check-prefix=X86-NOPOPCNT
-; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=-popcnt | FileCheck %s --check-prefix=X64-NOPOPCNT
-; RUN: llc < %s -mtriple=i686-unknown-unknown -mattr=+popcnt | FileCheck %s --check-prefix=X86-POPCNT
-; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+popcnt | FileCheck %s --check-prefix=X64-POPCNT
+; RUN: llc < %s -mtriple=i686-unknown-unknown -mattr=-popcnt | FileCheck %s --check-prefixes=X86,X86-NOPOPCNT
+; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=-popcnt | FileCheck %s --check-prefixes=X64,X64-NOPOPCNT
+; RUN: llc < %s -mtriple=i686-unknown-unknown -mattr=+popcnt | FileCheck %s --check-prefixes=X86,X86-POPCNT
+; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+popcnt | FileCheck %s --check-prefixes=X64,X64-POPCNT
 
 define i4 @parity_4(i4 %x) {
-; X86-NOPOPCNT-LABEL: parity_4:
-; X86-NOPOPCNT:       # %bb.0:
-; X86-NOPOPCNT-NEXT:    testb $15, {{[0-9]+}}(%esp)
-; X86-NOPOPCNT-NEXT:    setnp %al
-; X86-NOPOPCNT-NEXT:    retl
-;
-; X64-NOPOPCNT-LABEL: parity_4:
-; X64-NOPOPCNT:       # %bb.0:
-; X64-NOPOPCNT-NEXT:    testb $15, %dil
-; X64-NOPOPCNT-NEXT:    setnp %al
-; X64-NOPOPCNT-NEXT:    retq
-;
-; X86-POPCNT-LABEL: parity_4:
-; X86-POPCNT:       # %bb.0:
-; X86-POPCNT-NEXT:    testb $15, {{[0-9]+}}(%esp)
-; X86-POPCNT-NEXT:    setnp %al
-; X86-POPCNT-NEXT:    retl
-;
-; X64-POPCNT-LABEL: parity_4:
-; X64-POPCNT:       # %bb.0:
-; X64-POPCNT-NEXT:    testb $15, %dil
-; X64-POPCNT-NEXT:    setnp %al
-; X64-POPCNT-NEXT:    retq
+; X86-LABEL: parity_4:
+; X86:       # %bb.0:
+; X86-NEXT:    testb $15, {{[0-9]+}}(%esp)
+; X86-NEXT:    setnp %al
+; X86-NEXT:    retl
+;
+; X64-LABEL: parity_4:
+; X64:       # %bb.0:
+; X64-NEXT:    testb $15, %dil
+; X64-NEXT:    setnp %al
+; X64-NEXT:    retq
   %1 = tail call i4 @llvm.ctpop.i4(i4 %x)
   %2 = and i4 %1, 1
   ret i4 %2
 }
 
 define i8 @parity_8(i8 %x) {
-; X86-NOPOPCNT-LABEL: parity_8:
-; X86-NOPOPCNT:       # %bb.0:
-; X86-NOPOPCNT-NEXT:    cmpb $0, {{[0-9]+}}(%esp)
-; X86-NOPOPCNT-NEXT:    setnp %al
-; X86-NOPOPCNT-NEXT:    retl
-;
-; X64-NOPOPCNT-LABEL: parity_8:
-; X64-NOPOPCNT:       # %bb.0:
-; X64-NOPOPCNT-NEXT:    testb %dil, %dil
-; X64-NOPOPCNT-NEXT:    setnp %al
-; X64-NOPOPCNT-NEXT:    retq
-;
-; X86-POPCNT-LABEL: parity_8:
-; X86-POPCNT:       # %bb.0:
-; X86-POPCNT-NEXT:    cmpb $0, {{[0-9]+}}(%esp)
-; X86-POPCNT-NEXT:    setnp %al
-; X86-POPCNT-NEXT:    retl
-;
-; X64-POPCNT-LABEL: parity_8:
-; X64-POPCNT:       # %bb.0:
-; X64-POPCNT-NEXT:    testb %dil, %dil
-; X64-POPCNT-NEXT:    setnp %al
-; X64-POPCNT-NEXT:    retq
+; X86-LABEL: parity_8:
+; X86:       # %bb.0:
+; X86-NEXT:    cmpb $0, {{[0-9]+}}(%esp)
+; X86-NEXT:    setnp %al
+; X86-NEXT:    retl
+;
+; X64-LABEL: parity_8:
+; X64:       # %bb.0:
+; X64-NEXT:    testb %dil, %dil
+; X64-NEXT:    setnp %al
+; X64-NEXT:    retq
   %1 = tail call i8 @llvm.ctpop.i8(i8 %x)
   %2 = and i8 %1, 1
   ret i8 %2


        


More information about the llvm-commits mailing list