[llvm] [X86][SelectionDAG] - Add support for llvm.canonicalize intrinsic (PR #106370)
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 11 00:29:03 PDT 2024
================
@@ -0,0 +1,853 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --default-march x86_64-unknown-linux-gnu --version 5
+; RUN: llc -mattr=sse -mtriple=x86_64 < %s | FileCheck %s -check-prefix=SSE
+; RUN: llc -mattr=sse2 -mtriple=x86_64 < %s | FileCheck %s -check-prefix=SSE2
+; RUN: llc -mattr=+avx -mtriple=x86_64 < %s | FileCheck %s -check-prefix=AVX
+; RUN: llc -mattr=+avx2 -mtriple=x86_64 < %s | FileCheck %s -check-prefix=AVX2
+; RUN: llc -mattr=+avx512f -mtriple=x86_64 < %s | FileCheck %s -check-prefix=AVX512F
+; RUN: llc -mattr=+avx512bw -mtriple=x86_64 < %s | FileCheck %s -check-prefix=AVX512BW
----------------
RKSimon wrote:
Use common prefixes, and correctly disable sse2 on x64 targets
```
; RUN: llc < %s -mtriple=x86_64 -mattr=-sse2 | FileCheck %s -check-prefixes=SSE,SSE1
; RUN: llc < %s -mtriple=x86_64 -mattr=+sse2 | FileCheck %s -check-prefixes=SSE,SSE2
; RUN: llc < %s -mtriple=x86_64 -mattr=+avx | FileCheck %s -check-prefixes=AVX,AVX1
; RUN: llc < %s -mtriple=x86_64 -mattr=+avx2 | FileCheck %s -check-prefixes=AVX,AVX2
; RUN: llc < %s -mtriple=x86_64 -mattr=+avx512f | FileCheck %s -check-prefixes=AVX,AVX512F
; RUN: llc < %s -mtriple=x86_64 -mattr=+avx512bw | FileCheck %s -check-prefixes=AVX,AVX512BW
```
https://github.com/llvm/llvm-project/pull/106370
More information about the llvm-commits
mailing list