• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc %s -O0 -march=sparc -mcpu=ut699 -o - | FileCheck %s
2
3; CHECK-LABEL: test_fix_fsmuld_1
4; CHECK:       fstod %f20, %f2
5; CHECK:       fstod %f21, %f3
6; CHECK:       fmuld %f2, %f3, %f8
7; CHECK:       fstod %f20, %f0
8define double @test_fix_fsmuld_1() {
9entry:
10  %a = alloca float, align 4
11  %b = alloca float, align 4
12  store float 0x402ECCCCC0000000, float* %a, align 4
13  store float 0x4022333340000000, float* %b, align 4
14  %0 = load float, float* %b, align 4
15  %1 = load float, float* %a, align 4
16  %mul = tail call double asm sideeffect "fsmuld $0, $1, $2", "={f20},{f21},{f8}"(float* %a, float* %b)
17
18  ret double %mul
19}
20
21; CHECK-LABEL: test_fix_fsmuld_2
22; CHECK:       fstod %f20, %f2
23; CHECK:       fstod %f21, %f3
24; CHECK:       fmuld %f2, %f3, %f8
25; CHECK:       fstod %f20, %f0
26define double @test_fix_fsmuld_2(float* %a, float* %b) {
27entry:
28  %mul = tail call double asm sideeffect "fsmuld $0, $1, $2", "={f20},{f21},{f8}"(float* %a, float* %b)
29
30  ret double %mul
31}
32