diff options
| author | Thomas Lively <tlively@google.com> | 2018-10-13 16:58:03 +0000 |
|---|---|---|
| committer | Thomas Lively <tlively@google.com> | 2018-10-13 16:58:03 +0000 |
| commit | ffde98de21dd9ab179cb903109daab01714e6431 (patch) | |
| tree | faf53792433c7eca1248eee57d085697cea301ec | |
| parent | 47579b21e2043a69832a1378e85f1e545abfef08 (diff) | |
| download | bcm5719-llvm-ffde98de21dd9ab179cb903109daab01714e6431.tar.gz bcm5719-llvm-ffde98de21dd9ab179cb903109daab01714e6431.zip | |
[WebAssembly][NFC] Fix signed/unsigned comparison warning
llvm-svn: 344459
| -rw-r--r-- | llvm/lib/Target/WebAssembly/WebAssemblyInstrSIMD.td | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyInstrSIMD.td b/llvm/lib/Target/WebAssembly/WebAssemblyInstrSIMD.td index af5c03599cd..b0fd6cab229 100644 --- a/llvm/lib/Target/WebAssembly/WebAssemblyInstrSIMD.td +++ b/llvm/lib/Target/WebAssembly/WebAssemblyInstrSIMD.td @@ -30,7 +30,9 @@ defm "" : ARGUMENT<V128, v2f64>; // Constrained immediate argument types foreach SIZE = [8, 16] in -def ImmI#SIZE : ImmLeaf<i32, "return (Imm & ((1UL << "#SIZE#") - 1)) == Imm;">; +def ImmI#SIZE : ImmLeaf<i32, + "return ((uint64_t)Imm & ((1UL << "#SIZE#") - 1)) == (uint64_t)Imm;" +>; foreach SIZE = [2, 4, 8, 16, 32] in def LaneIdx#SIZE : ImmLeaf<i32, "return 0 <= Imm && Imm < "#SIZE#";">; |

