Skip to content
This repository was archived by the owner on Sep 2, 2018. It is now read-only.

Commit bd648d0

Browse files
author
Dylan McKay
committed
Add XFAIL test for assertion error
1 parent 3c0d2ad commit bd648d0

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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+

0 commit comments

Comments
 (0)