+---
+name: test2
+tracksRegLiveness: true
+frameInfo:
+ stackSize: 32
+ maxAlignment: 4
+ adjustsStack: true
+ hasCalls: true
+ maxCallFrameSize: 16
+stack:
+ - { id: 0, type: spill-slot, offset: -4, size: 4, alignment: 4,
+ callee-saved-register: '%ra' }
+ - { id: 1, type: spill-slot, offset: -8, size: 4, alignment: 4,
+ callee-saved-register: '%s2' }
+ - { id: 2, type: spill-slot, offset: -12, size: 4, alignment: 4,
+ callee-saved-register: '%s0' }
+body: |
+ bb.0.entry:
+ liveins: %ra, %s2, %s0, %ra, %s2, %s0
+
+ SaveX16 %s0, %ra, %s2, 32, implicit-def %sp, implicit %sp
+ CFI_INSTRUCTION .cfi_def_cfa_offset 32
+ CFI_INSTRUCTION .cfi_offset %ra_64, -4
+ CFI_INSTRUCTION .cfi_offset %s2_64, -8
+ CFI_INSTRUCTION .cfi_offset %s0_64, -12
+ %v0, %v1 = GotPrologue16 $_gp_disp, $_gp_disp
+ %v0 = SllX16 killed %v0, 16
+ %s0 = AdduRxRyRz16 killed %v1, killed %v0
+ %v0 = LwRxRyOffMemX16 %s0, @g, 0 :: (load 4 from @g)
+ ; CHECK-LABEL: test2
+ ; CHECK: %v1 = LwRxRyOffMemX16 %s0, $__mips16_call_stub_sf_0, 0 :: (load 4 from $__mips16_call_stub_sf_0)
+ %v1 = LwRxRyOffMemX16 %s0, $__mips16_call_stub_sf_0, 0 :: (load 4 from $__mips16_call_stub_sf_0)
+ %gp = COPY %s0
+ JumpLinkReg16 killed %v1, csr_o32, implicit-def %ra, implicit %v0, implicit killed %gp, implicit-def %sp, implicit-def %v0
+ %v1 = LwRxRyOffMemX16 %s0, @__mips16_ret_sf, 0 :: (load 4 from @__mips16_ret_sf)
+ %t9 = COPY %v1
+ %gp = COPY killed %s0
+ JumpLinkReg16 killed %v1, csr_mips16rethelper, implicit-def %ra, implicit killed %t9, implicit %v0, implicit killed %gp, implicit-def %sp
+ %s0, %ra, %s2 = RestoreX16 32, implicit-def %sp, implicit %sp
+ RetRA16 implicit %v0
+...