llvm-6502/test/Transforms/InstCombine/2006-02-13-DemandedMiscompile.ll
2006-12-02 04:23:10 +00:00

10 lines
246 B
LLVM

; 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
}