[llvm] [AArch64][SelectionDAG] Lower multiplication by a constant to shl+add+shl+add (PR #89532)

Eli Friedman via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 21 11:02:02 PDT 2024


================
@@ -410,6 +410,23 @@ define i32 @test11(i32 %x) {
   ret i32 %mul
 }
 
+define i32 @test11_fast_shift(i32 %x) "target-features"="+alu-lsl-fast" {
+; CHECK-LABEL: test11_fast_shift:
+; CHECK:       // %bb.0:
+; CHECK-NEXT:    add w8, w0, w0
----------------
efriedma-quic wrote:

Missing shift amount?

Could probably use a couple more tests.

https://github.com/llvm/llvm-project/pull/89532


More information about the llvm-commits mailing list