summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorKrzysztof Gogolewski <krzysztof.gogolewski@tweag.io>2022-08-25 16:51:21 +0200
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-08-26 15:06:01 -0400
commitf5e0f086a43c4e830f3fec343917daf3cc24b73a (patch)
tree7d2a3eaad953c8cee9cc5f2275f327c15d17d6e2 /testsuite
parent4786acf758ef064d3b79593774d1672e294b0afb (diff)
downloadhaskell-f5e0f086a43c4e830f3fec343917daf3cc24b73a.tar.gz
Remove label style from printing context
Previously, the SDocContext used for code generation contained information whether the labels should use Asm or C style. However, at every individual call site, this is known statically. This removes the parameter to 'PprCode' and replaces every 'pdoc' used to print a label in code style with 'pprCLabel' or 'pprAsmLabel'. The OutputableP instance is now used only for dumps. The output of T15155 changes, it now uses the Asm style (which is faithful to what actually happens).
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/tests/codeGen/should_compile/Makefile4
-rw-r--r--testsuite/tests/codeGen/should_compile/T15155.stdout-darwin1
2 files changed, 4 insertions, 1 deletions
diff --git a/testsuite/tests/codeGen/should_compile/Makefile b/testsuite/tests/codeGen/should_compile/Makefile
index 90cf78fb4b..35242a5830 100644
--- a/testsuite/tests/codeGen/should_compile/Makefile
+++ b/testsuite/tests/codeGen/should_compile/Makefile
@@ -48,9 +48,11 @@ T15723:
'$(TEST_HC)' $(TEST_HC_OPTS) -dynamic -shared T15723B.o -o T15723B.so
# Check that the static indirection b is compiled to an equiv directive
+# This will be .equiv T15155_b_closure,T15155_a_closure
+# or .equiv _T15155_b_closure,_T15155_a_closure on Darwin
T15155:
'$(TEST_HC)' $(TEST_HC_OPTS) -c -O0 -ddump-asm T15155l.hs | \
- grep -F ".equiv T15155.b_closure,T15155.a_closure"
+ grep -F ".equiv"
# Same as above, but in LLVM. Check that the static indirection b is compiled to
# an alias.
diff --git a/testsuite/tests/codeGen/should_compile/T15155.stdout-darwin b/testsuite/tests/codeGen/should_compile/T15155.stdout-darwin
new file mode 100644
index 0000000000..535026aed4
--- /dev/null
+++ b/testsuite/tests/codeGen/should_compile/T15155.stdout-darwin
@@ -0,0 +1 @@
+.equiv _T15155.b_closure,_T15155.a_closure