]> granicus.if.org Git - llvm/commit
[Hexagon] Fix lowering of formal arguments of type i1
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>
Wed, 1 Mar 2017 17:30:10 +0000 (17:30 +0000)
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>
Wed, 1 Mar 2017 17:30:10 +0000 (17:30 +0000)
commit0d19bb2ccae1755c6d600adc83d1a2943c95d597
tree019fcde9c9ec2ab5294e2d04fe599b255caf4953
parentece82f9d23b2b7d6ad3008c510dbda15bd9fb303
[Hexagon] Fix lowering of formal arguments of type i1

On Hexagon, values of type i1 are passed in registers of type i32,
even though i1 is not a legal value for these registers. This is a
special case and needs special handling to maintain consistency of
the lowering information.

This fixes PR32089.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@296645 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Hexagon/HexagonISelLowering.cpp
test/CodeGen/Hexagon/isel-i1arg-crash.ll [new file with mode: 0644]