xref: /minix3/external/bsd/llvm/dist/llvm/test/CodeGen/X86/asm-invalid-register-class-crasher.ll (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc; RUN: not llc < %s -mtriple=i386-apple-darwin 2>&1 %t
2*f4a2713aSLionel Sambuc
3*f4a2713aSLionel Sambuc; Previously, this would assert in an assert build, but crash in a release build.
4*f4a2713aSLionel Sambuc; No FileCheck, just make sure we handle this gracefully.
5*f4a2713aSLionel Sambucdefine i64 @t1(i64* %p, i64 %val) #0 {
6*f4a2713aSLionel Sambucentry:
7*f4a2713aSLionel Sambuc  %0 = tail call i64 asm sideeffect "xaddq $0, $1", "=q,*m,0,~{memory},~{cc},~{dirflag},~{fpsr},~{flags}"(i64* %p, i64 %val)
8*f4a2713aSLionel Sambuc  ret i64 %0
9*f4a2713aSLionel Sambuc}
10