blob: 99be3c8068df3c9ce886034f5e10ed70c8f254c9 [file] [log] [blame]
Dylan McKaya789f402016-11-16 21:58:04 +00001; RUN: llc < %s -march=avr | FileCheck %s
Dylan McKaya789f402016-11-16 21:58:04 +00002
3; Causes an assertion error
4; Assertion failed: (Lo.getValueType() == TLI.getTypeToTransformTo(*DAG.getContext(), Op.getValueType()) &&
5; Hi.getValueType() == Lo.getValueType() &&
6; "Invalid type for expanded integer"),
7; function SetExpandedInteger
8; file lib/CodeGen/SelectionDAG/LegalizeTypes.cpp
9
10; CHECK-LABEL: foo
11define void @foo(i16 %a) {
12ifcont:
13 %cmp_result = icmp eq i16 %a, 255
14 %bool_result = uitofp i1 %cmp_result to double
15 %result = fcmp one double 0.000000e+00, %bool_result
16 br i1 %result, label %then, label %else
17then:
18 ret void
19else:
20 ret void
21}