[mips] Fix 'l' constraint handling for types smaller than 32 bits
authorSimon Atanasyan <simon@atanasyan.com>
Mon, 12 Feb 2018 07:51:21 +0000 (07:51 +0000)
committerSimon Atanasyan <simon@atanasyan.com>
Mon, 12 Feb 2018 07:51:21 +0000 (07:51 +0000)
commite08f2a19d487bde254860bb3f9368a86105e16f9
tree695ab64e1616bbd25898fbf89b4d2ca5e1532a32
parentbf82e99691c890d00de0d411326bc4a592e15eb0
[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.

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