mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 12:12:47 +01:00
205b641954
input filename so that opt doesn't print the input filename in the output so that grep lines in the tests don't unintentionally match strings in the input filename. llvm-svn: 81537
23 lines
441 B
LLVM
23 lines
441 B
LLVM
; RUN: opt < %s -instcombine -inline -S | not grep '-715827882'
|
|
; PR3142
|
|
|
|
define i32 @a(i32 %X) nounwind readnone {
|
|
entry:
|
|
%0 = sub i32 0, %X
|
|
%1 = sdiv i32 %0, -3
|
|
ret i32 %1
|
|
}
|
|
|
|
define i32 @b(i32 %X) nounwind readnone {
|
|
entry:
|
|
%0 = call i32 @a(i32 -2147483648)
|
|
ret i32 %0
|
|
}
|
|
|
|
define i32 @c(i32 %X) nounwind readnone {
|
|
entry:
|
|
%0 = sub i32 0, -2147483648
|
|
%1 = sdiv i32 %0, -3
|
|
ret i32 %1
|
|
}
|