[InstCombine] Signed saturation tests. NFC
[llvm-complete.git] / test / MC / AArch64 / SVE / ftmad.s
blob3a59a1fb4fd7eaca059ef5995d78d116e55dc646
1 // RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve < %s \
2 // RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
3 // RUN: not llvm-mc -triple=aarch64 -show-encoding < %s 2>&1 \
4 // RUN: | FileCheck %s --check-prefix=CHECK-ERROR
5 // RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve < %s \
6 // RUN: | llvm-objdump -d -mattr=+sve - | FileCheck %s --check-prefix=CHECK-INST
7 // RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve < %s \
8 // RUN: | llvm-objdump -d - | FileCheck %s --check-prefix=CHECK-UNKNOWN
10 ftmad z0.h, z0.h, z31.h, #7
11 // CHECK-INST: ftmad z0.h, z0.h, z31.h, #7
12 // CHECK-ENCODING: [0xe0,0x83,0x57,0x65]
13 // CHECK-ERROR: instruction requires: sve
14 // CHECK-UNKNOWN: e0 83 57 65 <unknown>
16 ftmad z0.s, z0.s, z31.s, #7
17 // CHECK-INST: ftmad z0.s, z0.s, z31.s, #7
18 // CHECK-ENCODING: [0xe0,0x83,0x97,0x65]
19 // CHECK-ERROR: instruction requires: sve
20 // CHECK-UNKNOWN: e0 83 97 65 <unknown>
22 ftmad z0.d, z0.d, z31.d, #7
23 // CHECK-INST: ftmad z0.d, z0.d, z31.d, #7
24 // CHECK-ENCODING: [0xe0,0x83,0xd7,0x65]
25 // CHECK-ERROR: instruction requires: sve
26 // CHECK-UNKNOWN: e0 83 d7 65 <unknown>
29 // --------------------------------------------------------------------------//
30 // Test compatibility with MOVPRFX instruction.
32 movprfx z0, z7
33 // CHECK-INST: movprfx z0, z7
34 // CHECK-ENCODING: [0xe0,0xbc,0x20,0x04]
35 // CHECK-ERROR: instruction requires: sve
36 // CHECK-UNKNOWN: e0 bc 20 04 <unknown>
38 ftmad z0.d, z0.d, z31.d, #7
39 // CHECK-INST: ftmad z0.d, z0.d, z31.d, #7
40 // CHECK-ENCODING: [0xe0,0x83,0xd7,0x65]
41 // CHECK-ERROR: instruction requires: sve
42 // CHECK-UNKNOWN: e0 83 d7 65 <unknown>