1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-31 07:52:55 +01:00
llvm-mirror/test/Regression/Transforms/InstCombine/2002-08-02-CastTest.ll

12 lines
332 B
LLVM
Raw Normal View History

2002-08-02 20:46:53 +02:00
; This testcase is incorrectly getting completely eliminated. There should be
; SOME instruction named %c here, even if it's a bitwise and.
;
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep '%c'
2002-08-02 21:54:05 +02:00
;
2002-08-02 20:46:53 +02:00
ulong %test3(ulong %A) {
2002-08-02 21:54:05 +02:00
%c1 = cast ulong %A to ubyte
%c2 = cast ubyte %c1 to ulong
ret ulong %c2
2002-08-02 20:46:53 +02:00
}