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