Mercurial > hg > CbC > CbC_llvm
view llvm/test/Transforms/Reassociate/min_int.ll @ 225:f7655407a6ba
remove unnecessary files
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 19 Jul 2021 03:48:36 +0900 |
parents | 1d019706d866 |
children | 1f2b6ac9f198 |
line wrap: on
line source
; RUN: opt < %s -reassociate -dce -S | FileCheck %s ; MIN_INT cannot be negated during reassociation define i32 @minint(i32 %i) { ; CHECK: %mul = mul i32 %i, -2147483648 ; CHECK-NEXT: %add = add i32 %mul, 1 ; CHECK-NEXT: ret i32 %add %mul = mul i32 %i, -2147483648 %add = add i32 %mul, 1 ret i32 %add }