1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00
llvm-mirror/test/CodeGen/Generic/pr12507.ll
Rafael Espindola 9febd1fbf7 Don't try to zExt just to check if an integer constant is zero, it might
not fit in a i64.

llvm-svn: 154364
2012-04-10 00:16:22 +00:00

19 lines
368 B
LLVM

; RUN: llc < %s
@c = external global i32, align 4
define void @foo(i160 %x) {
entry:
%cmp.i = icmp ne i160 %x, 340282366920938463463374607431768211456
%conv.i = zext i1 %cmp.i to i32
%tobool.i = icmp eq i32 %conv.i, 0
br i1 %tobool.i, label %if.then.i, label %fn1.exit
if.then.i:
store i32 0, i32* @c, align 4
br label %fn1.exit
fn1.exit:
ret void
}