1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -O0 -mtriple=m68k -verify-machineinstrs \
3 ; RUN: -code-model=small -relocation-model=pic \
6 define weak void @weak_foo() {
7 ; CHECK-LABEL: weak_foo:
8 ; CHECK: .cfi_startproc
14 define weak_odr void @weak_odr_foo() {
15 ; CHECK-LABEL: weak_odr_foo:
16 ; CHECK: .cfi_startproc
17 ; CHECK-NEXT: ; %bb.0:
22 define internal void @internal_foo() {
23 ; CHECK-LABEL: internal_foo:
24 ; CHECK: .cfi_startproc
25 ; CHECK-NEXT: ; %bb.0:
30 declare i32 @ext_baz()
34 ; CHECK: .cfi_startproc
35 ; CHECK-NEXT: ; %bb.0:
43 ; CHECK: .cfi_startproc
44 ; CHECK-NEXT: ; %bb.0: ; %entry
45 ; CHECK-NEXT: suba.l #4, %sp
46 ; CHECK-NEXT: .cfi_def_cfa_offset -8
47 ; CHECK-NEXT: jsr (foo@PLT,%pc)
48 ; CHECK-NEXT: jsr (weak_odr_foo@PLT,%pc)
49 ; CHECK-NEXT: jsr (weak_foo@PLT,%pc)
50 ; CHECK-NEXT: jsr (internal_foo,%pc)
51 ; CHECK-NEXT: jsr (ext_baz@PLT,%pc)
52 ; CHECK-NEXT: adda.l #4, %sp
56 call void @weak_odr_foo()
58 call void @internal_foo()
63 ; -fpie for local global data tests should be added here
65 !llvm.module.flags = !{!0, !1}
66 !0 = !{i32 1, !"PIC Level", i32 1}
67 !1 = !{i32 1, !"PIE Level", i32 1}