File: avg.s

package info (click to toggle)
llvm-toolchain-20 1%3A20.1.8-1~exp1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 2,111,388 kB
  • sloc: cpp: 7,438,767; ansic: 1,393,871; asm: 1,012,926; python: 241,728; f90: 86,635; objc: 75,411; lisp: 42,144; pascal: 17,286; sh: 10,027; ml: 5,082; perl: 4,730; awk: 3,523; makefile: 3,349; javascript: 2,251; xml: 892; fortran: 672
file content (36 lines) | stat: -rw-r--r-- 1,224 bytes parent folder | download | duplicates (15)
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
36
# RUN: llvm-mc --triple=loongarch64 --show-encoding %s | \
# RUN:        FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
# RUN: llvm-mc --triple=loongarch64 --filetype=obj %s | \
# RUN:        llvm-objdump -d - | FileCheck %s --check-prefix=CHECK-INST

xvavg.b $xr5, $xr30, $xr21
# CHECK-INST: xvavg.b $xr5, $xr30, $xr21
# CHECK-ENCODING: encoding: [0xc5,0x57,0x64,0x74]

xvavg.h $xr18, $xr17, $xr21
# CHECK-INST: xvavg.h $xr18, $xr17, $xr21
# CHECK-ENCODING: encoding: [0x32,0xd6,0x64,0x74]

xvavg.w $xr3, $xr23, $xr20
# CHECK-INST: xvavg.w $xr3, $xr23, $xr20
# CHECK-ENCODING: encoding: [0xe3,0x52,0x65,0x74]

xvavg.d $xr27, $xr0, $xr27
# CHECK-INST: xvavg.d $xr27, $xr0, $xr27
# CHECK-ENCODING: encoding: [0x1b,0xec,0x65,0x74]

xvavg.bu $xr11, $xr4, $xr16
# CHECK-INST: xvavg.bu $xr11, $xr4, $xr16
# CHECK-ENCODING: encoding: [0x8b,0x40,0x66,0x74]

xvavg.hu $xr2, $xr1, $xr19
# CHECK-INST: xvavg.hu $xr2, $xr1, $xr19
# CHECK-ENCODING: encoding: [0x22,0xcc,0x66,0x74]

xvavg.wu $xr27, $xr20, $xr27
# CHECK-INST: xvavg.wu $xr27, $xr20, $xr27
# CHECK-ENCODING: encoding: [0x9b,0x6e,0x67,0x74]

xvavg.du $xr23, $xr20, $xr29
# CHECK-INST: xvavg.du $xr23, $xr20, $xr29
# CHECK-ENCODING: encoding: [0x97,0xf6,0x67,0x74]