1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 03:53:04 +02:00
llvm-mirror/test/CodeGen/X86/asm-invalid-register-class-crasher.ll
Chad Rosier 3030f76a0d [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

llvm-svn: 180445
2013-04-25 17:10:21 +00:00

10 lines
382 B
LLVM

; 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
}