mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-02 16:56:50 +00:00
[X86] Don't allow DR8-DR15 to be assembled in 32-bit mode. Add missing test for CR8-CR15.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@279921 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a733d39899
commit
8b5392fd41
@ -750,6 +750,8 @@ namespace X86II {
|
||||
case X86::R12B: case X86::R13B: case X86::R14B: case X86::R15B:
|
||||
case X86::CR8: case X86::CR9: case X86::CR10: case X86::CR11:
|
||||
case X86::CR12: case X86::CR13: case X86::CR14: case X86::CR15:
|
||||
case X86::DR8: case X86::DR9: case X86::DR10: case X86::DR11:
|
||||
case X86::DR12: case X86::DR13: case X86::DR14: case X86::DR15:
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
@ -68,3 +68,9 @@ jrcxz 1
|
||||
|
||||
// 64: error: instruction requires: Not 64-bit mode
|
||||
jcxz 1
|
||||
|
||||
// 32: error: register %cr8 is only available in 64-bit mode
|
||||
movl %edx, %cr8
|
||||
|
||||
// 32: error: register %dr8 is only available in 64-bit mode
|
||||
movl %edx, %dr8
|
||||
|
Loading…
Reference in New Issue
Block a user