Dylan McKay | a789f40 | 2016-11-16 21:58:04 +0000 | [diff] [blame^] | 1 | ; 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 |
| 12 | define void @foo(i16 %a) { |
| 13 | ifcont: |
| 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 |
| 18 | then: |
| 19 | ret void |
| 20 | else: |
| 21 | ret void |
| 22 | } |
| 23 | |