40 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc < %s -mtriple=x86_64-darwin | FileCheck %s3 4; CHECK-LABEL: LCPI0_0:5; CHECK-NEXT: .long 0xff8000006; CHECK-LABEL: LCPI0_1:7; CHECK-NEXT: .long 0x7f8000008 9define x86_fp80 @foo(x86_fp80 %a) {10; CHECK-LABEL: foo:11; CHECK: ## %bb.0: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), %st18; CHECK-NEXT: fstp %st(1)19; CHECK-NEXT: retq20 %1 = tail call x86_fp80 @copysignl(x86_fp80 0xK7FFF8000000000000000, x86_fp80 %a) nounwind readnone21 ret x86_fp80 %122}23 24declare x86_fp80 @copysignl(x86_fp80, x86_fp80) nounwind readnone25 26; This would crash:27; https://llvm.org/bugs/show_bug.cgi?id=2607028 29define float @pr26070() {30; CHECK-LABEL: pr26070:31; CHECK: ## %bb.0:32; CHECK-NEXT: movss {{.*#+}} xmm0 = [1.0E+0,0.0E+0,0.0E+0,0.0E+0]33; CHECK-NEXT: retq34 %c = call float @copysignf(float 1.0, float undef) readnone35 ret float %c36}37 38declare float @copysignf(float, float)39 40