From: NAKAMURA Takumi Date: Tue, 2 Oct 2012 16:36:54 +0000 (+0000) Subject: FP_CONTRACT: Fix two tests for -Asserts. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=18fc445af5db1ff2dc63cdc3427c15a2bae91898;p=platform%2Fupstream%2Fllvm.git FP_CONTRACT: Fix two tests for -Asserts. llvm-svn: 165024 --- diff --git a/clang/test/CodeGen/fp-contract-pragma.cpp b/clang/test/CodeGen/fp-contract-pragma.cpp index 8c51469..723ac1f 100644 --- a/clang/test/CodeGen/fp-contract-pragma.cpp +++ b/clang/test/CodeGen/fp-contract-pragma.cpp @@ -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 @@ float fp_contract_1(float a, float b, float c) { // 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 @@ T template_muladd(T a, T b, T c) { 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(a, b, c); } diff --git a/clang/test/CodeGenOpenCL/single-precision-constant.cl b/clang/test/CodeGenOpenCL/single-precision-constant.cl index 9ad1fb4..6ff7bd1 100644 --- a/clang/test/CodeGenOpenCL/single-precision-constant.cl +++ b/clang/test/CodeGenOpenCL/single-precision-constant.cl @@ -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.; }