The motivation is that the update script has at least two deviations (`<...>@GOT`/`<...>@PLT`/ and not hiding pointer arithmetics) from what pretty much all the checklines were generated with, and most of the tests are still not updated, so each time one of the non-up-to-date tests is updated to see the effect of the code change, there is a lot of noise. Instead of having to deal with that each time, let's just deal with everything at once. This has been done via: ``` cd llvm-project/llvm/test/CodeGen/X86 grep -rl "; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py" | xargs -L1 <...>/llvm-project/llvm/utils/update_llc_test_checks.py --llc-binary <...>/llvm-project/build/bin/llc ``` Not all tests were regenerated, however.
40 lines
1.2 KiB
LLVM
40 lines
1.2 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
|
; RUN: llc < %s -mtriple=x86_64-darwin | FileCheck %s
|
|
|
|
; CHECK-LABEL: LCPI0_0:
|
|
; CHECK-NEXT: .long 0xff800000
|
|
; CHECK-LABEL: LCPI0_1:
|
|
; CHECK-NEXT: .long 0x7f800000
|
|
|
|
define x86_fp80 @foo(x86_fp80 %a) {
|
|
; CHECK-LABEL: foo:
|
|
; CHECK: ## %bb.0:
|
|
; CHECK-NEXT: fldt {{[0-9]+}}(%rsp)
|
|
; CHECK-NEXT: fstpt -{{[0-9]+}}(%rsp)
|
|
; CHECK-NEXT: testb $-128, -{{[0-9]+}}(%rsp)
|
|
; CHECK-NEXT: flds {{\.?LCPI[0-9]+_[0-9]+}}(%rip)
|
|
; CHECK-NEXT: flds {{\.?LCPI[0-9]+_[0-9]+}}(%rip)
|
|
; CHECK-NEXT: fcmovne %st(1), %st
|
|
; CHECK-NEXT: fstp %st(1)
|
|
; CHECK-NEXT: retq
|
|
%1 = tail call x86_fp80 @copysignl(x86_fp80 0xK7FFF8000000000000000, x86_fp80 %a) nounwind readnone
|
|
ret x86_fp80 %1
|
|
}
|
|
|
|
declare x86_fp80 @copysignl(x86_fp80, x86_fp80) nounwind readnone
|
|
|
|
; This would crash:
|
|
; https://llvm.org/bugs/show_bug.cgi?id=26070
|
|
|
|
define float @pr26070() {
|
|
; CHECK-LABEL: pr26070:
|
|
; CHECK: ## %bb.0:
|
|
; CHECK-NEXT: movss {{.*#+}} xmm0 = mem[0],zero,zero,zero
|
|
; CHECK-NEXT: retq
|
|
%c = call float @copysignf(float 1.0, float undef) readnone
|
|
ret float %c
|
|
}
|
|
|
|
declare float @copysignf(float, float)
|
|
|