xref: /NextBSD/contrib/llvm/patches/patch-03-enable-armv6-clrex.diff (revision 84d351007654069f9643c8e4b4802a7f5f08ee42)
1For now, enable the clrex instruction for armv6, until upstream
2implements this properly.
3
4Submitted by:	rdivacky
5
6Introduced here: http://svnweb.freebsd.org/changeset/base/275362
7
8Index: lib/Target/ARM/ARMInstrInfo.td
9===================================================================
10--- lib/Target/ARM/ARMInstrInfo.td
11+++ lib/Target/ARM/ARMInstrInfo.td
12@@ -4640,7 +4640,7 @@ def STLEXD : AIstlex<0b01, (outs GPR:$Rd),
13
14 def CLREX : AXI<(outs), (ins), MiscFrm, NoItinerary, "clrex",
15                 [(int_arm_clrex)]>,
16-            Requires<[IsARM, HasV7]>  {
17+            Requires<[IsARM, HasV6]>  {
18   let Inst{31-0} = 0b11110101011111111111000000011111;
19 }
20
21