mirror of
https://github.com/RPCS3/llvm.git
synced 2026-07-19 23:23:38 -04:00
598198edbc
The reversion apparently deleted the test/Transforms directory. Will be re-reverting again. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@358552 91177308-0d34-0410-b5e6-96231b3b80d8
14 lines
315 B
LLVM
14 lines
315 B
LLVM
; 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
|
|
}
|
|
|