aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-06-11 02:54:54 +0000
committerChris Lattner <sabre@nondot.org>2004-06-11 02:54:54 +0000
commita32579b8f8cbbddff639b9548f65fefc687b0612 (patch)
tree9479ce2240ae916c234db379fc5597c03c796cea /test/CodeGen
parent02348caffc6a0ca6e00960767152b6b7422ab450 (diff)
downloadexternal_llvm-a32579b8f8cbbddff639b9548f65fefc687b0612.zip
external_llvm-a32579b8f8cbbddff639b9548f65fefc687b0612.tar.gz
external_llvm-a32579b8f8cbbddff639b9548f65fefc687b0612.tar.bz2
Check to make sure that isnan doesn't require calling a function
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14135 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen')
-rw-r--r--test/CodeGen/X86/isnan.llx7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CodeGen/X86/isnan.llx b/test/CodeGen/X86/isnan.llx
new file mode 100644
index 0000000..eb7bed3
--- /dev/null
+++ b/test/CodeGen/X86/isnan.llx
@@ -0,0 +1,7 @@
+; RUN: llvm-as < %s | llc -march=x86 | not grep call
+declare bool %llvm.isnan(double)
+
+bool %test_isnan(double %X) {
+ %R = call bool %llvm.isnan(double %X)
+ ret bool %R
+}