aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
diff options
context:
space:
mode:
authorDan Gohman <dan433584@gmail.com>2015-12-10 01:00:19 +0000
committerDan Gohman <dan433584@gmail.com>2015-12-10 01:00:19 +0000
commita5603b835ba1ef0dec4b57d93d156c9914f30f79 (patch)
tree2b59bf512e4078c22819b76cf1bf397b774ffa3c /llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
parent71d0eae609e2860578ec322695e08f2934086f6c (diff)
downloadllvm-a5603b835ba1ef0dec4b57d93d156c9914f30f79.zip
llvm-a5603b835ba1ef0dec4b57d93d156c9914f30f79.tar.gz
llvm-a5603b835ba1ef0dec4b57d93d156c9914f30f79.tar.bz2
[WebAssembly] Also legalize sign_extend_inreg of i32->i64.
llvm-svn: 255191
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp')
-rw-r--r--llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
index 37b82d6..21a28e3 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
@@ -159,7 +159,7 @@ WebAssemblyTargetLowering::WebAssemblyTargetLowering(
// As a special case, these operators use the type to mean the type to
// sign-extend from.
- for (auto T : {MVT::i1, MVT::i8, MVT::i16})
+ for (auto T : {MVT::i1, MVT::i8, MVT::i16, MVT::i32})
setOperationAction(ISD::SIGN_EXTEND_INREG, T, Expand);
// Dynamic stack allocation: use the default expansion.