1 # RUN: llvm-mc -triple arm-none-linux-gnu -mattr=+neon,+fp16fml --disassemble < %s | FileCheck %s
2 # RUN: llvm-mc -triple arm-none-linux-gnu -mattr=+neon,-fullfp16,+fp16fml --disassemble < %s | FileCheck %s
3 # RUN: llvm-mc -triple arm-none-linux-gnu --disassemble < %s 2>&1 | FileCheck %s --check-prefixes=CHECK-COPROC
4 # RUN: not llvm-mc -triple arm-none-linux-gnu -mattr=+v8.2a --disassemble < %s 2>&1 | FileCheck %s --check-prefixes=CHECK-INVALID,FP16-INVALID
5 # RUN: not llvm-mc -triple arm-none-linux-gnu -mattr=+v8.2a,+fp16fml --disassemble < %s 2>&1 | FileCheck %s --check-prefixes=CHECK-INVALID,FP16
6 # RUN: not llvm-mc -triple arm-none-linux-gnu -mattr=+v8.2a,+fullfp16 --disassemble < %s 2>&1 | FileCheck %s --check-prefixes=CHECK-INVALID,FP16
7 # RUN: not llvm-mc -triple arm-none-linux-gnu -mattr=+v8.2a,+fullfp16,-fp16fml --disassemble < %s 2>&1 | FileCheck %s --check-prefixes=CHECK-INVALID,FP16
8 # RUN: not llvm-mc -triple arm-none-linux-gnu -mattr=+v8.2a,-fp16fml,+fullfp16 --disassemble < %s 2>&1 | FileCheck %s --check-prefixes=CHECK-INVALID,FP16
9 # RUN: not llvm-mc -triple arm-none-linux-gnu -mattr=+v8.2a,+fullfp16,+fp16fml --disassemble < %s 2>&1 | FileCheck %s --check-prefixes=CHECK-INVALID,FP16
10 # RUN: not llvm-mc -triple arm-none-linux-gnu -mattr=+v8.2a,+fp16fml,-fullfp16 --disassemble < %s 2>&1 | FileCheck %s --check-prefixes=CHECK-INVALID,FP16-INVALID
11 # RUN: not llvm-mc -triple arm-none-linux-gnu -mattr=+v8.2a,+neon --disassemble < %s 2>&1 | FileCheck %s --check-prefixes=CHECK-INVALID,FP16-INVALID
12 # RUN: not llvm-mc -triple arm-none-linux-gnu -mattr=+v8.2a,+neon,+fullfp16 --disassemble < %s 2>&1 | FileCheck %s --check-prefixes=CHECK-INVALID,FP16
13 # RUN: not llvm-mc -triple arm-none-linux-gnu -mattr=+v8.2a,+neon,+fullfp16,-fp16fml --disassemble < %s 2>&1 | FileCheck %s --check-prefixes=CHECK-INVALID,FP16
14 # RUN: not llvm-mc -triple arm-none-linux-gnu -mattr=+v8.2a,+neon,-fp16fml,+fullfp16 --disassemble < %s 2>&1 | FileCheck %s --check-prefixes=CHECK-INVALID,FP16
15 # RUN: not llvm-mc -triple arm-none-linux-gnu -mattr=+v8.2a,+neon,+fp16fml,-fullfp16 --disassemble < %s 2>&1 | FileCheck %s --check-prefixes=CHECK-INVALID,FP16-INVALID
26 #A fullfp16 instruction, for testing the interaction of the features
29 #CHECK: vfmal.f16 d0, s1, s2
30 #CHECK: vfmsl.f16 d0, s1, s2
31 #CHECK: vfmal.f16 q0, d1, d2
32 #CHECK: vfmsl.f16 q0, d1, d2
33 #CHECK: vfmal.f16 d0, s1, s2[1]
34 #CHECK: vfmsl.f16 d0, s1, s2[1]
35 #CHECK: vfmal.f16 q0, d1, d2[3]
36 #CHECK: vfmsl.f16 q0, d1, d2[3]
37 #CHECK: vadd.f16 s0, s1, s0
39 #CHECK-COPROC: stc2 p8, c0, [r0], #-580
40 #CHECK-COPROC: stc2 p8, c0, [r0], #580
41 #CHECK-COPROC: stc2 p8, c0, [r1], #-328
42 #CHECK-COPROC: stc2 p8, c0, [r1], #328
43 #CHECK-COPROC: mcr2 p8, #0, r0, c0, c9, #4
44 #CHECK-COPROC: mrc2 p8, #0, r0, c0, c9, #4
45 #CHECK-COPROC: mcr2 p8, #0, r0, c1, c10, #3
46 #CHECK-COPROC: mrc2 p8, #0, r0, c1, c10, #3
47 #CHECK-COPROC: cdp p9, #3, c0, c0, c0, #4
49 #CHECK-INVALID: warning: invalid instruction encoding
50 #CHECK-INVALID: [0x91,0x08,0x20,0xfc]
52 #CHECK-INVALID: warning: invalid instruction encoding
53 #CHECK-INVALID: [0x91,0x08,0xa0,0xfc]
55 #CHECK-INVALID: warning: invalid instruction encoding
56 #CHECK-INVALID: [0x52,0x08,0x21,0xfc]
58 #CHECK-INVALID: warning: invalid instruction encoding
59 #CHECK-INVALID: [0x52,0x08,0xa1,0xfc]
61 #CHECK-INVALID: warning: invalid instruction encoding
62 #CHECK-INVALID: [0x99,0x08,0x00,0xfe]
64 #CHECK-INVALID: warning: invalid instruction encoding
65 #CHECK-INVALID: [0x99,0x08,0x10,0xfe]
67 #CHECK-INVALID: warning: invalid instruction encoding
68 #CHECK-INVALID: [0x7a,0x08,0x01,0xfe]
70 #CHECK-INVALID: warning: invalid instruction encoding
71 #CHECK-INVALID: [0x7a,0x08,0x11,0xfe]
74 #FP16-INVALID: warning: invalid instruction encoding
75 #FP16-INVALID: [0x80,0x09,0x30,0xee]
78 #FP16-NOT: [0x80,0x09,0x30,0xee]