diff options
author | Dan Gohman <dan433584@gmail.com> | 2015-12-10 01:00:19 +0000 |
---|---|---|
committer | Dan Gohman <dan433584@gmail.com> | 2015-12-10 01:00:19 +0000 |
commit | a5603b835ba1ef0dec4b57d93d156c9914f30f79 (patch) | |
tree | 2b59bf512e4078c22819b76cf1bf397b774ffa3c /llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp | |
parent | 71d0eae609e2860578ec322695e08f2934086f6c (diff) | |
download | llvm-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.cpp | 2 |
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. |