[igt-dev] [PATCH i-g-t 2/2] Test that register types are accepted in all valid forms.

Adam Sampson ats at offog.org
Tue Apr 3 22:48:44 UTC 2018


The assembler should accept ub, :ub, UB and :UB.

Signed-off-by: Adam Sampson <ats at offog.org>
---
 assembler/Makefile.am           | 1 +
 assembler/meson.build           | 1 +
 assembler/test/regtype.expected | 0
 assembler/test/regtype.g4a      | 6 ++++++
 4 files changed, 8 insertions(+)
 create mode 100644 assembler/test/regtype.expected
 create mode 100644 assembler/test/regtype.g4a

diff --git a/assembler/Makefile.am b/assembler/Makefile.am
index 855e33ab..49422e02 100644
--- a/assembler/Makefile.am
+++ b/assembler/Makefile.am
@@ -52,6 +52,7 @@ check_SCRIPTS = test/run-test.sh
 TESTS = \
 	test/mov \
 	test/frc \
+	test/regtype \
 	test/rndd \
 	test/rndu \
 	test/rnde \
diff --git a/assembler/meson.build b/assembler/meson.build
index c858bc0f..cefdba93 100644
--- a/assembler/meson.build
+++ b/assembler/meson.build
@@ -47,6 +47,7 @@ configure_file(input : 'intel-gen4asm.pc.in', output : 'intel-gen4asm.pc',
 gen4asm_testcases = [
 	'test/mov',
 	'test/frc',
+	'test/regtype',
 	'test/rndd',
 	'test/rndu',
 	'test/rnde',
diff --git a/assembler/test/regtype.expected b/assembler/test/regtype.expected
new file mode 100644
index 00000000..e69de29b
diff --git a/assembler/test/regtype.g4a b/assembler/test/regtype.g4a
new file mode 100644
index 00000000..8d7f8dd2
--- /dev/null
+++ b/assembler/test/regtype.g4a
@@ -0,0 +1,6 @@
+// Test that register types are accepted in upper or lower case, with and
+// without the : prefix.
+.default_register_type :ub
+.default_register_type :UB
+.default_register_type ub
+.default_register_type UB
-- 
2.17.0



More information about the igt-dev mailing list