1*76f73404SNico Weber; REQUIRES: x86 2*76f73404SNico Weber; RUN: llvm-as %s -o %t.o 3*76f73404SNico Weber; RUN: %lld %t.o -o %t 4*76f73404SNico Weber; RUN: llvm-objdump -d %t | FileCheck %s 5*76f73404SNico Weber 6*76f73404SNico Weber; CHECK: <_foo>: 7*76f73404SNico Weber; CHECK-NEXT: retq 8*76f73404SNico Weber 9*76f73404SNico Weber; CHECK: <_main>: 10*76f73404SNico Weber; CHECK-NEXT: jmp {{.*}} <_foo> 11*76f73404SNico Weber 12*76f73404SNico Webertarget triple = "x86_64-apple-macosx10.15.0" 13*76f73404SNico Webertarget datalayout = "e-m:o-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" 14*76f73404SNico Weber 15*76f73404SNico Webermodule asm ".text" 16*76f73404SNico Webermodule asm ".globl _foo" 17*76f73404SNico Webermodule asm "_foo: ret" 18*76f73404SNico Weber 19*76f73404SNico Weberdeclare void @foo() 20*76f73404SNico Weber 21*76f73404SNico Weberdefine void @main() { 22*76f73404SNico Weber call void @foo() 23*76f73404SNico Weber ret void 24*76f73404SNico Weber} 25