blob: 23284a6312dbadbafb82559a3641c84632172656 [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;
Reid Spencer91948d42007-04-14 20:13:02 +00004; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-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