Dan Gohman | 1880092 | 2009-09-11 18:01:28 +0000 | [diff] [blame] | 1 | ; RUN: opt < %s -instcombine -S | grep srem |
Eli Friedman | a0fba53 | 2009-06-17 02:57:36 +0000 | [diff] [blame] | 2 | ; PR3439 |
3 | |||||
4 | define i32 @a(i32 %x) nounwind { | ||||
5 | entry: | ||||
6 | %rem = srem i32 %x, 2 | ||||
7 | %and = and i32 %rem, 2 | ||||
8 | ret i32 %and | ||||
9 | } |