llvm.org GIT mirror llvm / release_34 test / Analysis / ScalarEvolution / and-xor.ll
release_34

Tree @release_34 (Download .tar.gz)

and-xor.ll @release_34raw · history · blame

; RUN: opt < %s -scalar-evolution -analyze | FileCheck %s

; CHECK: -->  (zext
; CHECK: -->  (zext
; CHECK-NOT: -->  (zext

define i32 @foo(i32 %x) {
  %n = and i32 %x, 255
  %y = xor i32 %n, 255
  ret i32 %y
}