[mlir][spirv] Add pattern to lower math.copysign
authorLei Zhang <antiagainst@google.com>
Fri, 1 Apr 2022 16:02:43 +0000 (12:02 -0400)
committerLei Zhang <antiagainst@google.com>
Fri, 1 Apr 2022 16:06:47 +0000 (12:06 -0400)
commit533ec929f67d0169f247cb73835a127053cc5933
treeaf8b4dceffe4e97a3a47f19894d919df2c353068
parentb8652fbcbbde830ec2f48ff165e5706fb607d02b
[mlir][spirv] Add pattern to lower math.copysign

This follows the logic:
https://git.musl-libc.org/cgit/musl/tree/src/math/copysignf.c

Reviewed By: ThomasRaoux

Differential Revision: https://reviews.llvm.org/D122910
mlir/lib/Conversion/MathToSPIRV/MathToSPIRV.cpp
mlir/test/Conversion/MathToSPIRV/math-to-core-spirv.mlir [new file with mode: 0644]