[mips] Fix 'l' constraint handling for types smaller than 32 bits
authorSimon Atanasyan <simon@atanasyan.com>
Mon, 12 Feb 2018 12:21:55 +0000 (12:21 +0000)
committerSimon Atanasyan <simon@atanasyan.com>
Mon, 12 Feb 2018 12:21:55 +0000 (12:21 +0000)
commit0874cf5e6224760ab86eca55cd882d1f147583d8
tree99713f2fa9883dfddb5e93b5518c602714f6912b
parent4ba5817b8b7fe5f136c8f95287e02eeaa69d630b
[mips] Fix 'l' constraint handling for types smaller than 32 bits

In case of correct using of the 'l' constraint llvm now generates valid
code; otherwise it shows an error message. Initially these triggers an
assertion.

This commit is the same as r324869 with fixed the test's file name.

llvm-svn: 324885
llvm/lib/Target/Mips/MipsISelLowering.cpp
llvm/test/CodeGen/Mips/inlineasm-cnstrnt-bad-l1.ll [new file with mode: 0644]
llvm/test/CodeGen/Mips/inlineasm-cnstrnt-reg.ll