callee-saved-fpxx.ll
2.74 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
; RUN: llc -march=mips -mattr=+o32,+fpxx < %s | FileCheck --check-prefixes=ALL,O32-FPXX %s
; RUN: llc -march=mipsel -mattr=+o32,+fpxx < %s | FileCheck --check-prefixes=ALL,O32-FPXX %s
; RUN: llc -march=mips -mattr=+o32,+fpxx < %s | FileCheck --check-prefixes=ALL,O32-FPXX-INV %s
; RUN: llc -march=mipsel -mattr=+o32,+fpxx < %s | FileCheck --check-prefixes=ALL,O32-FPXX-INV %s
; RUN-TODO: llc -march=mips64 -mattr=+o32,+fpxx < %s | FileCheck --check-prefixes=ALL,O32-FPXX %s
; RUN-TODO: llc -march=mips64el -mattr=+o32,+fpxx < %s | FileCheck --check-prefixes=ALL,O32-FPXX %s
; RUN-TODO: llc -march=mips64 -mattr=+o32,+fpxx < %s | FileCheck --check-prefixes=ALL,O32-FPXX-INV,O32-FPXX-INV %s
; RUN-TODO: llc -march=mips64el -mattr=+o32,+fpxx < %s | FileCheck --check-prefixes=ALL,O32-FPXX-INV,O32-FPXX-INV %s
define void @fpu_clobber() nounwind {
entry:
call void asm "# Clobber", "~{$f0},~{$f1},~{$f2},~{$f3},~{$f4},~{$f5},~{$f6},~{$f7},~{$f8},~{$f9},~{$f10},~{$f11},~{$f12},~{$f13},~{$f14},~{$f15},~{$f16},~{$f17},~{$f18},~{$f19},~{$f20},~{$f21},~{$f22},~{$f23},~{$f24},~{$f25},~{$f26},~{$f27},~{$f28},~{$f29},~{$f30},~{$f31}"()
ret void
}
; O32-FPXX-LABEL: fpu_clobber:
; O32-FPXX-INV-NOT: sdc1 $f0,
; O32-FPXX-INV-NOT: sdc1 $f1,
; O32-FPXX-INV-NOT: sdc1 $f2,
; O32-FPXX-INV-NOT: sdc1 $f3,
; O32-FPXX-INV-NOT: sdc1 $f4,
; O32-FPXX-INV-NOT: sdc1 $f5,
; O32-FPXX-INV-NOT: sdc1 $f6,
; O32-FPXX-INV-NOT: sdc1 $f7,
; O32-FPXX-INV-NOT: sdc1 $f8,
; O32-FPXX-INV-NOT: sdc1 $f9,
; O32-FPXX-INV-NOT: sdc1 $f10,
; O32-FPXX-INV-NOT: sdc1 $f11,
; O32-FPXX-INV-NOT: sdc1 $f12,
; O32-FPXX-INV-NOT: sdc1 $f13,
; O32-FPXX-INV-NOT: sdc1 $f14,
; O32-FPXX-INV-NOT: sdc1 $f15,
; O32-FPXX-INV-NOT: sdc1 $f16,
; O32-FPXX-INV-NOT: sdc1 $f17,
; O32-FPXX-INV-NOT: sdc1 $f18,
; O32-FPXX-INV-NOT: sdc1 $f19,
; O32-FPXX-INV-NOT: sdc1 $f21,
; O32-FPXX-INV-NOT: sdc1 $f23,
; O32-FPXX-INV-NOT: sdc1 $f25,
; O32-FPXX-INV-NOT: sdc1 $f27,
; O32-FPXX-INV-NOT: sdc1 $f29,
; O32-FPXX-INV-NOT: sdc1 $f31,
; O32-FPXX: addiu $sp, $sp, -48
; O32-FPXX-DAG: sdc1 [[F20:\$f20]], [[OFF20:[0-9]+]]($sp)
; O32-FPXX-DAG: sdc1 [[F22:\$f22]], [[OFF22:[0-9]+]]($sp)
; O32-FPXX-DAG: sdc1 [[F24:\$f24]], [[OFF24:[0-9]+]]($sp)
; O32-FPXX-DAG: sdc1 [[F26:\$f26]], [[OFF26:[0-9]+]]($sp)
; O32-FPXX-DAG: sdc1 [[F28:\$f28]], [[OFF28:[0-9]+]]($sp)
; O32-FPXX-DAG: sdc1 [[F30:\$f30]], [[OFF30:[0-9]+]]($sp)
; O32-FPXX-DAG: ldc1 [[F20]], [[OFF20]]($sp)
; O32-FPXX-DAG: ldc1 [[F22]], [[OFF22]]($sp)
; O32-FPXX-DAG: ldc1 [[F24]], [[OFF24]]($sp)
; O32-FPXX-DAG: ldc1 [[F26]], [[OFF26]]($sp)
; O32-FPXX-DAG: ldc1 [[F28]], [[OFF28]]($sp)
; O32-FPXX-DAG: ldc1 [[F30]], [[OFF30]]($sp)
; O32-FPXX: addiu $sp, $sp, 48