mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-19 06:31:18 +00:00
Add support for the X86 'l' constraint.
Fixes PR10149 and rdar://9738585 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134648 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
09ad0b6894
commit
31b5f00c4e
@ -12592,6 +12592,7 @@ X86TargetLowering::getConstraintType(const std::string &Constraint) const {
|
||||
case 'y':
|
||||
case 'x':
|
||||
case 'Y':
|
||||
case 'l':
|
||||
return C_RegisterClass;
|
||||
case 'a':
|
||||
case 'b':
|
||||
|
@ -23,3 +23,10 @@ define void @test4() nounwind {
|
||||
tail call void asm sideeffect "bork $0", "J"(i32 37) nounwind
|
||||
ret void
|
||||
}
|
||||
|
||||
; rdar://9738585
|
||||
define i32 @test5() nounwind {
|
||||
entry:
|
||||
%0 = tail call i32 asm "test", "=l,~{dirflag},~{fpsr},~{flags}"() nounwind
|
||||
ret i32 0
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user