1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=i686-- -mcpu=yonah | FileCheck %s
4 define double @test1(ptr %P) {
7 ; CHECK-NEXT: movl {{[0-9]+}}(%esp), %eax
8 ; CHECK-NEXT: fldl (%eax)
10 %X = load double, ptr %P ; <double> [#uses=1]
14 define double @test2() {
17 ; CHECK-NEXT: fldl {{\.?LCPI[0-9]+_[0-9]+}}
19 ret double 1.234560e+03
23 define double @test3(i1 %B) {
26 ; CHECK-NEXT: pushl %ebp
27 ; CHECK-NEXT: .cfi_def_cfa_offset 8
28 ; CHECK-NEXT: .cfi_offset %ebp, -8
29 ; CHECK-NEXT: movl %esp, %ebp
30 ; CHECK-NEXT: .cfi_def_cfa_register %ebp
31 ; CHECK-NEXT: andl $-8, %esp
32 ; CHECK-NEXT: subl $8, %esp
33 ; CHECK-NEXT: testb $1, 8(%ebp)
34 ; CHECK-NEXT: jne .LBB2_1
35 ; CHECK-NEXT: # %bb.2:
36 ; CHECK-NEXT: movsd {{.*#+}} xmm0 = [5.2301123123000002E+2,0.0E+0]
37 ; CHECK-NEXT: jmp .LBB2_3
38 ; CHECK-NEXT: .LBB2_1:
39 ; CHECK-NEXT: movsd {{.*#+}} xmm0 = [1.2341200000000001E+2,0.0E+0]
40 ; CHECK-NEXT: .LBB2_3:
41 ; CHECK-NEXT: movsd %xmm0, (%esp)
42 ; CHECK-NEXT: fldl (%esp)
43 ; CHECK-NEXT: movl %ebp, %esp
44 ; CHECK-NEXT: popl %ebp
45 ; CHECK-NEXT: .cfi_def_cfa %esp, 4
47 %C = select i1 %B, double 123.412, double 523.01123123