This is an archive of the discontinued LLVM Phabricator instance.

[RISCV][NFC] Add tests for multiplication with constant
ClosedPublic

Authored by benshi001 on Dec 19 2020, 8:49 PM.

Diff Detail

Event Timeline

benshi001 created this revision.Dec 19 2020, 8:49 PM
benshi001 requested review of this revision.Dec 19 2020, 8:49 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 19 2020, 8:49 PM

These tests will show further optimization from

; RV32I:       lui a1, 1
; RV32I-NEXT:  addi a1, a1, 256
; RV32I-NEXT:  call __mulsi3@plt

to

; RV32I:       slli a1, a0, 12
; RV32I-NEXT:  slli a0, a0, 8
; RV32I-NEXT:  add a0, a0, a1
craig.topper added inline comments.
llvm/test/CodeGen/RISCV/mul.ll
567

Please use utils/update_llc_test_checks.py to generate the check lines to be consistent with the rest of this file.

benshi001 updated this revision to Diff 313008.Dec 20 2020, 5:17 PM
benshi001 added a reviewer: craig.topper.
benshi001 marked an inline comment as done.
This revision is now accepted and ready to land.Dec 20 2020, 5:33 PM

I got the following error when trying to push. what's wrong? I applied for the push access in the summer of 2020.

remote: error: GH006: Protected branch update failed for refs/heads/master.
remote: error: You're not authorized to push to this branch. Visit https://docs.github.com/articles/about-protected-branches/ for more information.
To github.com:llvm/llvm-project.git
 ! [remote rejected]           master -> master (protected branch hook declined)
error: failed to push some refs to 'git@github.com:llvm/llvm-project.git'

I got the following error when trying to push. what's wrong? I applied for the push access in the summer of 2020.

remote: error: GH006: Protected branch update failed for refs/heads/master.
remote: error: You're not authorized to push to this branch. Visit https://docs.github.com/articles/about-protected-branches/ for more information.
To github.com:llvm/llvm-project.git
 ! [remote rejected]           master -> master (protected branch hook declined)
error: failed to push some refs to 'git@github.com:llvm/llvm-project.git'
git branch -m main
git branch --set-upstream-to=origin/main
This revision was automatically updated to reflect the committed changes.