diff options
Diffstat (limited to 'test/Analysis/ScalarEvolution/and-xor.ll')
-rw-r--r-- | test/Analysis/ScalarEvolution/and-xor.ll | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Analysis/ScalarEvolution/and-xor.ll b/test/Analysis/ScalarEvolution/and-xor.ll new file mode 100644 index 0000000..1772573 --- /dev/null +++ b/test/Analysis/ScalarEvolution/and-xor.ll @@ -0,0 +1,8 @@ +; RUN: opt < %s -scalar-evolution -analyze \ +; RUN: | grep {\\--> (zext} | count 2 + +define i32 @foo(i32 %x) { + %n = and i32 %x, 255 + %y = xor i32 %n, 255 + ret i32 %y +} |