1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py 2; RUN: llc < %s | FileCheck %s 3 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; } 7 8target datalayout = "e-p:64:64" 9target triple = "x86_64-apple-darwin8" 10 11 12define i32 @test(i16 signext %X) { 13; CHECK-LABEL: test: 14; CHECK: ## %bb.0: ## %entry 15; CHECK-NEXT: movl %edi, %eax 16; CHECK-NEXT: retq 17entry: 18 %tmp12 = sext i16 %X to i32 ; <i32> [#uses=1] 19 ret i32 %tmp12 20} 21 22