Skip to content

Commit

Permalink
expand bswap intrinsic
Browse files Browse the repository at this point in the history
bswap operation should be expanded. RISC-V instruction selection cannot
handle this operation.
  • Loading branch information
jeffy1009 committed Jul 28, 2016
1 parent 8713638 commit 7d28371
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Target/RISCV/RISCVISelLowering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ RISCVTargetLowering::RISCVTargetLowering(const TargetMachine &tm,
setOperationAction(ISD::CTLZ, VT, Expand);
setOperationAction(ISD::CTTZ_ZERO_UNDEF, VT, Expand);
setOperationAction(ISD::CTLZ_ZERO_UNDEF, VT, Expand);
setOperationAction(ISD::BSWAP, VT, Expand);

}
}
Expand Down

0 comments on commit 7d28371

Please sign in to comment.