Hi all: I'm writing testcase for the MC layer regression in llvm, the disassembled string is a bit complicate, for example: "IALU.T0 (I0) = BIU0.DM ; REPEAT AT ( 2 ) ;;" The spaces in the disassembled string is error-prone. Is there any option to tell the FileCheck utility to ignore the spaces ? Kind Regards. Shawn.
http://llvm.org/docs/CommandGuide/FileCheck.html says FileCheck ignores white spaces/tabs by default unless you use "--strict-whitespace" option. 2013/3/15 Shawn <shaolin.xie at ia.ac.cn>:> Hi all: > I'm writing testcase for the MC layer regression in llvm, the > disassembled string is a bit complicate, for example: > "IALU.T0 (I0) = BIU0.DM ; REPEAT AT ( 2 ) ;;" > The spaces in the disassembled string is error-prone. Is there any > option to tell the FileCheck utility to ignore the spaces ? > > Kind Regards. > > Shawn. >-- 杨勇勇 (Yang Yong-Yong)
http://llvm.org/docs/CommandGuide/FileCheck.html says FileCheck ignores white spaces/tabs by default unless you use "--strict-whitespace" option. 2013/3/15 Shawn <shaolin.xie at ia.ac.cn>:> Hi all: > I'm writing testcase for the MC layer regression in llvm, the > disassembled string is a bit complicate, for example: > "IALU.T0 (I0) = BIU0.DM ; REPEAT AT ( 2 ) ;;" > The spaces in the disassembled string is error-prone. Is there any > option to tell the FileCheck utility to ignore the spaces ? > > Kind Regards. > > Shawn. >-- 杨勇勇 (Yang Yong-Yong)
"--strict-whitespace By default, FileCheck canonicalizes input horizontal whitespace (spaces and tabs) which causes it to ignore these differences (a space will match a tab). The/--strict-whitespace/ <http://llvm.org/docs/CommandGuide/FileCheck.html#cmdoption--strict-whitespace>argument disables this behavior. End-of-line sequences are canonicalized to UNIX-style ‘n’ in all modes." So it just ignore the differences between space and tab, not the whitespace . On 2013年03月15日 20:15, 杨勇勇 wrote:> http://llvm.org/docs/CommandGuide/FileCheck.html > says FileCheck ignores white spaces/tabs by default unless you use > "--strict-whitespace" option. > > 2013/3/15 Shawn <shaolin.xie at ia.ac.cn>: >> Hi all: >> I'm writing testcase for the MC layer regression in llvm, the >> disassembled string is a bit complicate, for example: >> "IALU.T0 (I0) = BIU0.DM ; REPEAT AT ( 2 ) ;;" >> The spaces in the disassembled string is error-prone. Is there any >> option to tell the FileCheck utility to ignore the spaces ? >> >> Kind Regards. >> >> Shawn. >> > >-- ===========================中国科学院自动化研究所 谢少林 电话: 010-62620080-777 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130316/f83c0b4e/attachment.html>
Maybe Matching Threads
- [LLVMdev] Can the FileCheck ignore spaces ?
- [LLVMdev] Can the FileCheck ignore spaces ?
- [LLVMdev] Problems about developing LLVM pass on windows visual studio
- [LLVMdev] neon registers llvm using
- Installed New version of Samba for HPUX 2.2.7 - Winbi nd doesn't w ork