[llvm] r180445 - [inline asm] Add a test case for r180226. The specific issue is that the inline

Rafael EspĂ­ndola rafael.espindola at gmail.com
Thu Aug 14 08:05:49 PDT 2014


This still crashes:

./bin/llc  /home/espindola/llvm/llvm/test/CodeGen/X86/asm-invalid-register-class-crasher.ll
 -mtriple=i386-apple-darwin

llc: /home/espindola/llvm/llvm/include/llvm/Target/TargetLowering.h:321:
virtual const llvm::TargetRegisterClass
*llvm::TargetLoweringBase::getRegClassFor(llvm::MVT) const: Assertion
`RC && "This value type is not natively supported!"' failed.

Looks like it is not normally noticed because there is an error in the
RUN line giving llc multiple positional arguments.


On 25 April 2013 13:10, Chad Rosier <mcrosier at apple.com> wrote:
> Author: mcrosier
> Date: Thu Apr 25 12:10:21 2013
> New Revision: 180445
>
> URL: http://llvm.org/viewvc/llvm-project?rev=180445&view=rev
> Log:
> [inline asm] Add a test case for r180226.  The specific issue is that the inline
> assembly is requesting a 64-bit register, which is invalid for i386.
> rdar://13731657
>
> Added:
>     llvm/trunk/test/CodeGen/X86/asm-invalid-register-class-crasher.ll
>
> Added: llvm/trunk/test/CodeGen/X86/asm-invalid-register-class-crasher.ll
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/asm-invalid-register-class-crasher.ll?rev=180445&view=auto
> ==============================================================================
> --- llvm/trunk/test/CodeGen/X86/asm-invalid-register-class-crasher.ll (added)
> +++ llvm/trunk/test/CodeGen/X86/asm-invalid-register-class-crasher.ll Thu Apr 25 12:10:21 2013
> @@ -0,0 +1,9 @@
> +; RUN: not llc < %s -mtriple=i386-apple-darwin 2>&1 %t
> +
> +; Previously, this would assert in an assert build, but crash in a release build.
> +; No FileCheck, just make sure we handle this gracefully.
> +define i64 @t1(i64* %p, i64 %val) #0 {
> +entry:
> +  %0 = tail call i64 asm sideeffect "xaddq $0, $1", "=q,*m,0,~{memory},~{cc},~{dirflag},~{fpsr},~{flags}"(i64* %p, i64 %val)
> +  ret i64 %0
> +}
>
>
> _______________________________________________
> 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