[PATCH] D101684: [WebAssembly] Add end-to-end codegen tests for wasm_simd128.h
Heejin Ahn via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat May 1 19:30:07 PDT 2021
aheejin accepted this revision.
aheejin added a comment.
This revision is now accepted and ready to land.
Wow these are really a lot of instructions!
================
Comment at: clang/test/Headers/wasm.c:2
+// REQUIRES: webassembly-registered-target
// expected-no-diagnostics
----------------
Now that we have `CHECK` lines, we don't need this
================
Comment at: clang/test/Headers/wasm.c:1060-1069
+// CHECK-LABEL: test_i64x2_abs:
+// CHECK: local.get 0{{$}}
+// CHECK-NEXT: local.get 0{{$}}
+// CHECK-NEXT: i32.const 63{{$}}
+// CHECK-NEXT: i64x2.shr_s{{$}}
+// CHECK-NEXT: local.tee 1{{$}}
+// CHECK-NEXT: i64x2.add{{$}}
----------------
Why can't this be done in a single instruction and what is the `FIXME` for? Maybe a bit of more explanation would help.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D101684/new/
https://reviews.llvm.org/D101684
More information about the llvm-commits
mailing list