aboutsummaryrefslogtreecommitdiff
path: root/test/Transforms/InstCombine/2006-02-13-DemandedMiscompile.ll
blob: f0703386553c8b6e0c13395ebe5727a248f1f04f (plain)
1
2
3
4
5
6
7
8
9
; RUN: llvm-as < %s | opt -instcombine -disable-output &&
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep undef

int %test(sbyte %A) {
	%B = cast sbyte %A to int
	%C = shr int %B, ubyte 8
	ret int %C
}