llvm.org GIT mirror llvm / d32d85e
Add 3DNowA instructions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115477 91177308-0d34-0410-b5e6-96231b3b80d8 Eli Friedman 10 years ago
2 changed file(s) with 22 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
6868 "prefetchw $addr", []>;
6969 }
7070
71
72 // TODO: Add support for the "3DNowA" instructions.
71 // "3DNowA" instructions
72 defm PF2IW : I3DNow_binop_rm<0x1C, "pf2iw">;
73 defm PI2FW : I3DNow_binop_rm<0x0C, "pi2fw">;
74 defm PFNACC : I3DNow_binop_rm<0x8A, "pfnacc">;
75 defm PFPNACC : I3DNow_binop_rm<0x8E, "pfpnacc">;
76 defm PSWAPD : I3DNow_binop_rm<0xBB, "pswapd">;
7373 // CHECK: prefetchw (%rax) # encoding: [0x0f,0x0d,0x08]
7474 prefetch (%rax)
7575 prefetchw (%rax)
76
77
78 // CHECK: pf2iw %mm2, %mm1 # encoding: [0x0f,0x0f,0xca,0x1c]
79 pf2iw %mm2, %mm1
80
81 // CHECK: pi2fw %mm2, %mm1 # encoding: [0x0f,0x0f,0xca,0x0c]
82 pi2fw %mm2, %mm1
83
84 // CHECK: pfnacc %mm2, %mm1 # encoding: [0x0f,0x0f,0xca,0x8a]
85 pfnacc %mm2, %mm1
86
87 // CHECK: pfpnacc %mm2, %mm1 # encoding: [0x0f,0x0f,0xca,0x8e]
88 pfpnacc %mm2, %mm1
89
90 // CHECK: pswapd %mm2, %mm1 # encoding: [0x0f,0x0f,0xca,0xbb]
91 pswapd %mm2, %mm1