[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / CodeGen / matrix-lowering-opt-levels.c
blob8f86cc158f6770367aac78f3b6143ca941704708
1 // RUN: %clang -O0 -fenable-matrix -S -emit-llvm %s -o - | FileCheck %s
2 // RUN: %clang -O1 -fenable-matrix -S -emit-llvm %s -o - | FileCheck %s
3 // RUN: %clang -O2 -fenable-matrix -S -emit-llvm %s -o - | FileCheck %s
4 // RUN: %clang -O3 -fenable-matrix -S -emit-llvm %s -o - | FileCheck %s
5 // RUN: %clang -Ofast -fenable-matrix -S -emit-llvm %s -o - | FileCheck %s
6 // RUN: %clang -Os -fenable-matrix -S -emit-llvm %s -o - | FileCheck %s
7 // RUN: %clang -Oz -fenable-matrix -S -emit-llvm %s -o - | FileCheck %s
9 // Smoke test that the matrix intrinsics are lowered at any optimisation level.
11 typedef float m4x4_t __attribute__((matrix_type(4, 4)));
13 m4x4_t f(m4x4_t a, m4x4_t b, m4x4_t c) {
15 // CHECK-LABEL: f(
16 // CHECK-NOT: @llvm.matrix
17 // CHECK: }
19 return a + b * c;