mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-30 23:42:52 +01:00
9f6e25017a
This patch is mostly just refactoring a bunch of copy-and-pasted code, but it also adds a check that the call instructions are readnone or readonly. That check was already present for sin, cos, sqrt, log2, and exp2 calls, but it was missing for the rest of the builtins being handled in this code. llvm-svn: 161282
8 lines
216 B
LLVM
8 lines
216 B
LLVM
; RUN: llc < %s -march=ppc32 -mtriple=powerpc-apple-darwin | grep "fabs f1, f1"
|
|
|
|
define double @fabs(double %f) {
|
|
entry:
|
|
%tmp2 = tail call double @fabs( double %f ) readnone ; <double> [#uses=1]
|
|
ret double %tmp2
|
|
}
|