File: xmips-valid.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 (35 lines) | stat: -rw-r--r-- 1,101 bytes parent folder | download | duplicates (2)
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 %s -triple=riscv64 -mattr=+xmipslsp,+xmipscmove -M no-aliases -show-encoding \
# RUN:   | FileCheck -check-prefixes=CHECK-INST,CHECK-ENC %s
# RUN: llvm-mc -filetype=obj -triple=riscv64 -mattr=+xmipslsp,+xmipscmove < %s \
# RUN:   | llvm-objdump --mattr=+xmipslsp,+xmipscmove -M no-aliases -d - \
# RUN:   | FileCheck -check-prefix=CHECK-DIS %s

# CHECK-INST: mips.ccmov	s0, s1, s2, s3
# CHECK-ENC:  encoding: [0x0b,0x34,0x99,0x9e]
mips.ccmov s0, s1, s2, s3

# CHECK-DIS: mips.ccmov	s0, s1, s2, s3

# CHECK-INST: mips.swp s3, s2, 0(sp)
# CHECK-ENC: encoding: [0x8b,0x50,0x31,0x91]
mips.swp s3, s2, 0(sp)

# CHECK-DIS: mips.swp s3, s2, 0x0(sp)

# CHECK-INST: mips.sdp s5, s6, 16(s7)
# CHECK-ENC: encoding: [0x0b,0xd8,0x5b,0xb1]
mips.sdp s5, s6, 16(s7)

# CHECK-DIS: mips.sdp s5, s6, 0x10(s7)

# CHECK-INST: mips.ldp s1, s2, 8(sp)
# CHECK-ENC: encoding: [0x8b,0x44,0x81,0x90]
mips.ldp s1, s2, 8(sp)

# CHECK-DIS: mips.ldp s1, s2, 0x8(sp)

# CHECK-INST: mips.lwp a0, a1, 20(a2)
# CHECK-ENC: encoding: [0x0b,0x45,0x56,0x59]
mips.lwp x10, x11, 20(x12)

# CHECK-DIS: mips.lwp a0, a1, 0x14(a2)