File: arm11-hint-instr.s

package info (click to toggle)
llvm-toolchain-17 1%3A17.0.6-22
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,799,624 kB
  • sloc: cpp: 6,428,607; ansic: 1,383,196; asm: 793,408; python: 223,504; objc: 75,364; f90: 60,502; lisp: 33,869; pascal: 15,282; sh: 9,684; perl: 7,453; ml: 4,937; awk: 3,523; makefile: 2,889; javascript: 2,149; xml: 888; fortran: 619; cs: 573
file content (82 lines) | stat: -rw-r--r-- 3,947 bytes parent folder | download | duplicates (23)
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
@ RUN: not llvm-mc -triple=armv6 -show-encoding < %s > %t1 2> %t2
@ RUN: FileCheck --check-prefix=CHECK-V6 %s < %t1
@ RUN: FileCheck --check-prefix=CHECK-ERROR-V6 %s < %t2
@ RUN: llvm-mc -triple=armv6k -show-encoding < %s \
@ RUN:     | FileCheck --check-prefix=CHECK-ARM %s
@ RUN: llvm-mc -triple=armv6t2 -show-encoding < %s \
@ RUN:     | FileCheck --check-prefix=CHECK-ARM %s
@ RUN: not llvm-mc -triple=thumb -mcpu=arm1156t2-s -show-encoding < %s > %t3 2> %t4
@ RUN: FileCheck --check-prefix=CHECK-THUMB %s < %t3
@ RUN: FileCheck --check-prefix=CHECK-ERROR-THUMB %s < %t4
@ RUN: not llvm-mc -triple=armv6m -show-encoding < %s > %t5 2> %t6
@ RUN: FileCheck --check-prefix=CHECK-V6M %s < %t5
@ RUN: FileCheck --check-prefix=CHECK-ERROR-V6M %s < %t6

  .syntax unified

@------------------------------------------------------------------------------
@ YIELD/WFE/WFI/SEV/CLREX - are not supported pre v6K
@------------------------------------------------------------------------------
        nop
        yield
        wfe
        wfi
        sev
        clrex


@------------------------------------------------------------------------------
@ v6 using ARM encoding
@------------------------------------------------------------------------------
@ CHECK-V6: mov	r0, r0                  @ encoding: [0x00,0x00,0xa0,0xe1]
@ CHECK-ERROR-V6: error: instruction requires: armv6k
@ CHECK-ERROR-V6: yield
@ CHECK-ERROR-V6: ^
@ CHECK-ERROR-V6: error: instruction requires: armv6k
@ CHECK-ERROR-V6: wfe
@ CHECK-ERROR-V6: ^
@ CHECK-ERROR-V6: error: instruction requires: armv6k
@ CHECK-ERROR-V6: wfi
@ CHECK-ERROR-V6: error: instruction requires: armv6k
@ CHECK-ERROR-V6: sev
@ CHECK-ERROR-V6: ^
@ CHECK-ERROR-V6: error: instruction requires: armv6k
@ CHECK-ERROR-V6: clrex
@ CHECK-ERROR-V6: ^

@------------------------------------------------------------------------------
@ v6K using ARM encoding
@------------------------------------------------------------------------------
@------------------------------------------------------------------------------
@ v6T2 using ARM encoding (arm triple)
@------------------------------------------------------------------------------
@ CHECK-ARM: nop                             @ encoding: [0x00,0xf0,0x20,0xe3]
@ CHECK-ARM: yield                           @ encoding: [0x01,0xf0,0x20,0xe3]
@ CHECK-ARM: wfe                             @ encoding: [0x02,0xf0,0x20,0xe3]
@ CHECK-ARM: wfi                             @ encoding: [0x03,0xf0,0x20,0xe3]
@ CHECK-ARM: sev                             @ encoding: [0x04,0xf0,0x20,0xe3]
@ CHECK-ARM: clrex                           @ encoding: [0x1f,0xf0,0x7f,0xf5]

@------------------------------------------------------------------------------
@ v6T2 using THUMB encoding (thumb triple)
@------------------------------------------------------------------------------
@ CHECK-THUMB: nop                             @ encoding: [0x00,0xbf]
@ CHECK-THUMB: yield                           @ encoding: [0x10,0xbf]
@ CHECK-THUMB: wfe                             @ encoding: [0x20,0xbf]
@ CHECK-THUMB: wfi                             @ encoding: [0x30,0xbf]
@ CHECK-THUMB: sev                             @ encoding: [0x40,0xbf]
@ CHECK-ERROR-THUMB: error: instruction requires: v7 clrex
@ CHECK-ERROR-THUMB: clrex
@ CHECK-ERROR-THUMB: ^

@------------------------------------------------------------------------------
@ v6M using THUMB encoding
@------------------------------------------------------------------------------
@ CHECK-V6M: nop                             @ encoding: [0x00,0xbf]
@ CHECK-V6M: yield                           @ encoding: [0x10,0xbf]
@ CHECK-V6M: wfe                             @ encoding: [0x20,0xbf]
@ CHECK-V6M: wfi                             @ encoding: [0x30,0xbf]
@ CHECK-V6M: sev                             @ encoding: [0x40,0xbf]
@ CHECK-ERROR-V6M: error: instruction requires: v7 clrex
@ CHECK-ERROR-V6M: clrex
@ CHECK-ERROR-V6M: ^