Recommit r310809 with a fix for the spill problem
[llvm-core.git] / test / CodeGen / PowerPC / seteq-0.ll
blob721b6613c8ccc5dfb0af1ec69b13a963e75d26e2
1 ; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-apple-darwin8 | FileCheck %s
3 define i32 @eq0(i32 %a) {
4         %tmp.1 = icmp eq i32 %a, 0              ; <i1> [#uses=1]
5         %tmp.2 = zext i1 %tmp.1 to i32          ; <i32> [#uses=1]
6         ret i32 %tmp.2
8 ; CHECK: cntlzw [[REG:r[0-9]+]], r3
9 ; CHECK: rlwinm r3, [[REG]], 27, 31, 31
10 ; CHECK: blr