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

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