summaryrefslogtreecommitdiffstats
path: root/llvm/test/MC/WebAssembly
diff options
context:
space:
mode:
authorWouter van Oortmerssen <aardappel@gmail.com>2019-07-08 16:58:37 +0000
committerWouter van Oortmerssen <aardappel@gmail.com>2019-07-08 16:58:37 +0000
commit81db9f543ceb2f91a03ed5ce01f734f580829e47 (patch)
tree877531b85a413298e633edd30ba21b591f6d2da1 /llvm/test/MC/WebAssembly
parent224d8cd987b6b66292f1c56928d17997dba3bc2a (diff)
downloadbcm5719-llvm-81db9f543ceb2f91a03ed5ce01f734f580829e47.tar.gz
bcm5719-llvm-81db9f543ceb2f91a03ed5ce01f734f580829e47.zip
[WebAssembly] tablegen: distinguish float/int immediate operands.
Summary: Before, they were one category of operands which could cause crashes in non-sensical combinations, e.g. "f32.const symbol". Now these are forced to be an error. Reviewers: dschuff Subscribers: sbc100, jgravelle-google, aheejin, sunfish, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D64039 llvm-svn: 365351
Diffstat (limited to 'llvm/test/MC/WebAssembly')
-rw-r--r--llvm/test/MC/WebAssembly/basic-assembly-errors.s4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/test/MC/WebAssembly/basic-assembly-errors.s b/llvm/test/MC/WebAssembly/basic-assembly-errors.s
index eead082e93f..ba990f14e11 100644
--- a/llvm/test/MC/WebAssembly/basic-assembly-errors.s
+++ b/llvm/test/MC/WebAssembly/basic-assembly-errors.s
@@ -1,5 +1,9 @@
# RUN: not llvm-mc -triple=wasm32-unknown-unknown -mattr=+simd128,+nontrapping-fptoint,+exception-handling < %s 2>&1 | FileCheck %s
+# CHECK: invalid operand for instruction
+# (must be 0.0 or similar)
+ f32.const 0
+
# CHECK: End of block construct with no start: end_try
end_try
test0:
OpenPOWER on IntegriCloud