diff options
author | Pirama Arumuga Nainar <pirama@google.com> | 2015-04-08 08:55:49 -0700 |
---|---|---|
committer | Pirama Arumuga Nainar <pirama@google.com> | 2015-04-09 15:04:38 -0700 |
commit | 4c5e43da7792f75567b693105cc53e3f1992ad98 (patch) | |
tree | 1b2c9792582e12f5af0b1512e3094425f0dc0df9 /test/CodeGen/X86/fastmath-optnone.ll | |
parent | c75239e6119d0f9a74c57099d91cbc9bde56bf33 (diff) | |
download | external_llvm-4c5e43da7792f75567b693105cc53e3f1992ad98.zip external_llvm-4c5e43da7792f75567b693105cc53e3f1992ad98.tar.gz external_llvm-4c5e43da7792f75567b693105cc53e3f1992ad98.tar.bz2 |
Update aosp/master llvm for rebase to r233350
Change-Id: I07d935f8793ee8ec6b7da003f6483046594bca49
Diffstat (limited to 'test/CodeGen/X86/fastmath-optnone.ll')
-rw-r--r-- | test/CodeGen/X86/fastmath-optnone.ll | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/test/CodeGen/X86/fastmath-optnone.ll b/test/CodeGen/X86/fastmath-optnone.ll deleted file mode 100644 index 0caadff..0000000 --- a/test/CodeGen/X86/fastmath-optnone.ll +++ /dev/null @@ -1,35 +0,0 @@ -; RUN: llc < %s -mcpu=corei7 -march=x86-64 -mattr=+sse2 | FileCheck %s -; Verify that floating-point operations inside 'optnone' functions -; are not optimized even if unsafe-fp-math is set. - -define float @foo(float %x) #0 { -entry: - %add = fadd fast float %x, %x - %add1 = fadd fast float %add, %x - ret float %add1 -} - -; CHECK-LABEL: @foo -; CHECK-NOT: add -; CHECK: mul -; CHECK-NOT: add -; CHECK: ret - -define float @fooWithOptnone(float %x) #1 { -entry: - %add = fadd fast float %x, %x - %add1 = fadd fast float %add, %x - ret float %add1 -} - -; CHECK-LABEL: @fooWithOptnone -; CHECK-NOT: mul -; CHECK: add -; CHECK-NOT: mul -; CHECK: add -; CHECK-NOT: mul -; CHECK: ret - - -attributes #0 = { "unsafe-fp-math"="true" } -attributes #1 = { noinline optnone "unsafe-fp-math"="true" } |