mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-30 23:42:52 +01:00
5f6f8101d5
integer and floating-point opcodes, introducing FAdd, FSub, and FMul. For now, the AsmParser, BitcodeReader, and IRBuilder all preserve backwards compatability, and the Core LLVM APIs preserve backwards compatibility for IR producers. Most front-ends won't need to change immediately. This implements the first step of the plan outlined here: http://nondot.org/sabre/LLVMNotes/IntegerOverflow.txt llvm-svn: 72897
12 lines
401 B
LLVM
12 lines
401 B
LLVM
; RUN: llvm-as < %s | llc -march=arm -mattr=+v6,+vfp2 | grep fnmuld
|
|
; RUN: llvm-as < %s | llc -march=arm -mattr=+v6,+vfp2 -enable-sign-dependent-rounding-fp-math | grep fmul
|
|
|
|
|
|
define double @t1(double %a, double %b) {
|
|
entry:
|
|
%tmp2 = fsub double -0.000000e+00, %a ; <double> [#uses=1]
|
|
%tmp4 = fmul double %tmp2, %b ; <double> [#uses=1]
|
|
ret double %tmp4
|
|
}
|
|
|