blob: 176948a7f9b7ae03b542d5b832b47d226585eedb [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; RUN: llvm-upgrade < %s | llvm-as | opt -reassociate -instcombine -constprop -die | llvm-dis | not grep 5
2
3int %test(int %A, int %B) {
4 %W = add int %B, -5
5 %Y = add int %A, 5
6 %Z = add int %W, %Y
7 ret int %Z
8}