mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-04 11:17:31 +00:00
[X86] Don't allow DR8-DR15 to be assembled in 32-bit mode. Add missing test for CR8-CR15.
llvm-svn: 279921
This commit is contained in:
parent
c727b74959
commit
c65627ae77
@ -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…
x
Reference in New Issue
Block a user