diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2012-10-02 16:36:54 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2012-10-02 16:36:54 +0000 |
commit | 18fc445af5db1ff2dc63cdc3427c15a2bae91898 (patch) | |
tree | 09aacdeaba3ee9c85a2115641a4b09f491e684e1 /clang/test/CodeGen/fp-contract-pragma.cpp | |
parent | d4fcf580709443c73c4b15d9880eb0851dbb6ff1 (diff) | |
download | bcm5719-llvm-18fc445af5db1ff2dc63cdc3427c15a2bae91898.tar.gz bcm5719-llvm-18fc445af5db1ff2dc63cdc3427c15a2bae91898.zip |
FP_CONTRACT: Fix two tests for -Asserts.
llvm-svn: 165024
Diffstat (limited to 'clang/test/CodeGen/fp-contract-pragma.cpp')
-rw-r--r-- | clang/test/CodeGen/fp-contract-pragma.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/clang/test/CodeGen/fp-contract-pragma.cpp b/clang/test/CodeGen/fp-contract-pragma.cpp index 8c51469c473..723ac1f4637 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<float>(a, b, c); } |