[AMDGPU][mc] Add regression tests for Bug 28168
authorArtem Tamazov <artem.tamazov@amd.com>
Tue, 20 Sep 2016 11:58:40 +0000 (11:58 +0000)
committerArtem Tamazov <artem.tamazov@amd.com>
Tue, 20 Sep 2016 11:58:40 +0000 (11:58 +0000)
llvm-svn: 281967

llvm/test/MC/AMDGPU/regression/bug28168.s [new file with mode: 0644]

diff --git a/llvm/test/MC/AMDGPU/regression/bug28168.s b/llvm/test/MC/AMDGPU/regression/bug28168.s
new file mode 100644 (file)
index 0000000..86f8189
--- /dev/null
@@ -0,0 +1,10 @@
+// RUN: llvm-mc -arch=amdgcn -mcpu=bonaire -show-encoding %s | FileCheck %s --check-prefix=GCN --check-prefix=SICI --check-prefix=CI
+// RUN: llvm-mc -arch=amdgcn -mcpu=tonga -show-encoding %s | FileCheck %s --check-prefix=GCN --check-prefix=CIVI --check-prefix=VI
+
+v_mqsad_pk_u16_u8 v[0:1], s[0:1], s0, v[254:255]
+// CI: [0x00,0x00,0xe6,0xd2,0x00,0x00,0xf8,0x07]
+// VI: [0x00,0x00,0xe6,0xd1,0x00,0x00,0xf8,0x07]
+
+v_qsad_pk_u16_u8 v[0:1], v[0:1], s0, s[0:1]
+// CI: [0x00,0x00,0xe4,0xd2,0x00,0x01,0x00,0x00]
+// VI: [0x00,0x00,0xe5,0xd1,0x00,0x01,0x00,0x00]