Recommit r310809 with a fix for the spill problem
[llvm-core.git] / test / CodeGen / PowerPC / compare-duplicate.ll
blob60e27128ccfa7f3d5a80c382b4bc469e243487e1
1 ; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-apple-darwin8  | not grep slwi
3 define i32 @test(i32 %A, i32 %B) {
4         %C = sub i32 %B, %A
5         %D = icmp eq i32 %C, %A
6         br i1 %D, label %T, label %F
7 T:
8         ret i32 19123
9 F:
10         ret i32 %C