File: cps.s

package info (click to toggle)
llvm-toolchain-19 1%3A19.1.7-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,998,520 kB
  • sloc: cpp: 6,951,680; ansic: 1,486,157; asm: 913,598; python: 232,024; f90: 80,126; objc: 75,281; lisp: 37,276; pascal: 16,990; sh: 10,009; ml: 5,058; perl: 4,724; awk: 3,523; makefile: 3,167; javascript: 2,504; xml: 892; fortran: 664; cs: 573
file content (31 lines) | stat: -rw-r--r-- 1,574 bytes parent folder | download | duplicates (7)
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
@ RUN: llvm-mc -triple=thumbv6t2--none-eabi -show-encoding < %s | FileCheck %s
@ RUN: llvm-mc -triple=thumbv7a--none-eabi -show-encoding < %s | FileCheck %s
@ RUN: llvm-mc -triple=thumbv7r--none-eabi -show-encoding < %s | FileCheck %s
@ RUN: llvm-mc -triple=thumbv8a--none-eabi -show-encoding < %s | FileCheck %s
@ RUN: not llvm-mc -triple=thumbv7m--none-eabi -show-encoding < %s 2>&1 | FileCheck %s --check-prefix=UNDEF
@ RUN: not llvm-mc -triple=thumbv6--none-eabi -show-encoding < %s 2>%t | FileCheck %s --check-prefix=V6
@ RUN: FileCheck %s < %t --check-prefix=V6-ERRORS

  cpsie f
  cpsie i, #3
  cps #0

@ CHECK: cpsie f                         @ encoding: [0x61,0xb6]
@ CHECK: cpsie   i, #3                   @ encoding: [0xaf,0xf3,0x43,0x85]
@ CHECK: cps     #0                      @ encoding: [0xaf,0xf3,0x00,0x81]

@ UNDEF-DAG: cpsie f                         @ encoding: [0x61,0xb6]
@ UNDEF-DAG: instruction requires:
@ UNDEF-DAG: error: instruction 'cps' requires effect for M-class

@ V6: cpsie f                         @ encoding: [0x61,0xb6]
@ V6-ERRORS: error: invalid instruction, any one of the following would fix this:
@ V6-ERRORS-NEXT: cpsie i, #3
@ V6-ERRORS: note: instruction requires: thumb2
@ V6-ERRORS: note: instruction requires: arm-mode
@ V6-ERRORS: note: too many operands for instruction
@ V6-ERRORS: error: invalid instruction, any one of the following would fix this:
@ V6-ERRORS: cps #0
@ V6-ERRORS: note: instruction requires: arm-mode
@ V6-ERRORS: note: instruction requires: thumb2
@ V6-ERRORS: note: too few operands for instruction