File: expected-global-value-or-symbol-after-call-entry.mir

package info (click to toggle)
llvm-toolchain-14 1%3A14.0.6-12
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,496,180 kB
  • sloc: cpp: 5,593,972; ansic: 986,872; asm: 585,869; python: 184,223; objc: 72,530; lisp: 31,119; f90: 27,793; javascript: 9,780; pascal: 9,762; sh: 9,482; perl: 7,468; ml: 5,432; awk: 3,523; makefile: 2,538; xml: 953; cs: 573; fortran: 567
file content (41 lines) | stat: -rw-r--r-- 1,250 bytes parent folder | download | duplicates (15)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# RUN: not llc -march=mipsel -mattr=mips16 -relocation-model=pic -run-pass none -o /dev/null %s 2>&1 | FileCheck %s
--- |
  define i32 @test(i32 %a) {
  entry:
    %call = call i32 @foo(i32 %a)
    ret i32 0
  }

  declare i32 @foo(i32)
...
---
name:            test
tracksRegLiveness: true
liveins:
  - { reg: '$a0' }
frameInfo:
  stackSize:       24
  maxAlignment:    4
  adjustsStack:    true
  hasCalls:        true
  maxCallFrameSize: 16
stack:
  - { id: 0, type: spill-slot, offset: -4, size: 4, alignment: 4,
      callee-saved-register: '$ra' }
body: |
  bb.0.entry:
    liveins: $a0, $ra

    Save16 $ra, 24, implicit-def $sp, implicit $sp
    $v0, $v1 = GotPrologue16 &_gp_disp, &_gp_disp
    $v0 = SllX16 killed $v0, 16
    $v0 = AdduRxRyRz16 killed $v1, killed $v0
  ; CHECK: [[@LINE+1]]:71: expected a global value or an external symbol after 'call-entry'
    $v1 = LwRxRyOffMemX16 $v0, @foo, 0 :: (load (s32) from call-entry foo)
    $t9 = COPY $v1
    $gp = COPY killed $v0
    JumpLinkReg16 killed $v1, csr_o32, implicit-def $ra, implicit killed $t9, implicit $a0, implicit killed $gp, implicit-def $sp, implicit-def dead $v0
    $v0 = LiRxImmX16 0
    $ra = Restore16 24, implicit-def $sp, implicit $sp
    RetRA16 implicit $v0
...