[PATCH] D137809: [LoongArch] Add immediate operand validity check for __builtin_loongarch_dbar
Gong LingQin via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 14 19:55:10 PST 2022
gonglingqin added inline comments.
================
Comment at: clang/test/CodeGen/LoongArch/intrinsic-error.c:11
+void dbar() {
+ return __builtin_loongarch_dbar(32768); // expected-error {{argument value 32768 is outside the valid range [0, 32767]}}
+}
----------------
SixWeining wrote:
> Also check lower bound.
Thanks, I will add test cases.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D137809/new/
https://reviews.llvm.org/D137809
More information about the cfe-commits
mailing list