[llvm-commits] [llvm] r153234 - /llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp

Jim Grosbach grosbach at apple.com
Fri Mar 23 11:29:10 PDT 2012


On Mar 23, 2012, at 11:07 AM, Eric Christopher wrote:

> 
> On Mar 23, 2012, at 1:32 AM, Duncan Sands <baldrick at free.fr> wrote:
> 
>> Hi Eric,
>> 
>>> URL: http://llvm.org/viewvc/llvm-project?rev=153234&view=rev
>>> Log:
>>> In erroneous inline assembly we could mistakenly try to access the
>>> metadata operand as an actual operand, leading to an assert. Error
>>> out in this case.
>>> 
>>> rdar://11007633
>> 
>> baldrick bot says: "testcase?"
> 
> Yeah, I've got one, but it's going to error out anyhow and for some reason
> my brain wasn't working with "how to write a testcase that's going to error out
> anyhow for the backend".
> 

You want a test that issues one error but not another?

I'd do something like:

; RUN: not llc <blah blah> < %s 2> %t | FileCheck %s
; RUN: FileCheck --check-prefix=CHECK-ERRORS < %t %s

; CHECK: normal output check here
; CHECK-ERRORS: my-diagnostic-here

Perhaps with some CHECK-ERRORS-NOT and CHECK-NOT, too.

-Jim


> -eric
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits




More information about the llvm-commits mailing list