2008-07-09-SubAndError.ll 164 B

123456789
  1. ; RUN: opt < %s -instcombine -S | not grep "sub i32 0"
  2. ; PR2330
  3. define i32 @foo(i32 %a) nounwind {
  4. entry:
  5. %A = sub i32 5, %a
  6. %B = and i32 %A, 2
  7. ret i32 %B
  8. }