New testcase

llvm-svn: 3218
This commit is contained in:
Chris Lattner 2002-08-02 18:46:53 +00:00
parent 15bd3ad996
commit a1651c750b
1 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,10 @@
; This testcase is incorrectly getting completely eliminated. There should be
; SOME instruction named %c here, even if it's a bitwise and.
;
; RUN: as < %s | opt -instcombine -dce | grep '%c'
ulong %test3(ulong %A) {
%c1 = cast ulong %A to ubyte ; <ubyte> [#uses=0]
%c2 = cast ulong %A to ulong ; <ulong> [#uses=0]
ret ulong %A
}