[PATCH] D100370: [AArch64][SVE] Fix bug in lowering of fixed-length integer vector divides

Paul Walker via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 22 09:59:30 PDT 2021


paulwalker-arm accepted this revision.
paulwalker-arm added a comment.
This revision is now accepted and ready to land.

The non-power-of-two RUN lines should be extended to allow maximum testing (see comments) but otherwise looks good.



================
Comment at: llvm/test/CodeGen/AArch64/sve-fixed-length-int-div.ll:3
+; RUN: llc -aarch64-sve-vector-bits-min=256  -asm-verbose=0 < %s | FileCheck %s -check-prefixes=CHECK,VBITS_EQ_256
+; RUN: llc -aarch64-sve-vector-bits-min=384  -asm-verbose=0 < %s | FileCheck %s
+; RUN: llc -aarch64-sve-vector-bits-min=512  -asm-verbose=0 < %s | FileCheck %s -check-prefixes=CHECK,VBITS_GE_512,VBITS_EQ_512
----------------
This is missing `-check-prefixes=CHECK,VBITS_EQ_256`.  Actually this is a universal comment, in that all the RUN lines with `vector-bits-min=512-896` should include `VBITS_EQ_512`, `vector-bits-min=1024-1920` should include `VBITS_EQ_1024`.


================
Comment at: llvm/test/CodeGen/AArch64/sve-fixed-length-int-rem.ll:3
+; RUN: llc -aarch64-sve-vector-bits-min=256  -asm-verbose=0 < %s | FileCheck %s -check-prefixes=CHECK,VBITS_EQ_256
+; RUN: llc -aarch64-sve-vector-bits-min=384  -asm-verbose=0 < %s | FileCheck %s
+; RUN: llc -aarch64-sve-vector-bits-min=512  -asm-verbose=0 < %s | FileCheck %s -check-prefixes=CHECK,VBITS_GE_512,VBITS_EQ_512
----------------
Same missing `VBITS_EQ_###` comment as with div tests.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D100370



More information about the llvm-commits mailing list