1
; RUN: llc < %s -march=x86 | FileCheck %s -check-prefix=32
2
; RUN: llc < %s -march=x86-64 | FileCheck %s -check-prefix=64
6
define i32 @t1(i32 %x) nounwind readnone ssp {
15
%0 = icmp eq i32 %x, 0
16
%iftmp.0.0 = select i1 %0, i32 -1, i32 0
20
define i32 @t2(i32 %x) nounwind readnone ssp {
29
%0 = icmp eq i32 %x, 0
30
%iftmp.0.0 = sext i1 %0 to i32
34
%struct.zbookmark = type { i64, i64 }
35
%struct.zstream = type { }
37
define i32 @t3() nounwind readonly {
50
%not.tobool = icmp eq i32 undef, 0 ; <i1> [#uses=2]
51
%cond = sext i1 %not.tobool to i32 ; <i32> [#uses=1]
52
%conv = sext i1 %not.tobool to i64 ; <i64> [#uses=1]
53
%add13 = add i64 0, %conv ; <i64> [#uses=1]
54
%cmp = icmp ult i64 undef, %add13 ; <i1> [#uses=1]
55
br i1 %cmp, label %if.then, label %if.end
57
if.then: ; preds = %entry
60
if.end: ; preds = %if.then, %entry
61
%xor27 = xor i32 undef, %cond ; <i32> [#uses=0]