File: valid-fp64.s

package info (click to toggle)
llvm-toolchain-14 1%3A14.0.6-12
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,496,180 kB
  • sloc: cpp: 5,593,972; ansic: 986,872; asm: 585,869; python: 184,223; objc: 72,530; lisp: 31,119; f90: 27,793; javascript: 9,780; pascal: 9,762; sh: 9,482; perl: 7,468; ml: 5,432; awk: 3,523; makefile: 2,538; xml: 953; cs: 573; fortran: 567
file content (35 lines) | stat: -rw-r--r-- 2,848 bytes parent folder | download | duplicates (18)
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
# RUN: llvm-mc -arch=mips -mcpu=mips32r3 -mattr=+fp64 -show-encoding -show-inst %s | \
# RUN: FileCheck %s

abs.d  $f0, $f12      # CHECK: abs.d  $f0, $f12      # encoding: [0x46,0x20,0x60,0x05]
                      # CHECK-NEXT:                  # <MCInst #{{[0-9]+}} FABS_D64
abs.s $f0, $f12       # CHECK: abs.s  $f0, $f12      # encoding: [0x46,0x00,0x60,0x05]
                      # CHECK-NEXT:                  # <MCInst #{{[0-9]+}} FABS_S
add.d   $f0, $f2, $f4 # CHECK: add.d   $f0, $f2, $f4 # encoding: [0x46,0x24,0x10,0x00]
                      # CHECK-NEXT:                  # <MCInst #{{[0-9]+}} FADD_D64
cvt.d.s $f0, $f2      # CHECK: cvt.d.s $f0, $f2      # encoding: [0x46,0x00,0x10,0x21]
                      # CHECK-NEXT:                  # <MCInst #{{[0-9]+}} CVT_D64_S
cvt.d.w $f0, $f2      # CHECK: cvt.d.w $f0, $f2      # encoding: [0x46,0x80,0x10,0x21]
                      # CHECK-NEXT:                  # <MCInst #{{[0-9]+}} CVT_D64_W
cvt.s.d $f0, $f2      # CHECK: cvt.s.d $f0, $f2      # encoding: [0x46,0x20,0x10,0x20]
                      # CHECK-NEXT:                  # <MCInst #{{[0-9]+}} CVT_S_D64
cvt.w.d $f0, $f2      # CHECK: cvt.w.d $f0, $f2      # encoding: [0x46,0x20,0x10,0x24]
                      # CHECK-NEXT:                  # <MCInst #{{[0-9]+}} CVT_W_D64
div.d   $f0, $f2, $f4 # CHECK: div.d   $f0, $f2, $f4 # encoding: [0x46,0x24,0x10,0x03]
                      # CHECK-NEXT:                  # <MCInst #{{[0-9]+}} FDIV_D64
mfhc1   $4, $f0       # CHECK: mfhc1   $4, $f0       # encoding: [0x44,0x64,0x00,0x00]
                      # CHECK-NEXT:                  # <MCInst #{{[0-9]+}} MFHC1_D64
mov.d   $f0, $f2      # CHECK: mov.d   $f0, $f2      # encoding: [0x46,0x20,0x10,0x06]
                      # CHECK-NEXT:                  # <MCInst #{{[0-9]+}} FMOV_D64
mthc1   $4, $f0       # CHECK: mthc1   $4, $f0       # encoding: [0x44,0xe4,0x00,0x00]
                      # CHECK-NEXT:                  # <MCInst #{{[0-9]+}} MTHC1_D64
mul.d   $f0, $f2, $f4 # CHECK: mul.d $f0, $f2, $f4   # encoding: [0x46,0x24,0x10,0x02]
                      # CHECK-NEXT:                  # <MCInst #{{[0-9]+}} FMUL_D64
neg.d   $f0, $f2      # CHECK: neg.d   $f0, $f2      # encoding: [0x46,0x20,0x10,0x07]
                      # CHECK-NEXT:                  # <MCInst #{{[0-9]+}} FNEG_D64
sqrt.d  $f0, $f12     # CHECK: sqrt.d $f0, $f12      # encoding: [0x46,0x20,0x60,0x04]
                      # CHECK-NEXT:                  # <MCInst #{{[0-9]+}} FSQRT_D64
sqrt.s  $f0, $f12     # CHECK: sqrt.s $f0, $f12      # encoding: [0x46,0x00,0x60,0x04]
                      # CHECK-NEXT:                  # <MCInst #{{[0-9]+}} FSQRT_S
sub.d   $f0, $f2, $f4 # CHECK: sub.d $f0, $f2, $f4   # encoding: [0x46,0x24,0x10,0x01]
                      # CHECK-NEXT:                  # <MCInst #{{[0-9]+}} FSUB_D64