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=medium -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:
42 ; CHECK: .cfi_startproc
43 ; CHECK-NEXT: ; %bb.0: ; %entry
44 ; CHECK-NEXT: suba.l #4, %sp
45 ; CHECK-NEXT: .cfi_def_cfa_offset -8
46 ; CHECK-NEXT: jsr (foo@PLT,%pc)
47 ; CHECK-NEXT: jsr (weak_odr_foo@PLT,%pc)
48 ; CHECK-NEXT: jsr (weak_foo@PLT,%pc)
49 ; CHECK-NEXT: jsr (internal_foo,%pc)
50 ; CHECK-NEXT: jsr (ext_baz@PLT,%pc)
51 ; CHECK-NEXT: adda.l #4, %sp
55 call void @weak_odr_foo()
57 call void @internal_foo()
62 ; -fpie for local global data tests should be added here
64 !llvm.module.flags = !{!0, !1}
65 !0 = !{i32 1, !"PIC Level", i32 1}
66 !1 = !{i32 1, !"PIE Level", i32 1}