You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
469 B
19 lines
469 B
4 months ago
|
; RUN: llc < %s
|
||
|
|
||
|
; PR33094
|
||
|
; Make sure that a constant extractvalue doesn't cause a crash in
|
||
|
; SelectionDAGBuilder::visitExtractValue.
|
||
|
|
||
|
%A = type {}
|
||
|
%B = type {}
|
||
|
%Tuple = type { i64 }
|
||
|
|
||
|
@A_Inst = global %A zeroinitializer
|
||
|
@B_Inst = global %B zeroinitializer
|
||
|
|
||
|
define i64 @foo() {
|
||
|
ret i64 extractvalue (%Tuple select (i1 icmp eq
|
||
|
(%B* bitcast (%A* @A_Inst to %B*), %B* @B_Inst),
|
||
|
%Tuple { i64 33 }, %Tuple { i64 42 }), 0)
|
||
|
}
|