Test case for X86 inline asm constraint 'I'
[oota-llvm.git] / test / CodeGen / X86 / test-pic-cpool.ll
1 ; RUN: llvm-as < %s | llc -mtriple=i686-pc-linux-gnu -relocation-model=pic &&
2 ; RUN: llvm-as < %s | llc -mtriple=i686-pc-linux-gnu -relocation-model=pic | grep _GLOBAL_OFFSET_TABLE_ &&
3 ; RUN: llvm-as < %s | llc -mtriple=i686-pc-linux-gnu -relocation-model=pic | grep piclabel | wc -l | grep 3 &&
4 ; RUN: llvm-as < %s | llc -mtriple=i686-pc-linux-gnu -relocation-model=pic | grep GOTOFF | wc -l | grep 2 &&
5 ; RUN: llvm-as < %s | llc -mtriple=i686-pc-linux-gnu -relocation-model=pic | grep CPI | wc -l | grep 4
6
7 define double @foo(i32 %a.u) {
8 entry:
9     %tmp = icmp eq i32 %a.u,0
10     %retval = select i1 %tmp, double 4.561230e+02, double 1.234560e+02
11     ret double %retval
12 }
13