blob: 0f0afe9e665a0dec79397cfbdfbad06576667ffb [file] [log] [blame]
Tanya Lattnercfab3da2008-02-19 08:07:33 +00001; RUN: llvm-as < %s | \
Reid Spencerc58ef012007-04-15 21:17:45 +00002; RUN: llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | \
3; RUN: grep {srwi r., r., 5}
Chris Lattner135a0422005-08-24 16:48:49 +00004
Tanya Lattnercfab3da2008-02-19 08:07:33 +00005define i32 @eq0(i32 %a) {
6 %tmp.1 = icmp eq i32 %a, 0 ; <i1> [#uses=1]
7 %tmp.2 = zext i1 %tmp.1 to i32 ; <i32> [#uses=1]
8 ret i32 %tmp.2
Chris Lattner135a0422005-08-24 16:48:49 +00009}
Tanya Lattnercfab3da2008-02-19 08:07:33 +000010