llvm - Is there a way to break a CHECK line into multiple lines in llvm-lit?
问题描述
Imagine the following test line. Its a negative test by the way.
# CHECK: :[[@LINE+1]]:1: error: Some extremely long error messeage which goes way beyond 80 character long so would be nice to break it up
add r1, r2, r3, r4
What I want is to break it up to make it more readable like
# CHECK: :[[@LINE+1]]:1: error: Some extremely long error messeage which\
# CHECK: goes way beyond 80 character long so would be nice to break it up
add r1, r2, r3, r4
The line breaking with \
is working with # RUN
command, but here it is not. Is there a way to achieve this?
解决方案
找到了解决方案。有一个指令(source)CHECK-SAME
可以满足我的需要。我想更新问题以提及它存在,但不起作用。原来的问题是我忘记将其更改为[[@LINE+1]]
,[[@LINE+2]]
因为现在实际的汇编指令距该行 2 行。工作解决方案
# CHECK: :[[@LINE+2]]:1: error: Some extremely long error messeage which
# CHECK-SAME: goes way beyond 80 character long so would be nice to break it up
add r1, r2, r3, r4
推荐阅读
- amazon - 如何将 Java 列表写入 Amazon Ion writer?
- python - 将 Selenium Python 值返回到 VBA
- javascript - 类型 'typeof @types/p5/index"' 上不存在属性 'noise'
- javascript - js如何实现hue-blend-mode?
- python - 如何在 TwitchIO 中发送不是对命令的响应的消息?
- c# - 带有 Angular 应用程序的 ASP.NET Core 上的计算值
- sql - 如何使用空间索引在 sql server 中测试程序?
- javascript - 如何在不使用javascript或jquery刷新页面的情况下更改整个域名
- python - 是否有可能为 Python 实现这个 R Plotly 示例?
- python - 将元数据从 python 发送到 wordpress 的问题