1 ; This test makes sure that these instructions are properly eliminated.
4 ; RUN: if as < %s | opt -instcombine -die | dis | grep sub | grep -v 'sub int %Cok, %Bok'
12 %B = sub int %A, %A ; ISA constant 0
22 %B = sub int 0, %A ; B = -A
23 %C = sub int 0, %B ; C = -B = A
27 int "test4"(int %A, int %x) {
33 int "test5"(int %A, int %Bok, int %Cok) {
34 %D = sub int %Bok, %Cok