blob: fce2cdec0ee3e011bf3e6d83ac168b058d995cc4 [file] [log] [blame]
Misha Brukmane78760e2003-09-16 15:29:54 +00001; RUN: llvm-as < %s | opt -reassociate -instcombine -constprop -die | llvm-dis | not grep 5
Chris Lattnerb064baf2002-05-15 21:56:51 +00002
Chris Lattner50e86822003-06-28 23:23:34 +00003int %test(int %A, int %B) {
Chris Lattnerb064baf2002-05-15 21:56:51 +00004 %W = add int %B, -5
5 %Y = add int %A, 5
6 %Z = add int %W, %Y
7 ret int %Z
8}