blob: 2e762830407664057c4720ad9ede3f7a10ce9424 [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 Lattnera479fec2002-08-02 19:59:20 +00004; RUN: as < %s | opt -instcombine -die | dis | 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 Lattnera479fec2002-08-02 19:59:20 +00009 ret ulong %c2
Chris Lattnera1651c72002-08-02 18:46:53 +000010}
11