blob: 554c059b1f7c59703181be9a0886f8e568147da7 [file] [log] [blame]
Chris Lattner74e95472002-05-06 05:43:36 +00001; This test makes sure that these instructions are properly eliminated.
2;
3
Chris Lattnerf6f95d02002-08-02 19:27:58 +00004; RUN: if as < %s | opt -instcombine | dis | grep rem
Chris Lattner74e95472002-05-06 05:43:36 +00005; RUN: then exit 1
6; RUN: else exit 0
7; RUN: fi
8
9implementation
10
11int "test1"(int %A) {
12 %B = rem int %A, 1 ; ISA constant 0
13 ret int %B
14}
15