File: pr49200.ll

package info (click to toggle)
llvm-toolchain-19 1%3A19.1.7-3~deb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm-proposed-updates
  • size: 1,998,492 kB
  • sloc: cpp: 6,951,680; ansic: 1,486,157; asm: 913,598; python: 232,024; f90: 80,126; objc: 75,281; lisp: 37,276; pascal: 16,990; sh: 10,009; ml: 5,058; perl: 4,724; awk: 3,523; makefile: 3,167; javascript: 2,504; xml: 892; fortran: 664; cs: 573
file content (34 lines) | stat: -rw-r--r-- 1,647 bytes parent folder | download | duplicates (8)
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
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: llc -mtriple=mipsel-unknown-linux-musl-gnu < %s | FileCheck %s

; Check that in microMIPSr5 with a 64 bit fpu configuration, the following
; code can be compiled. This previously failed due to missing load/store
; patterns and instructions to handle the 64 bit FPU case for microMIPS.

%union.anon = type { { double, double } }

define dso_local void @foo() #0 {
; CHECK-LABEL: foo:
; CHECK:       # %bb.0: # %entry
; CHECK-NEXT:    addiusp -24
; CHECK-NEXT:    mtc1 $zero, $f0
; CHECK-NEXT:    mthc1 $zero, $f0
; CHECK-NEXT:    sdc1 $f0, 0($sp)
; CHECK-NEXT:    sdc1 $f0, 8($sp)
; CHECK-NEXT:    ldc1 $f0, 0($sp)
; CHECK-NEXT:    sdc1 $f0, 16($sp)
; CHECK-NEXT:    addiusp 24
; CHECK-NEXT:    jrc $ra
entry:
  %bleh = alloca double, align 8
  %.compoundliteral = alloca %union.anon, align 8
  %arrayinit.begin = getelementptr inbounds [2 x double], ptr %.compoundliteral, i32 0, i32 0
  store double 0.000000e+00, ptr %arrayinit.begin, align 8
  %arrayinit.element = getelementptr inbounds double, ptr %arrayinit.begin, i32 1
  store double 0.000000e+00, ptr %arrayinit.element, align 8
  %.compoundliteral.realp = getelementptr inbounds { double, double }, ptr %.compoundliteral, i32 0, i32 0
  %.compoundliteral.real = load double, ptr %.compoundliteral.realp, align 8
  store double %.compoundliteral.real, ptr %bleh, align 8
  ret void
}
attributes #0 = { noinline nounwind optnone "frame-pointer"="none" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="mips32r5" "target-features"="+dspr2,+fp64,+mips32r5,-noabicalls,+micromips" }