projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rdar://12753946
[oota-llvm.git]
/
test
/
Transforms
/
ConstProp
/
2002-05-03-DivideByZeroException.ll
diff --git
a/test/Transforms/ConstProp/2002-05-03-DivideByZeroException.ll
b/test/Transforms/ConstProp/2002-05-03-DivideByZeroException.ll
index ddfd7d10c4213cb75992f989fc841f6cd42eed7a..15a6211893826ccbe134e613fcc9e180beff8a19 100644
(file)
--- a/
test/Transforms/ConstProp/2002-05-03-DivideByZeroException.ll
+++ b/
test/Transforms/ConstProp/2002-05-03-DivideByZeroException.ll
@@
-1,14
+1,15
@@
; Make sure that the constant propogator doesn't divide by zero!
;
; Make sure that the constant propogator doesn't divide by zero!
;
-; RUN:
as < %s | opt
-constprop
+; RUN:
opt < %s
-constprop
;
;
-
int "test"
() {
- %R = div int 12, 0
-
ret int
%R
+
define i32 @test
() {
+ %R = sdiv i32 12, 0 ; <i32> [#uses=1]
+
ret i32
%R
}
}
-
int "test2"
() {
- %R = rem int 12, 0
-
ret int
%R
+
define i32 @test2
() {
+ %R = srem i32 12, 0 ; <i32> [#uses=1]
+
ret i32
%R
}
}
+