blob: eb61a14eaaec4d42eabf92679586316682bfd723 [file] [log] [blame]
Chris Lattner8e122e12002-05-03 20:14:21 +00001; 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
8int "test1"() {
9 %R = rem int 4, 3
10 ret int %R
11}
12
13int "test2"() {
14 %R = rem int 123, -23
15 ret int %R
16}
17