projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Use the llvm-upgrade program to upgrade llvm assembly.
[oota-llvm.git]
/
test
/
Transforms
/
ConstProp
/
remtest.ll
1
; Ensure constant propagation of remainder instructions is working correctly.
2
3
; RUN: llvm-upgrade < %s | llvm-as | opt -constprop -die | llvm-dis | not grep rem
4
5
int %test1() {
6
%R = rem int 4, 3
7
ret int %R
8
}
9
10
int %test2() {
11
%R = rem int 123, -23
12
ret int %R
13
}
14
15
float %test3() {
16
%R = rem float 12.45, 123.213
17
ret float %R
18
}
19
20
double %test4() {
21
%R = rem double 312.20213123, 12.3333412
22
ret double %R
23
}