projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
ae418a8d6c5f9e8ce7552d50019937601f17034a
[oota-llvm.git]
/
test
/
Transforms
/
ConstProp
/
remtest.ll
1
; Ensure constant propogation of remainder instructions is working correctly.
2
3
; RUN: if as < %s | opt -constprop | dis | grep rem
4
; RUN: then exit 1
5
; RUN: else exit 0
6
; RUN: fi
7
8
int "test1"() {
9
%R = rem int 4, 3
10
ret int %R
11
}
12
13
int "test2"() {
14
%R = rem int 123, -23
15
ret int %R
16
}
17
18
float "test3"() {
19
%R = rem float 12.45, 123.213
20
ret float %R
21
}
22
23
double "test4"() {
24
%R = rem double 312.20213123, 12.3333412
25
ret double %R
26
}