blob: 82375bfaf2940d31116f5c45869e2c301c72bde3 [file] [log] [blame]
Chris Lattner679da032002-05-06 17:00:47 +00001; This test makes sure that these instructions are properly eliminated.
2;
3
Chris Lattnerf9b9af02002-08-14 17:37:04 +00004; RUN: if as < %s | opt -instcombine -die | dis | grep xor
Chris Lattner679da032002-05-06 17:00:47 +00005; RUN: then exit 1
6; RUN: else exit 0
7; RUN: fi
8
9implementation
10
11int "test1"(int %A) {
Chris Lattnerf9b9af02002-08-14 17:37:04 +000012 %B = xor int %A
13 %C = xor int %B
Chris Lattner679da032002-05-06 17:00:47 +000014 ret int %C
15}
16