mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-05 02:38:31 +00:00
Get codebase completely working with LLVM
You can now build Cosmopolitan with Clang: make -j8 MODE=llvm o/llvm/examples/hello.com The assembler and linker code is now friendly to LLVM too. So it's not needed to configure Clang to use binutils under the hood. If you love LLVM then you can now use pure LLVM.
This commit is contained in:
parent
0e36cb3ac4
commit
e75ffde09e
4528 changed files with 7776 additions and 11640 deletions
|
@ -17,38 +17,38 @@
|
|||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
|
||||
/ Documentation for Intel(R)'s “Most Complicated Instruction”(TM)
|
||||
/
|
||||
/ mnemonic op1 op2 op3 op4 modif f description, notes
|
||||
/ ═══════════ ════ ════ ════ ═══ ════════ ═════════════════════════════
|
||||
/ PCMPESTRM XMM0 Vdq Wdq ... o..szapc Explicit Length, Return Mask
|
||||
/ PCMPESTRI rCX Vdq Wdq ... o..szapc Explicit Length, Return Index
|
||||
/ PCMPISTRM XMM0 Vdq Wdq Ib o..szapc Implicit Length, Return Mask
|
||||
/ PCMPISTRI rCX Vdq Wdq Ib o..szapc Implicit Length, Return Index
|
||||
/
|
||||
/ CF ← Reset if IntRes2 is equal to zero, set otherwise
|
||||
/ ZF ← Set if any byte/word of xmm2/mem128 is null, reset otherwise
|
||||
/ SF ← Set if any byte/word of xmm1 is null, reset otherwise
|
||||
/ OF ← IntRes2[0]
|
||||
/ AF ← Reset
|
||||
/ PF ← Reset
|
||||
/
|
||||
/ PCMP{E,I}STR{I,M} Control Byte
|
||||
/ @see Intel Manual V.2B §4.1.7
|
||||
/
|
||||
/ ┌─0:index of the LEAST significant, set, bit is used
|
||||
/ │ regardless of corresponding input element validity
|
||||
/ │ intres2 is returned in least significant bits of xmm0
|
||||
/ ├─1:index of the MOST significant, set, bit is used
|
||||
/ │ regardless of corresponding input element validity
|
||||
/ │ each bit of intres2 is expanded to byte/word
|
||||
/ │┌─0:negation of intres1 is for all 16 (8) bits
|
||||
/ │├─1:negation of intres1 is masked by reg/mem validity
|
||||
/ ││┌─intres1 is negated (1’s complement)
|
||||
/ │││┌─mode{equalany,ranges,equaleach,equalordered}
|
||||
/ ││││ ┌─issigned
|
||||
/ ││││ │┌─is16bit
|
||||
/ u│││├┐││
|
||||
// Documentation for Intel(R)'s “Most Complicated Instruction”(TM)
|
||||
//
|
||||
// mnemonic op1 op2 op3 op4 modif f description, notes
|
||||
// ═══════════ ════ ════ ════ ═══ ════════ ═════════════════════════════
|
||||
// PCMPESTRM XMM0 Vdq Wdq ... o..szapc Explicit Length, Return Mask
|
||||
// PCMPESTRI rCX Vdq Wdq ... o..szapc Explicit Length, Return Index
|
||||
// PCMPISTRM XMM0 Vdq Wdq Ib o..szapc Implicit Length, Return Mask
|
||||
// PCMPISTRI rCX Vdq Wdq Ib o..szapc Implicit Length, Return Index
|
||||
//
|
||||
// CF ← Reset if IntRes2 is equal to zero, set otherwise
|
||||
// ZF ← Set if any byte/word of xmm2/mem128 is null, reset otherwise
|
||||
// SF ← Set if any byte/word of xmm1 is null, reset otherwise
|
||||
// OF ← IntRes2[0]
|
||||
// AF ← Reset
|
||||
// PF ← Reset
|
||||
//
|
||||
// PCMP{E,I}STR{I,M} Control Byte
|
||||
// @see Intel Manual V.2B §4.1.7
|
||||
//
|
||||
// ┌─0:index of the LEAST significant, set, bit is used
|
||||
// │ regardless of corresponding input element validity
|
||||
// │ intres2 is returned in least significant bits of xmm0
|
||||
// ├─1:index of the MOST significant, set, bit is used
|
||||
// │ regardless of corresponding input element validity
|
||||
// │ each bit of intres2 is expanded to byte/word
|
||||
// │┌─0:negation of intres1 is for all 16 (8) bits
|
||||
// │├─1:negation of intres1 is masked by reg/mem validity
|
||||
// ││┌─intres1 is negated (1’s complement)
|
||||
// │││┌─mode{equalany,ranges,equaleach,equalordered}
|
||||
// ││││ ┌─issigned
|
||||
// ││││ │┌─is16bit
|
||||
// u│││├┐││
|
||||
.Lequalordered = 0b00001100
|
||||
.Lequalorder16 = 0b00001101
|
||||
.Lequalranges8 = 0b00000100
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue