llvm.org GIT mirror llvm / f43fba2
[X86] Add some 8 and 16-bit instructions to the load folding tables. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@321952 91177308-0d34-0410-b5e6-96231b3b80d8 Craig Topper 2 years ago
2 changed file(s) with 7 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
1313 tablegen(LLVM X86GenRegisterBank.inc -gen-register-bank)
1414 tablegen(LLVM X86GenGlobalISel.inc -gen-global-isel)
1515
16 if (X86_GEN_FOLD_TABLES)
17 tablegen(LLVM X86GenFoldTables.inc -gen-x86-fold-tables)
18 endif()
16 tablegen(LLVM X86GenFoldTables.inc -gen-x86-fold-tables)
1917
2018 add_public_tablegen_target(X86CommonTableGen)
2119
349349 { X86::BT16ri8, X86::BT16mi8, TB_FOLDED_LOAD },
350350 { X86::BT32ri8, X86::BT32mi8, TB_FOLDED_LOAD },
351351 { X86::BT64ri8, X86::BT64mi8, TB_FOLDED_LOAD },
352 { X86::CALL16r, X86::CALL16m, TB_FOLDED_LOAD },
352353 { X86::CALL32r, X86::CALL32m, TB_FOLDED_LOAD },
353354 { X86::CALL64r, X86::CALL64m, TB_FOLDED_LOAD },
354355 { X86::CMP16ri, X86::CMP16mi, TB_FOLDED_LOAD },
376377 { X86::IMUL32r, X86::IMUL32m, TB_FOLDED_LOAD },
377378 { X86::IMUL64r, X86::IMUL64m, TB_FOLDED_LOAD },
378379 { X86::IMUL8r, X86::IMUL8m, TB_FOLDED_LOAD },
380 { X86::JMP16r, X86::JMP16m, TB_FOLDED_LOAD },
379381 { X86::JMP32r, X86::JMP32m, TB_FOLDED_LOAD },
380382 { X86::JMP64r, X86::JMP64m, TB_FOLDED_LOAD },
381383 { X86::MOV16ri, X86::MOV16mi, TB_FOLDED_STORE },
11191121 }
11201122
11211123 static const X86MemoryFoldTableEntry MemoryFoldTable2[] = {
1124 { X86::ADC16rr, X86::ADC16rm, 0 },
11221125 { X86::ADC32rr, X86::ADC32rm, 0 },
11231126 { X86::ADC64rr, X86::ADC64rm, 0 },
1127 { X86::ADC8rr, X86::ADC8rm, 0 },
11241128 { X86::ADD16rr, X86::ADD16rm, 0 },
11251129 { X86::ADD16rr_DB, X86::ADD16rm, TB_NO_REVERSE },
11261130 { X86::ADD32rr, X86::ADD32rm, 0 },
13511355 { X86::PXORrr, X86::PXORrm, TB_ALIGN_16 },
13521356 { X86::ROUNDSDr_Int, X86::ROUNDSDm_Int, TB_NO_REVERSE },
13531357 { X86::ROUNDSSr_Int, X86::ROUNDSSm_Int, TB_NO_REVERSE },
1358 { X86::SBB16rr, X86::SBB16rm, 0 },
13541359 { X86::SBB32rr, X86::SBB32rm, 0 },
13551360 { X86::SBB64rr, X86::SBB64rm, 0 },
1361 { X86::SBB8rr, X86::SBB8rm, 0 },
13561362 { X86::SHUFPDrri, X86::SHUFPDrmi, TB_ALIGN_16 },
13571363 { X86::SHUFPSrri, X86::SHUFPSrmi, TB_ALIGN_16 },
13581364 { X86::SUB16rr, X86::SUB16rm, 0 },