mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-23 12:08:25 +00: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
17 lines
510 B
LLVM
17 lines
510 B
LLVM
; RUN: llvm-as < %s | llc -mtriple=i386-apple-darwin | not grep fstpt
|
|
; PR3457
|
|
; rdar://6548010
|
|
|
|
define void @foo(double* nocapture %P) nounwind {
|
|
entry:
|
|
%0 = tail call double (...)* @test() nounwind ; <double> [#uses=2]
|
|
%1 = tail call double (...)* @test() nounwind ; <double> [#uses=2]
|
|
%2 = fmul double %0, %0 ; <double> [#uses=1]
|
|
%3 = fmul double %1, %1 ; <double> [#uses=1]
|
|
%4 = fadd double %2, %3 ; <double> [#uses=1]
|
|
store double %4, double* %P, align 8
|
|
ret void
|
|
}
|
|
|
|
declare double @test(...)
|