[all-commits] [llvm/llvm-project] 6f61fe: [Aarch64] Customer lowering of COPYSIGN to SIMD sh...

Shivam Gupta via All-commits all-commits at lists.llvm.org
Mon Jan 17 10:55:55 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6f61fe7de97c78adc8fac528239260122fb83be5
      https://github.com/llvm/llvm-project/commit/6f61fe7de97c78adc8fac528239260122fb83be5
  Author: Akshay Kumar <akshay.kumar at blackfigtech.com>
  Date:   2022-01-18 (Tue, 18 Jan 2022)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
    M llvm/test/CodeGen/AArch64/fcopysign.ll

  Log Message:
  -----------
  [Aarch64] Customer lowering of COPYSIGN to SIMD should check for NEON availability

For the following test case, clang is crashing for ARM64 architecture
$ cat crash.c
double crash(double a, double b)
{
	return __builtin_copysign(a, b);
}

$ clang -O2 -march=armv8-a+nosimd --target=arm64 -S crash.c -o /dev/null
fatal error: error in backend: Cannot select: 0x7fae361bb4e8: v2i64 = AArch64ISD::BIT 0x7fae361bb210, 0x7fae361bb278, 0x7fae361bb480
Fix: PR51806

Reviewed By: dmgreen

Differential Revision: https://reviews.llvm.org/D116581




More information about the All-commits mailing list