summaryrefslogtreecommitdiffstats
path: root/llvm/test/MC/Mips/crc/valid64.s
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/MC/Mips/crc/valid64.s')
-rw-r--r--llvm/test/MC/Mips/crc/valid64.s6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/test/MC/Mips/crc/valid64.s b/llvm/test/MC/Mips/crc/valid64.s
new file mode 100644
index 00000000000..0b8fe4f4df4
--- /dev/null
+++ b/llvm/test/MC/Mips/crc/valid64.s
@@ -0,0 +1,6 @@
+# RUN: llvm-mc %s -triple=mips64-unknown-linux-gnu -show-encoding \
+# RUN: -mcpu=mips64r6 -mattr=+crc | FileCheck %s
+
+ .set noat
+ crc32d $10, $11, $10 # CHECK: crc32d $10, $11, $10 # encoding: [0x7d,0x6a,0x00,0xcf]
+ crc32cd $10, $11, $10 # CHECK: crc32cd $10, $11, $10 # encoding: [0x7d,0x6a,0x01,0xcf]
OpenPOWER on IntegriCloud