1; RUN: llc < %s -march=avr | FileCheck %s
2
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}
22