Skip to content

Commit ac8f81c

Browse files
AZero13nekoshirro
authored andcommitted
[X86] Support ATOMIC_LOAD_FP_BINOP_MI for other binops (llvm#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. Signed-off-by: Hafidz Muzakky <[email protected]>
1 parent f4011f7 commit ac8f81c

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)