mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-09 05:31:19 +00:00
af8cf90e2f
It had accidently accepted a symbol+offset value (and emitted incorrect code for it, keeping only the offset part) instead of properly reporting the constraint as invalid. Differential Revision: http://reviews.llvm.org/D11039 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242040 91177308-0d34-0410-b5e6-96231b3b80d8
11 lines
293 B
LLVM
11 lines
293 B
LLVM
; RUN: not llc -march=x86 -no-integrated-as < %s 2>&1 | FileCheck %s
|
|
|
|
@x = global i32 0, align 4
|
|
|
|
;CHECK: error: invalid operand for inline asm constraint 'n'
|
|
define void @foo() {
|
|
%a = getelementptr i32, i32* @x, i32 1
|
|
call void asm sideeffect "foo $0", "n"(i32* %a) nounwind
|
|
ret void
|
|
}
|