Skip to content

Commit bca7864

Browse files
authored
[X86] Support ATOMIC_LOAD_FP_BINOP_MI for other binops (#87524)
Since we can bitcast and then do the same thing sub does in the table section above, I figured it was trivial to add fsub, fmul, and fdiv.
1 parent 645fb04 commit bca7864

File tree

2 files changed

+2326
-1
lines changed

2 files changed

+2326
-1
lines changed

llvm/lib/Target/X86/X86InstrCompiler.td

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1125,7 +1125,9 @@ multiclass ATOMIC_LOAD_FP_BINOP_MI<string Name, SDNode op> {
11251125
Requires<[HasAVX512]>;
11261126
}
11271127
defm : ATOMIC_LOAD_FP_BINOP_MI<"ADD", fadd>;
1128-
// FIXME: Add fsub, fmul, fdiv, ...
1128+
defm : ATOMIC_LOAD_FP_BINOP_MI<"SUB", fsub>;
1129+
defm : ATOMIC_LOAD_FP_BINOP_MI<"MUL", fmul>;
1130+
defm : ATOMIC_LOAD_FP_BINOP_MI<"DIV", fdiv>;
11291131

11301132
multiclass RELEASE_UNOP<string Name, dag dag8, dag dag16, dag dag32,
11311133
dag dag64> {

0 commit comments

Comments
 (0)