1
1
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2
2
3
- ; RUN: llc -march=mips < %s | FileCheck %s -check-prefix=MIPS32
4
- ; RUN: llc -march=mips -relocation-model=pic < %s | FileCheck %s -check-prefix=MIPS32-PIC
5
- ; RUN: llc -march=mips64 < %s | FileCheck %s -check-prefix=MIPS64
6
- ; RUN: llc -march=mips64 -relocation-model=pic < %s | FileCheck %s -check-prefix=MIPS64-PIC
7
- ; RUN: llc -march=mips -mattr=+micromips < %s | FileCheck %s -check-prefix=MIPS32-MM
8
- ; RUN: llc -march=mips -relocation-model=pic -mattr=+micromips < %s | FileCheck %s -check-prefix=MIPS32-MM-PIC
3
+ ; RUN: llc -march=mips -verify-machineinstrs \
4
+ ; RUN: < %s | FileCheck %s -check-prefix=MIPS32
5
+ ; RUN: llc -march=mips -verify-machineinstrs -relocation-model=pic \
6
+ ; RUN: < %s | FileCheck %s -check-prefix=MIPS32-PIC
7
+ ; RUN: llc -march=mips64 -verify-machineinstrs \
8
+ ; RUN: < %s | FileCheck %s -check-prefix=MIPS64
9
+ ; RUN: llc -march=mips64 -verify-machineinstrs -relocation-model=pic \
10
+ ; RUN: < %s | FileCheck %s -check-prefix=MIPS64-PIC
11
+ ; RUN: llc -march=mips -verify-machineinstrs -mattr=+micromips \
12
+ ; RUN: < %s | FileCheck %s -check-prefix=MIPS32-MM
13
+ ; RUN: llc -march=mips -verify-machineinstrs -relocation-model=pic -mattr=+micromips \
14
+ ; RUN: < %s | FileCheck %s -check-prefix=MIPS32-MM-PIC
9
15
10
16
; Test that checks ABI for _mcount calls.
11
17
@@ -49,7 +55,7 @@ define void @foo() #0 {
49
55
; MIPS64-NEXT: .cfi_def_cfa_offset 16
50
56
; MIPS64-NEXT: sd $ra, 8($sp) # 8-byte Folded Spill
51
57
; MIPS64-NEXT: .cfi_offset 31, -8
52
- ; MIPS64-NEXT: or $1, $ra, $zero
58
+ ; MIPS64-NEXT: move $1, $ra
53
59
; MIPS64-NEXT: jal _mcount
54
60
; MIPS64-NEXT: nop
55
61
; MIPS64-NEXT: ld $ra, 8($sp) # 8-byte Folded Reload
@@ -68,7 +74,7 @@ define void @foo() #0 {
68
74
; MIPS64-PIC-NEXT: daddu $1, $1, $25
69
75
; MIPS64-PIC-NEXT: daddiu $gp, $1, %lo(%neg(%gp_rel(foo)))
70
76
; MIPS64-PIC-NEXT: ld $25, %call16(_mcount)($gp)
71
- ; MIPS64-PIC-NEXT: or $1, $ra, $zero
77
+ ; MIPS64-PIC-NEXT: move $1, $ra
72
78
; MIPS64-PIC-NEXT: .reloc .Ltmp0, R_MIPS_JALR, _mcount
73
79
; MIPS64-PIC-NEXT: .Ltmp0:
74
80
; MIPS64-PIC-NEXT: jalr $25
0 commit comments