mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
fa94d17420
Summary: An inline asm call can result in an immediate after inlining. Therefore emit a diagnostic here if constraint requires an immediate but one isn't supplied. Reviewers: joerg, mgorny, efriedma, rsmith Reviewed By: joerg Subscribers: asb, rbar, johnrusso, simoncook, apazos, sabuasal, niosHD, zzheng, edward-jones, rogfer01, MartinMosbeck, brucehoult, the_o, PkmX, jocewei, s.egerton, MaskRay, jyknight, dylanmckay, javed.absar, fedor.sergeev, jrtc27, Jim, krytarowski, eraman, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D60942 llvm-svn: 367750
11 lines
307 B
LLVM
11 lines
307 B
LLVM
; RUN: not llc -mtriple=i686-- -no-integrated-as < %s 2>&1 | FileCheck %s
|
|
|
|
@x = global i32 0, align 4
|
|
|
|
; CHECK: error: constraint 'n' expects an integer constant expression
|
|
define void @foo() {
|
|
%a = getelementptr i32, i32* @x, i32 1
|
|
call void asm sideeffect "foo $0", "n"(i32* %a) nounwind
|
|
ret void
|
|
}
|