[PATCH] D144282: [X86] Add tests for (or/and (icmp eq/ne A, C0), (icmp eq/ne A, C1)) where IsPow2(dif(C0, C1)); NFC

Phoebe Wang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Feb 19 19:07:44 PST 2023


pengfei added a comment.

Can we add tests on demand? It looks to me there are tests neither touched by D144283 <https://reviews.llvm.org/D144283> nor D144284 <https://reviews.llvm.org/D144284>.



================
Comment at: llvm/test/CodeGen/X86/icmp-pow2-dif.ll:4
+; RUN: llc < %s -mtriple=x86_64-- -mattr=+avx2 | FileCheck %s --check-prefixes=CHECK,AVX2
+; RUN: llc < %s -mtriple=x86_64-- -mattr=+sse4.1 | FileCheck %s --check-prefixes=CHECK,SSE41
+; RUN: llc < %s -mtriple=x86_64-- -mattr=+sse2 | FileCheck %s --check-prefixes=CHECK,SSE2
----------------
Use `CHECK,SSE,SSE41` and `CHECK,SSE,SSE2` for further fold?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D144282/new/

https://reviews.llvm.org/D144282



More information about the llvm-commits mailing list