13 lines
360 B
LLVM
13 lines
360 B
LLVM
; 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
|
|
|
|
}
|