This is an archive of the discontinued LLVM Phabricator instance.

[LoongArch] Add immediate operand validity check for __builtin_loongarch_dbar
ClosedPublic

Authored by gonglingqin on Nov 10 2022, 5:45 PM.

Diff Detail

Event Timeline

gonglingqin created this revision.Nov 10 2022, 5:45 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 10 2022, 5:45 PM
Herald added a subscriber: StephenFan. · View Herald Transcript
gonglingqin requested review of this revision.Nov 10 2022, 5:45 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 10 2022, 5:45 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
SixWeining added inline comments.Nov 14 2022, 7:28 PM
clang/test/CodeGen/LoongArch/intrinsic-error.c
11

Also check lower bound.

gonglingqin added inline comments.Nov 14 2022, 7:55 PM
clang/test/CodeGen/LoongArch/intrinsic-error.c
11

Thanks, I will add test cases.

Add test cases.

Herald added a project: Restricted Project. · View Herald TranscriptNov 14 2022, 7:55 PM
SixWeining accepted this revision.Nov 14 2022, 7:58 PM
This revision is now accepted and ready to land.Nov 14 2022, 7:58 PM
This revision was landed with ongoing or failed builds.Nov 15 2022, 10:48 PM
This revision was automatically updated to reflect the committed changes.