This is an archive of the discontinued LLVM Phabricator instance.

[RISCV][test] Add new tests for or/xor
ClosedPublic

Authored by benshi001 on May 13 2021, 5:44 AM.

Diff Detail

Event Timeline

benshi001 created this revision.May 13 2021, 5:44 AM
benshi001 requested review of this revision.May 13 2021, 5:45 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 13 2021, 5:45 AM

The new test will should how

; RV32IBS-NEXT:    lui a1, 1
; RV32IBS-NEXT:    addi a1, a1, 2
; RV32IBS-NEXT:    xor a0, a0, a1

are optimized to

binvi a0, 12
binvi a0, 2
benshi001 updated this revision to Diff 345140.May 13 2021, 7:45 AM
MaskRay accepted this revision.May 16 2021, 6:22 PM
This revision is now accepted and ready to land.May 16 2021, 6:22 PM
This revision was landed with ongoing or failed builds.May 16 2021, 6:47 PM
This revision was automatically updated to reflect the committed changes.