1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py 2; RUN: llc < %s -mtriple=x86_64-- -relocation-model=pic | FileCheck %s 3 4@x = common global i16 0 5 6define signext i16 @f() nounwind { 7; CHECK-LABEL: f: 8; CHECK: # %bb.0: # %entry 9; CHECK-NEXT: pushq %rax 10; CHECK-NEXT: callq h@PLT 11; CHECK-NEXT: movswl %ax, %edi 12; CHECK-NEXT: callq g@PLT 13; CHECK-NEXT: movq x@GOTPCREL(%rip), %rax 14; CHECK-NEXT: movzwl (%rax), %eax 15; CHECK-NEXT: popq %rcx 16; CHECK-NEXT: retq 17entry: 18 %0 = tail call signext i16 @h() nounwind 19 %1 = sext i16 %0 to i32 20 tail call void @g(i32 %1) nounwind 21 %2 = load i16, i16* @x, align 2 22 ret i16 %2 23} 24 25declare signext i16 @h() 26 27declare void @g(i32) 28