Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(104)

Unified Diff: test/Transforms/ConstProp/X86/calls.ll

Issue 7792066: [llvm] Conditionally include target intrinsics, based on --enable-target Base URL: https://llvm.org/svn/llvm-project/llvm/trunk/
Patch Set: cleanups Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/Bitcode/ssse3_palignr.ll.bc ('k') | test/Transforms/ConstProp/X86/dg.exp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/Transforms/ConstProp/X86/calls.ll
===================================================================
--- test/Transforms/ConstProp/X86/calls.ll (revision 0)
+++ test/Transforms/ConstProp/X86/calls.ll (working copy)
@@ -1,32 +1,5 @@
; RUN: opt < %s -constprop -S | FileCheck %s
-declare double @cos(double)
-
-declare double @sin(double)
-
-declare double @tan(double)
-
-declare double @sqrt(double)
-declare double @exp2(double)
-
-define double @T() {
-; CHECK: @T
-; CHECK-NOT: call
-; CHECK: ret
- %A = call double @cos(double 0.000000e+00)
- %B = call double @sin(double 0.000000e+00)
- %a = fadd double %A, %B
- %C = call double @tan(double 0.000000e+00)
- %b = fadd double %a, %C
- %D = call double @sqrt(double 4.000000e+00)
- %c = fadd double %b, %D
-
- ; PR9315
- %E = call double @exp2(double 4.0)
- %d = fadd double %c, %E
- ret double %d
-}
-
define i1 @test_sse_cvt() nounwind readnone {
; CHECK: @test_sse_cvt
; CHECK-NOT: call
« no previous file with comments | « test/Bitcode/ssse3_palignr.ll.bc ('k') | test/Transforms/ConstProp/X86/dg.exp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698