brintos

brintos / llvm-project-archived public Read only

0
0
Text · 567 B · f23b7f8 Raw
22 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc < %s | FileCheck %s3 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: ## %entry15; CHECK-NEXT:    movl %edi, %eax16; CHECK-NEXT:    retq17entry:18        %tmp12 = sext i16 %X to i32             ; <i32> [#uses=1]19        ret i32 %tmp1220}21 22