File: copy-fp64.ll

package info (click to toggle)
llvm-toolchain-11 1%3A11.0.1-2~deb10u1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 995,836 kB
  • sloc: cpp: 4,767,656; ansic: 760,916; asm: 477,436; python: 170,940; objc: 69,804; lisp: 29,914; sh: 23,855; f90: 18,173; pascal: 7,551; perl: 7,471; ml: 5,603; awk: 3,489; makefile: 2,573; xml: 915; cs: 573; fortran: 503; javascript: 452
file content (29 lines) | stat: -rw-r--r-- 1,191 bytes parent folder | download | duplicates (2)
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
; NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py

; RUN: llc -march=mips -mcpu=mips32r2 -O0 -relocation-model=pic -mattr=+fp64 \
; RUN:   -stop-before=prologepilog %s -o - | FileCheck %s

declare double @bar(double)

define  double @foo(double %self) {
  ; CHECK-LABEL: name: foo
  ; CHECK: bb.0.start:
  ; CHECK:   successors: %bb.1(0x80000000)
  ; CHECK:   liveins: $d12_64, $t9, $v0
  ; CHECK:   renamable $at = ADDu killed $v0, killed $t9
  ; CHECK:   ADJCALLSTACKDOWN 16, 0, implicit-def $sp, implicit $sp
  ; CHECK:   $d6_64 = COPY killed renamable $d12_64
  ; CHECK:   renamable $t9 = LW killed renamable $at, target-flags(mips-got) @bar
  ; CHECK:   dead $ra = JALR killed $t9, csr_o32_fp64, target-flags(mips-jalr) <mcsymbol bar>, implicit-def dead $ra, implicit killed $d6_64, implicit-def $d0_64
  ; CHECK:   ADJCALLSTACKUP 16, 0, implicit-def $sp, implicit $sp
  ; CHECK:   SDC164 killed $d0_64, %stack.0, 0 :: (store 8 into %stack.0)
  ; CHECK: bb.1.bb1:
  ; CHECK:   $d0_64 = LDC164 %stack.0, 0 :: (load 8 from %stack.0)
  ; CHECK:   RetRA implicit killed $d0_64
start:
  %0 = call double @bar(double %self)
  br label %bb1

bb1:
  ret double %0
}