File: srl.s

package info (click to toggle)
llvm-toolchain-20 1%3A20.1.8-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 2,111,696 kB
  • sloc: cpp: 7,438,781; ansic: 1,393,871; asm: 1,012,926; python: 241,771; f90: 86,635; objc: 75,411; lisp: 42,144; pascal: 17,286; sh: 8,596; ml: 5,082; perl: 4,730; makefile: 3,591; awk: 3,523; javascript: 2,251; xml: 892; fortran: 672
file content (36 lines) | stat: -rw-r--r-- 1,198 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

xvsrl.b $xr20, $xr24, $xr29
# CHECK-INST: xvsrl.b $xr20, $xr24, $xr29
# CHECK-ENCODING: encoding: [0x14,0x77,0xea,0x74]

xvsrl.h $xr11, $xr17, $xr31
# CHECK-INST: xvsrl.h $xr11, $xr17, $xr31
# CHECK-ENCODING: encoding: [0x2b,0xfe,0xea,0x74]

xvsrl.w $xr2, $xr10, $xr8
# CHECK-INST: xvsrl.w $xr2, $xr10, $xr8
# CHECK-ENCODING: encoding: [0x42,0x21,0xeb,0x74]

xvsrl.d $xr13, $xr30, $xr26
# CHECK-INST: xvsrl.d $xr13, $xr30, $xr26
# CHECK-ENCODING: encoding: [0xcd,0xeb,0xeb,0x74]

xvsrli.b $xr29, $xr4, 3
# CHECK-INST: xvsrli.b $xr29, $xr4, 3
# CHECK-ENCODING: encoding: [0x9d,0x2c,0x30,0x77]

xvsrli.h $xr28, $xr14, 12
# CHECK-INST: xvsrli.h $xr28, $xr14, 12
# CHECK-ENCODING: encoding: [0xdc,0x71,0x30,0x77]

xvsrli.w $xr12, $xr18, 7
# CHECK-INST: xvsrli.w $xr12, $xr18, 7
# CHECK-ENCODING: encoding: [0x4c,0x9e,0x30,0x77]

xvsrli.d $xr0, $xr4, 46
# CHECK-INST: xvsrli.d $xr0, $xr4, 46
# CHECK-ENCODING: encoding: [0x80,0xb8,0x31,0x77]