[cfe-commits] r165024 - in /cfe/trunk/test: CodeGen/fp-contract-pragma.cpp CodeGenOpenCL/single-precision-constant.cl
NAKAMURA Takumi
geek4civic at gmail.com
Tue Oct 2 09:36:54 PDT 2012
Author: chapuni
Date: Tue Oct 2 11:36:54 2012
New Revision: 165024
URL: http://llvm.org/viewvc/llvm-project?rev=165024&view=rev
Log:
FP_CONTRACT: Fix two tests for -Asserts.
Modified:
cfe/trunk/test/CodeGen/fp-contract-pragma.cpp
cfe/trunk/test/CodeGenOpenCL/single-precision-constant.cl
Modified: cfe/trunk/test/CodeGen/fp-contract-pragma.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/fp-contract-pragma.cpp?rev=165024&r1=165023&r2=165024&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/fp-contract-pragma.cpp (original)
+++ cfe/trunk/test/CodeGen/fp-contract-pragma.cpp Tue Oct 2 11:36:54 2012
@@ -3,8 +3,7 @@
// Is FP_CONTRACT is honored in a simple case?
float fp_contract_1(float a, float b, float c) {
// CHECK: _Z13fp_contract_1fff
-// CHECK-NEXT: entry
-// CHECK-NEXT: %0 = tail call float @llvm.fmuladd
+// CHECK: tail call float @llvm.fmuladd
#pragma STDC FP_CONTRACT ON
return a * b + c;
}
@@ -12,9 +11,8 @@
// Is FP_CONTRACT state cleared on exiting compound statements?
float fp_contract_2(float a, float b, float c) {
// CHECK: _Z13fp_contract_2fff
-// CHECK-NEXT: entry
-// CHECK-NEXT: %mul = fmul float %a, %b
-// CHECK-NEXT: %add = fadd float %mul, %c
+// CHECK: %[[M:.+]] = fmul float %a, %b
+// CHECK-NEXT: fadd float %[[M]], %c
{
#pragma STDC FP_CONTRACT ON
}
@@ -33,7 +31,6 @@
float fp_contract_3(float a, float b, float c) {
// CHECK: _Z13fp_contract_3fff
-// CHECK-NEXT: entry
-// CHECK-NEXT: %0 = tail call float @llvm.fmuladd
+// CHECK: tail call float @llvm.fmuladd
return template_muladd<float>(a, b, c);
}
Modified: cfe/trunk/test/CodeGenOpenCL/single-precision-constant.cl
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenOpenCL/single-precision-constant.cl?rev=165024&r1=165023&r2=165024&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenOpenCL/single-precision-constant.cl (original)
+++ cfe/trunk/test/CodeGenOpenCL/single-precision-constant.cl Tue Oct 2 11:36:54 2012
@@ -1,6 +1,6 @@
// RUN: %clang_cc1 %s -cl-single-precision-constant -emit-llvm -o - | FileCheck %s
float fn(float f) {
- // CHECK: %0 = tail call float @llvm.fmuladd.f32(float %f, float 2.000000e+00, float 1.000000e+00)
+ // CHECK: tail call float @llvm.fmuladd.f32(float %f, float 2.000000e+00, float 1.000000e+00)
return f*2. + 1.;
}
More information about the cfe-commits
mailing list