1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=x86_64-darwin | FileCheck %s
4 ; CHECK-LABEL: LCPI0_0:
5 ; CHECK-NEXT: .long 0xff800000
6 ; CHECK-LABEL: LCPI0_1:
7 ; CHECK-NEXT: .long 0x7f800000
9 define x86_fp80 @foo(x86_fp80 %a) {
12 ; CHECK-NEXT: fldt {{[0-9]+}}(%rsp)
13 ; CHECK-NEXT: fstpt -{{[0-9]+}}(%rsp)
14 ; CHECK-NEXT: testb $-128, -{{[0-9]+}}(%rsp)
15 ; CHECK-NEXT: flds {{\.?LCPI[0-9]+_[0-9]+}}(%rip)
16 ; CHECK-NEXT: flds {{\.?LCPI[0-9]+_[0-9]+}}(%rip)
17 ; CHECK-NEXT: fcmovne %st(1), %st
18 ; CHECK-NEXT: fstp %st(1)
20 %1 = tail call x86_fp80 @copysignl(x86_fp80 0xK7FFF8000000000000000, x86_fp80 %a) nounwind readnone
24 declare x86_fp80 @copysignl(x86_fp80, x86_fp80) nounwind readnone
27 ; https://llvm.org/bugs/show_bug.cgi?id=26070
29 define float @pr26070() {
30 ; CHECK-LABEL: pr26070:
32 ; CHECK-NEXT: movss {{.*#+}} xmm0 = mem[0],zero,zero,zero
34 %c = call float @copysignf(float 1.0, float undef) readnone
38 declare float @copysignf(float, float)