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
4 @x = common global i16 0
6 define signext i16 @f() nounwind {
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
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, ptr @x, align 2
25 declare signext i16 @h()