Intel-gen4asm: Add a test case for indirect addressing
PATCH 1/1 Intel-gen4asm: Add a test case for indirect addressing
Test indirect addressing, such as "g[a0.8]"
--- test/Makefile.am | 4 +++- test/indirect-address.expected | 1 + test/indirect-address.g4a | 1 + test/run-test.sh | 1 + 4 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 test/indirect-address.expected create mode 100644 test/indirect-address.g4a
test/Makefile.am +3 -1
@@ -70,7 +70,9 @@ TESTDATA = \ declare.expected \ declare.g4a \ immediate.g4a \ - immediate.expected + immediate.expected \ + indirect_address.g4a \ + indirect_address.expected EXTRA_DIST = \ ${TESTDATA} \
test/indirect-address.expected new file +1 -0
@@ -0,0 +1 @@ + { 0x00000007, 0x25004631, 0x00000500, 0x00009000 },
test/indirect-address.g4a new file +1 -0
@@ -0,0 +1 @@ +xor (1) g40<1>:ub g40<0,1,0>:ub g[a0.8]<0,1,0>:ub;
test/run-test.sh +1 -0
@@ -64,6 +64,7 @@ TEST_GEN4_SHOULD_WORK="\ endif \ declare \ immediate \ + indirect-address \ " # Tests that are expected to fail because they contain wrong code.
Signature · 1 line
1.7.10.4