File: inline-asm-clobbers.ll

package info (click to toggle)
llvm-toolchain-20 1%3A20.1.6-1~exp1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 2,111,304 kB
  • sloc: cpp: 7,438,677; ansic: 1,393,822; asm: 1,012,926; python: 241,650; f90: 86,635; objc: 75,479; lisp: 42,144; pascal: 17,286; sh: 10,027; ml: 5,082; perl: 4,730; awk: 3,523; makefile: 3,349; javascript: 2,251; xml: 892; fortran: 672
file content (62 lines) | stat: -rw-r--r-- 2,635 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: llc -mtriple=csky -verify-machineinstrs -csky-no-aliases < %s \
; RUN:   | FileCheck -check-prefix=CSKYI %s
; RUN: llc -mtriple=csky -mattr=+fpuv2_sf -mattr=+hard-float -float-abi=hard -verify-machineinstrs -csky-no-aliases < %s \
; RUN:   | FileCheck -check-prefix=CSKYIF %s
; RUN: llc -mtriple=csky -mattr=+fpuv2_sf -mattr=+fpuv2_df -mattr=+hard-float -float-abi=hard -verify-machineinstrs -csky-no-aliases < %s \
; RUN:   | FileCheck -check-prefix=CSKYID %s

define void @testcase() nounwind {
; CSKYI-LABEL: testcase:
; CSKYI:       # %bb.0:
; CSKYI-NEXT:    subi16 sp, sp, 8
; CSKYI-NEXT:    st16.w l3, (sp, 4) # 4-byte Folded Spill
; CSKYI-NEXT:    st16.w l0, (sp, 0) # 4-byte Folded Spill
; CSKYI-NEXT:    subi16 sp, sp, 4
; CSKYI-NEXT:    #APP
; CSKYI-NEXT:    #NO_APP
; CSKYI-NEXT:    addi16 sp, sp, 4
; CSKYI-NEXT:    ld16.w l0, (sp, 0) # 4-byte Folded Reload
; CSKYI-NEXT:    ld16.w l3, (sp, 4) # 4-byte Folded Reload
; CSKYI-NEXT:    addi16 sp, sp, 8
; CSKYI-NEXT:    rts16
;
; CSKYIF-LABEL: testcase:
; CSKYIF:       # %bb.0:
; CSKYIF-NEXT:    subi16 sp, sp, 16
; CSKYIF-NEXT:    fsts vr9, (sp, 12) # 4-byte Folded Spill
; CSKYIF-NEXT:    fsts vr8, (sp, 8) # 4-byte Folded Spill
; CSKYIF-NEXT:    st16.w l3, (sp, 4) # 4-byte Folded Spill
; CSKYIF-NEXT:    st16.w l0, (sp, 0) # 4-byte Folded Spill
; CSKYIF-NEXT:    subi16 sp, sp, 4
; CSKYIF-NEXT:    #APP
; CSKYIF-NEXT:    #NO_APP
; CSKYIF-NEXT:    addi16 sp, sp, 4
; CSKYIF-NEXT:    ld16.w l0, (sp, 0) # 4-byte Folded Reload
; CSKYIF-NEXT:    ld16.w l3, (sp, 4) # 4-byte Folded Reload
; CSKYIF-NEXT:    flds vr8, (sp, 8) # 4-byte Folded Reload
; CSKYIF-NEXT:    flds vr9, (sp, 12) # 4-byte Folded Reload
; CSKYIF-NEXT:    addi16 sp, sp, 16
; CSKYIF-NEXT:    rts16
;
; CSKYID-LABEL: testcase:
; CSKYID:       # %bb.0:
; CSKYID-NEXT:    subi16 sp, sp, 24
; CSKYID-NEXT:    fstd vr9, (sp, 16) # 8-byte Folded Spill
; CSKYID-NEXT:    fstd vr8, (sp, 8) # 8-byte Folded Spill
; CSKYID-NEXT:    st16.w l3, (sp, 4) # 4-byte Folded Spill
; CSKYID-NEXT:    st16.w l0, (sp, 0) # 4-byte Folded Spill
; CSKYID-NEXT:    subi16 sp, sp, 4
; CSKYID-NEXT:    #APP
; CSKYID-NEXT:    #NO_APP
; CSKYID-NEXT:    addi16 sp, sp, 4
; CSKYID-NEXT:    ld16.w l0, (sp, 0) # 4-byte Folded Reload
; CSKYID-NEXT:    ld16.w l3, (sp, 4) # 4-byte Folded Reload
; CSKYID-NEXT:    fldd vr8, (sp, 8) # 8-byte Folded Reload
; CSKYID-NEXT:    fldd vr9, (sp, 16) # 8-byte Folded Reload
; CSKYID-NEXT:    addi16 sp, sp, 24
; CSKYID-NEXT:    rts16

  tail call void asm sideeffect "", "~{fr8},~{fr9},~{r4},~{r7}"()
  ret void
}