This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Set ShouldSignExtI32Param in TargetLibraryInfo for riscv64.
ClosedPublic

Authored by craig.topper on Dec 12 2022, 4:23 PM.

Diff Detail

Event Timeline

craig.topper created this revision.Dec 12 2022, 4:23 PM
craig.topper requested review of this revision.Dec 12 2022, 4:23 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 12 2022, 4:23 PM
efriedma accepted this revision.Dec 12 2022, 4:28 PM
efriedma added a reviewer: jonpa.

LGTM

(see also D133949)

This revision is now accepted and ready to land.Dec 12 2022, 4:28 PM

So, I guess these have all been getting actually miscompiled on riscv64 up till now? Whoops!

This revision was landed with ongoing or failed builds.Dec 12 2022, 4:41 PM
This revision was automatically updated to reflect the committed changes.

So, I guess these have all been getting actually miscompiled on riscv64 up till now? Whoops!

We're fairly aggressive about type legalizing i32 values via sign extension so we might accidentally get it right in a lot of cases.