[PATCH] D142998: [SVE][codegen] Add few more tests for MUL followed by ADD/SUB (NFC)

Paul Walker via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 6 11:09:28 PST 2023


paulwalker-arm added inline comments.


================
Comment at: llvm/test/CodeGen/AArch64/sve-int-arith.ll:402-403
+  %r1 = add <vscale x 16 x i8> %c, %r0
+  %r2 = add <vscale x 16 x i8> %r1, %a
+  %r3 = add <vscale x 16 x i8> %r2, %b
+  ret <vscale x 16 x i8> %r3
----------------
Does simplify the mla tests to:
```
  %prod = mul <vscale x 2 x i64> %b, %c
  %res = add <vscale x 2 x i64> %a, %prod
  ret <vscale x 2 x i64> %res
```
give the desired output?



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

https://reviews.llvm.org/D142998



More information about the llvm-commits mailing list