aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/InstCombine/2006-02-13-DemandedMiscompile.ll
blob: f3457751492019ae8958ff90827b911e2fd0290d (plain)
1
2
3
4
5
6
7
8
9
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine -disable-output &&
; RUN: llvm-upgrade < %s | llvm-as | 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
}