diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2018-07-28 10:51:19 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2018-07-28 10:51:19 +0000 |
commit | eb11fae6d08f479c0799db45860a98af528fa6e7 (patch) | |
tree | 44d492a50c8c1a7eb8e2d17ea3360ec4d066f042 /test/MC/AArch64/SVE/fcadd.s | |
parent | b8a2042aa938069e862750553db0e4d82d25822c (diff) | |
download | src-eb11fae6d08f479c0799db45860a98af528fa6e7.tar.gz src-eb11fae6d08f479c0799db45860a98af528fa6e7.zip |
Vendor import of llvm trunk r338150:vendor/llvm/llvm-trunk-r338150
Notes
Notes:
svn path=/vendor/llvm/dist/; revision=336809
svn path=/vendor/llvm/llvm-trunk-r338150/; revision=336814; tag=vendor/llvm/llvm-trunk-r338150
Diffstat (limited to 'test/MC/AArch64/SVE/fcadd.s')
-rw-r--r-- | test/MC/AArch64/SVE/fcadd.s | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/test/MC/AArch64/SVE/fcadd.s b/test/MC/AArch64/SVE/fcadd.s new file mode 100644 index 000000000000..5e8c8324c773 --- /dev/null +++ b/test/MC/AArch64/SVE/fcadd.s @@ -0,0 +1,44 @@ +// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve < %s \ +// RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST +// RUN: not llvm-mc -triple=aarch64 -show-encoding < %s 2>&1 \ +// RUN: | FileCheck %s --check-prefix=CHECK-ERROR +// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve < %s \ +// RUN: | llvm-objdump -d -mattr=+sve - | FileCheck %s --check-prefix=CHECK-INST +// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve < %s \ +// RUN: | llvm-objdump -d - | FileCheck %s --check-prefix=CHECK-UNKNOWN + +fcadd z0.h, p0/m, z0.h, z0.h, #90 +// CHECK-INST: fcadd z0.h, p0/m, z0.h, z0.h, #90 +// CHECK-ENCODING: [0x00,0x80,0x40,0x64] +// CHECK-ERROR: instruction requires: sve +// CHECK-UNKNOWN: 00 80 40 64 <unknown> + +fcadd z0.s, p0/m, z0.s, z0.s, #90 +// CHECK-INST: fcadd z0.s, p0/m, z0.s, z0.s, #90 +// CHECK-ENCODING: [0x00,0x80,0x80,0x64] +// CHECK-ERROR: instruction requires: sve +// CHECK-UNKNOWN: 00 80 80 64 <unknown> + +fcadd z0.d, p0/m, z0.d, z0.d, #90 +// CHECK-INST: fcadd z0.d, p0/m, z0.d, z0.d, #90 +// CHECK-ENCODING: [0x00,0x80,0xc0,0x64] +// CHECK-ERROR: instruction requires: sve +// CHECK-UNKNOWN: 00 80 c0 64 <unknown> + +fcadd z31.h, p7/m, z31.h, z31.h, #270 +// CHECK-INST: fcadd z31.h, p7/m, z31.h, z31.h, #270 +// CHECK-ENCODING: [0xff,0x9f,0x41,0x64] +// CHECK-ERROR: instruction requires: sve +// CHECK-UNKNOWN: ff 9f 41 64 <unknown> + +fcadd z31.s, p7/m, z31.s, z31.s, #270 +// CHECK-INST: fcadd z31.s, p7/m, z31.s, z31.s, #270 +// CHECK-ENCODING: [0xff,0x9f,0x81,0x64] +// CHECK-ERROR: instruction requires: sve +// CHECK-UNKNOWN: ff 9f 81 64 <unknown> + +fcadd z31.d, p7/m, z31.d, z31.d, #270 +// CHECK-INST: fcadd z31.d, p7/m, z31.d, z31.d, #270 +// CHECK-ENCODING: [0xff,0x9f,0xc1,0x64] +// CHECK-ERROR: instruction requires: sve +// CHECK-UNKNOWN: ff 9f c1 64 <unknown> |