1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s | FileCheck %s
4 ; The input value is already sign extended, don't re-extend it.
5 ; This testcase corresponds to:
6 ; int test(short X) { return (int)X; }
8 target datalayout = "e-p:64:64"
9 target triple = "x86_64-apple-darwin8"
12 define i32 @test(i16 signext %X) {
14 ; CHECK: ## %bb.0: ## %entry
15 ; CHECK-NEXT: movl %edi, %eax
18 %tmp12 = sext i16 %X to i32 ; <i32> [#uses=1]