Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 1 | ; RUN: llvm-as < %s | llc -mtriple=i686-pc-linux-gnu -relocation-model=pic \ |
| 2 | ; RUN: -o %t -f |
| 3 | ; RUN: grep _GLOBAL_OFFSET_TABLE_ %t |
Dan Gohman | 8c89a50 | 2007-08-15 13:36:28 +0000 | [diff] [blame] | 4 | ; RUN: grep piclabel %t | count 3 |
| 5 | ; RUN: grep GOTOFF %t | count 2 |
| 6 | ; RUN: grep CPI %t | count 4 |
Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 7 | |
| 8 | define double @foo(i32 %a.u) { |
| 9 | entry: |
| 10 | %tmp = icmp eq i32 %a.u,0 |
| 11 | %retval = select i1 %tmp, double 4.561230e+02, double 1.234560e+02 |
| 12 | ret double %retval |
| 13 | } |
| 14 | |