blob: dcbdfa24d9a1d0eec62d0657158d30810d0d3be3 [file] [log] [blame]
Chris Lattnera1651c72002-08-02 18:46:53 +00001; This testcase is incorrectly getting completely eliminated. There should be
2; SOME instruction named %c here, even if it's a bitwise and.
3;
Chris Lattnerf6f95d02002-08-02 19:27:58 +00004; RUN: as < %s | opt -instcombine | grep '%c'
Chris Lattnerab3aeb72002-08-02 19:54:05 +00005;
Chris Lattnera1651c72002-08-02 18:46:53 +00006ulong %test3(ulong %A) {
Chris Lattnerab3aeb72002-08-02 19:54:05 +00007 %c1 = cast ulong %A to ubyte
8 %c2 = cast ubyte %c1 to ulong
Chris Lattnera1651c72002-08-02 18:46:53 +00009 ret ulong %A
10}
11