view test/Transforms/InstCombine/2008-07-09-SubAndError.ll @ 121:803732b1fca8

LLVM 5.0
author kono
date Fri, 27 Oct 2017 17:07:41 +0900
parents 95c75e76d11b
children
line wrap: on
line source

; RUN: opt < %s -instcombine -S | not grep "sub i32 0"
; PR2330

define i32 @foo(i32 %a) nounwind {
entry:
  %A = sub i32 5, %a
  %B = and i32 %A, 2
  ret i32 %B
}