diff options
author | Wouter van Oortmerssen <aardappel@gmail.com> | 2018-11-19 17:10:36 +0000 |
---|---|---|
committer | Wouter van Oortmerssen <aardappel@gmail.com> | 2018-11-19 17:10:36 +0000 |
commit | 49482f824a0d92f8f97121aaa6e82f409ff23d58 (patch) | |
tree | b6619cb3dddaca091bf225cbeadfc1fa224c0904 /llvm/test/CodeGen/WebAssembly/f32.ll | |
parent | b25adf5edba0bfb487828600f4294702e695fdba (diff) | |
download | bcm5719-llvm-49482f824a0d92f8f97121aaa6e82f409ff23d58.tar.gz bcm5719-llvm-49482f824a0d92f8f97121aaa6e82f409ff23d58.zip |
[WebAssembly] replaced .param/.result by .functype
Summary:
This makes it easier/cleaner to generate a single signature from
this directive. Also:
- Adds the symbol name, such that we don't depend on the location
of this directive anymore.
- Actually constructs the signature in the assembler, and make the
assembler own it.
- Refactor the use of MVT vs ValType in the streamer and assembler
to require less conversions overall.
- Changed 700 or so tests to use it.
Reviewers: sbc100, dschuff
Subscribers: jgravelle-google, eraman, aheejin, sunfish, jfb, llvm-commits
Differential Revision: https://reviews.llvm.org/D54652
llvm-svn: 347228
Diffstat (limited to 'llvm/test/CodeGen/WebAssembly/f32.ll')
-rw-r--r-- | llvm/test/CodeGen/WebAssembly/f32.ll | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/test/CodeGen/WebAssembly/f32.ll b/llvm/test/CodeGen/WebAssembly/f32.ll index 27520d035c9..fd89261f172 100644 --- a/llvm/test/CodeGen/WebAssembly/f32.ll +++ b/llvm/test/CodeGen/WebAssembly/f32.ll @@ -16,8 +16,7 @@ declare float @llvm.rint.f32(float) declare float @llvm.fma.f32(float, float, float) ; CHECK-LABEL: fadd32: -; CHECK-NEXT: .param f32, f32{{$}} -; CHECK-NEXT: .result f32{{$}} +; CHECK-NEXT: .functype fadd32 (f32, f32) -> (f32){{$}} ; CHECK-NEXT: get_local $push[[L0:[0-9]+]]=, 0{{$}} ; CHECK-NEXT: get_local $push[[L1:[0-9]+]]=, 1{{$}} ; CHECK-NEXT: f32.add $push[[LR:[0-9]+]]=, $pop[[L0]], $pop[[L1]]{{$}} |