• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1@ RUN: not llvm-mc -mcpu=cortex-a8 -triple armv7-unknown-unknown -show-encoding -mattr=-neon < %s 2>&1 | FileCheck %s --check-prefix=VFP --check-prefix=CHECK
2@ RUN: not llvm-mc -mcpu=cortex-a8 -triple thumbv7-unknown-unknown -show-encoding -mattr=-neon < %s 2>&1 | FileCheck %s --check-prefix=VFP --check-prefix=CHECK
3@ RUN: llvm-mc -mcpu=cortex-a8 -triple armv7-unknown-unknown -show-encoding -mattr=+neon < %s 2>&1 | FileCheck %s --check-prefix=NEON --check-prefix=CHECK
4@ RUN: llvm-mc -mcpu=cortex-a8 -triple thumbv7-unknown-unknown -show-encoding -mattr=+neon < %s 2>&1 | FileCheck %s --check-prefix=NEON --check-prefix=CHECK
5
6@ The 32-bit variants of the NEON scalar move instructions are also available
7@ to any core with VFPv2
8
9@ CHECK-DAG: vmov.32 d13[0], r6 @ encoding:
10@ CHECK-DAG: vmov.32 d17[1], r9 @ encoding:
11vmov.32 d13[0], r6
12vmov.32 d17[1], r9
13
14@ VFP-DAG: error: instruction requires: NEON
15@ VFP-DAG: error: instruction requires: NEON
16@ NEON-DAG: vmov.8  d22[5], r2 @ encoding:
17@ NEON-DAG: vmov.16 d3[2], r4 @ encoding:
18vmov.8 d22[5], r2
19vmov.16 d3[2], r4
20
21@ CHECK-DAG: vmov.32 r6, d13[0] @ encoding:
22@ CHECK-DAG: vmov.32 r9, d17[1] @ encoding:
23vmov.32 r6, d13[0]
24vmov.32 r9, d17[1]
25
26@ VFP-DAG: error: instruction requires: NEON
27@ VFP-DAG: error: instruction requires: NEON
28@ NEON-DAG: vmov.s8 r2, d22[5] @ encoding:
29@ NEON-DAG: vmov.u16        r4, d3[2] @ encoding:
30vmov.s8 r2, d22[5]
31vmov.u16 r4, d3[2]
32
33