File: pr49200.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 (35 lines) | stat: -rw-r--r-- 1,665 bytes parent folder | download | duplicates (5)
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
; 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:    li16 $2, 0
; CHECK-NEXT:    sw $2, 4($sp)
; CHECK-NEXT:    sw $2, 0($sp)
; CHECK-NEXT:    sw $2, 12($sp)
; CHECK-NEXT:    sw $2, 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" }