Lang Hames | c968671 | 2012-07-06 00:59:19 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -O3 -ffp-contract=fast -triple=powerpc-apple-darwin10 -S -o - %s | FileCheck %s |
NAKAMURA Takumi | 102bab7 | 2012-07-06 11:11:27 +0000 | [diff] [blame] | 2 | // REQUIRES: ppc32-registered-target |
Lang Hames | c968671 | 2012-07-06 00:59:19 +0000 | [diff] [blame] | 3 | |
4 | float fma_test1(float a, float b, float c) { | ||||
5 | // CHECK: fmadds | ||||
6 | float x = a * b; | ||||
7 | float y = x + c; | ||||
8 | return y; | ||||
9 | } |