blob: 688b29aa124f4bc21db48ce970210207396ea73e [file] [log] [blame]
Dan Gohman0cb2f672009-09-11 18:36:27 +00001; RUN: llc < %s -march=ppc32 -mtriple=powerpc-apple-darwin8 | \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002; RUN: grep {srwi r., r., 5}
3
Tanya Lattner5ebaf3b2008-02-19 08:07:33 +00004define i32 @eq0(i32 %a) {
5 %tmp.1 = icmp eq i32 %a, 0 ; <i1> [#uses=1]
6 %tmp.2 = zext i1 %tmp.1 to i32 ; <i32> [#uses=1]
7 ret i32 %tmp.2
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008}
Tanya Lattner5ebaf3b2008-02-19 08:07:33 +00009