aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/pic-cpool.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-02-19 17:33:52 +0000
committerChris Lattner <sabre@nondot.org>2008-02-19 17:33:52 +0000
commit64dac86acbc07d8a9efcdab06494d94548ffb038 (patch)
tree18f099814ff8d4af2c81c03f70106246f05c2508 /test/CodeGen/X86/pic-cpool.ll
parent4a287b1cb142ce23461945e9cc29b655379b5b5c (diff)
downloadexternal_llvm-64dac86acbc07d8a9efcdab06494d94548ffb038.zip
external_llvm-64dac86acbc07d8a9efcdab06494d94548ffb038.tar.gz
external_llvm-64dac86acbc07d8a9efcdab06494d94548ffb038.tar.bz2
rename tests to avoid a test- prefix when they aren't related to the test instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47329 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/pic-cpool.ll')
-rw-r--r--test/CodeGen/X86/pic-cpool.ll14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/CodeGen/X86/pic-cpool.ll b/test/CodeGen/X86/pic-cpool.ll
new file mode 100644
index 0000000..cac31ed
--- /dev/null
+++ b/test/CodeGen/X86/pic-cpool.ll
@@ -0,0 +1,14 @@
+; RUN: llvm-as < %s | llc -mtriple=i686-pc-linux-gnu -relocation-model=pic \
+; RUN: -o %t -f
+; RUN: grep _GLOBAL_OFFSET_TABLE_ %t
+; RUN: grep piclabel %t | count 3
+; RUN: grep GOTOFF %t | count 2
+; RUN: grep CPI %t | count 4
+
+define double @foo(i32 %a.u) {
+entry:
+ %tmp = icmp eq i32 %a.u,0
+ %retval = select i1 %tmp, double 4.561230e+02, double 1.234560e+02
+ ret double %retval
+}
+