blob: 176948a7f9b7ae03b542d5b832b47d226585eedb [file] [log] [blame]
Reid Spencer69ccadd2006-12-02 04:23:10 +00001; RUN: llvm-upgrade < %s | llvm-as | 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}