File: avgr.s

package info (click to toggle)
llvm-toolchain-18 1%3A18.1.8-18
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 1,908,340 kB
  • sloc: cpp: 6,667,937; ansic: 1,440,452; asm: 883,619; python: 230,549; objc: 76,880; f90: 74,238; lisp: 35,989; pascal: 16,571; sh: 10,229; perl: 7,459; ml: 5,047; awk: 3,523; makefile: 2,987; javascript: 2,149; xml: 892; fortran: 649; cs: 573
file content (36 lines) | stat: -rw-r--r-- 1,220 bytes parent folder | download | duplicates (14)
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

vavgr.b $vr22, $vr3, $vr9
# CHECK-INST: vavgr.b $vr22, $vr3, $vr9
# CHECK-ENCODING: encoding: [0x76,0x24,0x68,0x70]

vavgr.h $vr12, $vr2, $vr6
# CHECK-INST: vavgr.h $vr12, $vr2, $vr6
# CHECK-ENCODING: encoding: [0x4c,0x98,0x68,0x70]

vavgr.w $vr16, $vr30, $vr13
# CHECK-INST: vavgr.w $vr16, $vr30, $vr13
# CHECK-ENCODING: encoding: [0xd0,0x37,0x69,0x70]

vavgr.d $vr5, $vr18, $vr7
# CHECK-INST: vavgr.d $vr5, $vr18, $vr7
# CHECK-ENCODING: encoding: [0x45,0x9e,0x69,0x70]

vavgr.bu $vr22, $vr5, $vr29
# CHECK-INST: vavgr.bu $vr22, $vr5, $vr29
# CHECK-ENCODING: encoding: [0xb6,0x74,0x6a,0x70]

vavgr.hu $vr22, $vr23, $vr8
# CHECK-INST: vavgr.hu $vr22, $vr23, $vr8
# CHECK-ENCODING: encoding: [0xf6,0xa2,0x6a,0x70]

vavgr.wu $vr10, $vr20, $vr21
# CHECK-INST: vavgr.wu $vr10, $vr20, $vr21
# CHECK-ENCODING: encoding: [0x8a,0x56,0x6b,0x70]

vavgr.du $vr10, $vr28, $vr13
# CHECK-INST: vavgr.du $vr10, $vr28, $vr13
# CHECK-ENCODING: encoding: [0x8a,0xb7,0x6b,0x70]