linux-packaging-mono/external/llvm/test/CodeGen/X86/2007-08-10-SignExtSubreg.ll
Xamarin Public Jenkins (auto-signing) e19d552987 Imported Upstream version 5.18.0.161
Former-commit-id: 4db48158d3a35497b8f118ab21b5f08ac3d86d98
2018-10-19 08:34:24 +00:00

12 lines
313 B
LLVM

; RUN: llc < %s -mtriple=i686-- | grep "movsbl"
@X = global i32 0 ; <i32*> [#uses=1]
define i32 @_Z3fooi(i32 %x) {
entry:
store i32 %x, i32* @X, align 4
%retval67 = trunc i32 %x to i8 ; <i8> [#uses=1]
%retval = sext i8 %retval67 to i32
ret i32 %retval
}