blob: 911a73f57c2ae7ce0d91aa0ceeb88fdfeb73e7a1 [file] [log] [blame]
Chris Lattner1cc12172004-02-23 20:19:51 +00001; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep 34
2
3int %test(int %X) {
4 ; Do not fold into shr X, 34, as this uses undefined behavior!
5 %Y = shr int %X, ubyte 17
6 %Z = shr int %Y, ubyte 17
7 ret int %Z
8}