This is an archive of the discontinued LLVM Phabricator instance.

[RISCV][test] Add new tests of or/xor in the zbs extension
ClosedPublic

Authored by benshi001 on May 17 2021, 7:27 AM.

Diff Detail

Event Timeline

benshi001 created this revision.May 17 2021, 7:27 AM
benshi001 requested review of this revision.May 17 2021, 7:27 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 17 2021, 7:27 AM

These tests will show how

; RV32IBS-NEXT:    lui a1, 16
; RV32IBS-NEXT:    addi a1, a1, 1365
; RV32IBS-NEXT:    or a0, a0, a1

will be optimized to

; RV32IBS-NEXT:    ori a0, a0, 1365
; RV32IBS-NEXT:    bseti a0, 16
This revision is now accepted and ready to land.May 17 2021, 11:16 AM