repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[rtsan] Add fork/execve interceptors (#117198)
[llvm-project.git]
/
llvm
/
test
/
Transforms
/
InstCombine
/
2011-03-08-SRemMinusOneBadOpt.ll
blob
f87cd83e8d03aa153844294a985c8b257ccab3f5
1
; RUN: opt < %s -passes=instcombine -S | FileCheck %s
2
; PR9346
3
4
define i32 @test(i64 %x) nounwind {
5
; CHECK: ret i32 0
6
entry:
7
%or = or i64 %x, 4294967294
8
%conv = trunc i64 %or to i32
9
%rem.i = srem i32 %conv, -1
10
ret i32 %rem.i
11
}
12