blob: 12fc742a5fe949df8f0fc0e11dd25503e9b1caef (
plain)
1
2
3
4
5
6
7
8
9
10
|
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | grep shl &&
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | notcast
; This cannot be turned into a sign extending cast!
long %test(long %X) {
%Y = shl long %X, ubyte 16
%Z = shr long %Y, ubyte 16
ret long %Z
}
|