summaryrefslogtreecommitdiffstats
path: root/tests/ir
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2020-07-24 16:37:51 -0700
committerGitHub <noreply@github.com>2020-07-24 16:37:51 -0700
commit261fe7587d7413070a4e0f29e1a1bb7b0d2b5429 (patch)
treeed565454d0cbd7883b575fc746de21fde69b2e0c /tests/ir
parent17d0da23ada17e60b037d0d642fa292d194d8d06 (diff)
Ensure labels are dumped in `lower-to-ir` (#1459)
* Ensure labels are dumped in `lower-to-ir`. There is a `dumpIR` function that accepts a label parameter already in slang-emit.cpp. This change moves it to slang-ir.cpp so it may be called from other files. * update expected test result Co-authored-by: Yong He <yhe@nvidia.com> Co-authored-by: Tim Foley <tfoleyNV@users.noreply.github.com>
Diffstat (limited to 'tests/ir')
-rw-r--r--tests/ir/string-literal.slang.expected2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/ir/string-literal.slang.expected b/tests/ir/string-literal.slang.expected
index 3f6b2f0ff..80d7ce67c 100644
--- a/tests/ir/string-literal.slang.expected
+++ b/tests/ir/string-literal.slang.expected
@@ -1,5 +1,6 @@
result code = 0
standard error = {
+### LOWER-TO-IR:
[entryPoint(6, "main")]
[numThreads(1, 1, 1)]
[export("_S3tu04mainp1puV")]
@@ -12,6 +13,7 @@ block %1(
return_void
}
global_hashed_string_literals("Hello \t\n\0x083 World")
+###
}
standard output = {
}