Use MOV8rm to load 1 bit value.
authorEvan Cheng <evan.cheng@apple.com>
Thu, 15 Dec 2005 00:59:17 +0000 (00:59 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Thu, 15 Dec 2005 00:59:17 +0000 (00:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24721 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86InstrInfo.td

index d891a4e3992eca21cff97f2095374ddb28278b90..826ea4121415d543269ca89aca20ec4c2505f0b5 100644 (file)
@@ -431,6 +431,9 @@ def MOV32mr : I<0x89, MRMDestMem, (ops i32mem:$dst, R32:$src),
                 "mov{l} {$src, $dst|$dst, $src}",
                 [(store R32:$src, addr:$dst)]>;
                 
+// Handling 1 bit load
+def : Pat<(i1 (load addr:$src)), (MOV8rm  addr:$src)>;
+
 //===----------------------------------------------------------------------===//
 //  Fixed-Register Multiplication and Division Instructions...
 //