Mac OS X X86-64 low 4G address not available.
authorEvan Cheng <evan.cheng@apple.com>
Wed, 1 Aug 2007 23:46:10 +0000 (23:46 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Wed, 1 Aug 2007 23:46:10 +0000 (23:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40702 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86InstrX86-64.td

index cf3fb8948f9afebbf7b1ad6e7500a2df0517a8ac..bdf2269bcfd8a05422aff372da8943cff9575c1c 100644 (file)
@@ -1016,16 +1016,16 @@ def : Pat<(i64 (X86Wrapper texternalsym:$dst)),
 
 def : Pat<(store (i64 (X86Wrapper tconstpool:$src)), addr:$dst),
           (MOV64mi32 addr:$dst, tconstpool:$src)>,
-          Requires<[SmallCode, IsStatic]>;
+          Requires<[SmallCode, HasLow4G, IsStatic]>;
 def : Pat<(store (i64 (X86Wrapper tjumptable:$src)), addr:$dst),
           (MOV64mi32 addr:$dst, tjumptable:$src)>,
-          Requires<[SmallCode, IsStatic]>;
+          Requires<[SmallCode, HasLow4G, IsStatic]>;
 def : Pat<(store (i64 (X86Wrapper tglobaladdr:$src)), addr:$dst),
           (MOV64mi32 addr:$dst, tglobaladdr:$src)>,
-          Requires<[SmallCode, IsStatic]>;
+          Requires<[SmallCode, HasLow4G, IsStatic]>;
 def : Pat<(store (i64 (X86Wrapper texternalsym:$src)), addr:$dst),
           (MOV64mi32 addr:$dst, texternalsym:$src)>,
-          Requires<[SmallCode, IsStatic]>;
+          Requires<[SmallCode, HasLow4G, IsStatic]>;
 
 // Calls
 // Direct PC relative function call for small code model. 32-bit displacement