blob: c293dcd8efe9c9d13699d786b0bbdfffeb2be49e [file] [log] [blame]
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: llc < %s -mtriple=i686-unknown-linux-gnu | FileCheck %s
define signext i8 @foo(i16 signext %x) nounwind {
; CHECK-LABEL: foo:
; CHECK: # %bb.0:
; CHECK-NEXT: movzbl {{[0-9]+}}(%esp), %eax
; CHECK-NEXT: retl
%retval56 = trunc i16 %x to i8
ret i8 %retval56
}