Home | History | Annotate | Download | only in Mips
      1 # RUN: not llc -march=mipsel -mattr=mips16 -relocation-model=pic -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s
      2 --- |
      3   define i32 @test(i32 %a) {
      4   entry:
      5     %call = call i32 @foo(i32 %a)
      6     ret i32 0
      7   }
      8 
      9   declare i32 @foo(i32)
     10 ...
     11 ---
     12 name:            test
     13 tracksRegLiveness: true
     14 liveins:
     15   - { reg: '%a0' }
     16 frameInfo:
     17   stackSize:       24
     18   maxAlignment:    4
     19   adjustsStack:    true
     20   hasCalls:        true
     21   maxCallFrameSize: 16
     22 stack:
     23   - { id: 0, type: spill-slot, offset: -4, size: 4, alignment: 4,
     24       callee-saved-register: '%ra' }
     25 body: |
     26   bb.0.entry:
     27     liveins: %a0, %ra
     28 
     29     Save16 %ra, 24, implicit-def %sp, implicit %sp
     30     %v0, %v1 = GotPrologue16 $_gp_disp, $_gp_disp
     31     %v0 = SllX16 killed %v0, 16
     32     %v0 = AdduRxRyRz16 killed %v1, killed %v0
     33   ; CHECK: [[@LINE+1]]:67: expected a global value or an external symbol after 'call-entry'
     34     %v1 = LwRxRyOffMemX16 %v0, @foo, 0 :: (load 4 from call-entry foo)
     35     %t9 = COPY %v1
     36     %gp = COPY killed %v0
     37     JumpLinkReg16 killed %v1, csr_o32, implicit-def %ra, implicit killed %t9, implicit %a0, implicit killed %gp, implicit-def %sp, implicit-def dead %v0
     38     %v0 = LiRxImmX16 0
     39     %ra = Restore16 24, implicit-def %sp, implicit %sp
     40     RetRA16 implicit %v0
     41 ...
     42