blob: 5c38342c84f1bea445e81cf9fb87b56e2618c513 (
plain)
1
2
3
4
5
6
7
8
9
10
|
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep shl &&
; RUN: llvm-as < %s | 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
}
|