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
/
InstSimplify
/
ConstProp
/
2002-05-03-DivideByZeroException.ll
blob
e81bfb6cd3b17fb949fb3d91b38b974df660c664
1
; Make sure that the constant propagator doesn't divide by zero!
2
;
3
; RUN: opt < %s -passes=instsimplify
4
;
5
6
define i32 @test() {
7
%R = sdiv i32 12, 0 ; <i32> [#uses=1]
8
ret i32 %R
9
}
10
11
define i32 @test2() {
12
%R = srem i32 12, 0 ; <i32> [#uses=1]
13
ret i32 %R
14
}
15