File: buildpairf64-extractelementf64-implicit-sp.ll

package info (click to toggle)
llvm-toolchain-16 1%3A16.0.6-15~deb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,634,792 kB
  • sloc: cpp: 6,179,261; ansic: 1,216,205; asm: 741,319; python: 196,614; objc: 75,325; f90: 49,640; lisp: 32,396; pascal: 12,286; sh: 9,394; perl: 7,442; ml: 5,494; awk: 3,523; makefile: 2,723; javascript: 1,206; xml: 886; fortran: 581; cs: 573
file content (32 lines) | stat: -rw-r--r-- 1,420 bytes parent folder | download | duplicates (23)
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
; RUN: llc -o - %s -mtriple=mips-unknown-linux-gnu \
; RUN:     -mcpu=mips32 -mattr=+fpxx \
; RUN:     -stop-after=finalize-isel | \
; RUN:     FileCheck %s -check-prefix=FPXX-IMPLICIT-SP

; RUN: llc -o - %s -mtriple=mips-unknown-linux-gnu \
; RUN:     -mcpu=mips32r6 -mattr=+fp64,+nooddspreg \
; RUN:     -stop-after=finalize-isel | \
; RUN:     FileCheck %s -check-prefix=FP64-IMPLICIT-SP

; RUN: llc -o - %s -mtriple=mips-unknown-linux-gnu \
; RUN:     -mcpu=mips32r2 -mattr=+fpxx \
; RUN:     -stop-after=finalize-isel | \
; RUN:     FileCheck %s -check-prefix=NO-IMPLICIT-SP

define double @foo2(i32 signext %v1, double %d1) {
entry:
; FPXX-IMPLICIT-SP: BuildPairF64 %{{[0-9]+}}, %{{[0-9]+}}, implicit $sp
; FPXX-IMPLICIT-SP: ExtractElementF64 killed %{{[0-9]+}}, 1, implicit $sp
; FP64-IMPLICIT-SP: BuildPairF64_64 %{{[0-9]+}}, %{{[0-9]+}}, implicit $sp
; FP64-IMPLICIT-SP: ExtractElementF64_64 killed %{{[0-9]+}}, 1, implicit $sp
; NO-IMPLICIT-SP: BuildPairF64 %{{[0-9]+}}, %{{[0-9]+}}
; NO-IMPLICIT-SP-NOT: BuildPairF64 %{{[0-9]+}}, %{{[0-9]+}}, implicit $sp
; NO-IMPLICIT-SP: ExtractElementF64 killed %{{[0-9]+}}, 1
; NO-IMPLICIT-SP-NOT: ExtractElementF64 killed %{{[0-9]+}}, 1, implicit $sp
  %conv = fptrunc double %d1 to float
  %0 = tail call float @llvm.copysign.f32(float 1.000000e+00, float %conv)
  %conv1 = fpext float %0 to double
  ret double %conv1
}

declare float @llvm.copysign.f32(float, float)