1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00
llvm-mirror/test/CodeGen/Hexagon/isel-i1arg-crash.ll
Krzysztof Parzyszek fc4d778298 [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.

llvm-svn: 296645
2017-03-01 17:30:10 +00:00

7 lines
109 B
LLVM

; RUN: llc -march=hexagon -debug-only=isel < %s
; REQUIRES: asserts
define void @g(i1 %cond) {
ret void
}