[llvm-commits] [llvm] r78604 - in /llvm/trunk: lib/Target/ARM/ARMInstrFormats.td lib/Target/ARM/ARMInstrNEON.td lib/Target/ARM/ARMInstrVFP.td test/CodeGen/ARM/fsitos.ll test/CodeGen/ARM/ftosizs.ll test/CodeGen/ARM/ftouizs.ll test/CodeGen/ARM/fuitos.ll

Mike Stump mrs at apple.com
Mon Aug 10 16:09:09 PDT 2009


On Aug 10, 2009, at 3:35 PM, David Goodwin wrote:
> I can, but then (unless FileCheck has a feature I don't know about)
> the tests are not checking what I want them to check. FileCheck
> doesn't have regex and I don't want to specify an exact register
> number

So, imagine we output:

mov 1,%r1
mov 2,%r2

but we want to check this, but we don't care about register  
allocations...  Suppose we ran

   sed 's/%r1/%r/; s/%r2/%r/'

in the pipeline before we pass that off to FileCheck...

We could then check for:

mov 1,%r
mov 2,%r

and not have to worry about register allocations...  Not perfect, but  
better than each of the alternatives.

Also, this can be used for compiler temporary labels and the like (if  
you can invent a sed expression that does what you want).  Luckily  
what you can have on a single line is usually quite limited.



More information about the llvm-commits mailing list