xref: /llvm-project/clang/test/Driver/loongarch-mlasx-error.c (revision b49ce9c304b00dae49148b6a2f5f27965000206c)
18d4e3560Slicongtian // RUN: not %clang --target=loongarch64 %s -fsyntax-only -mlasx -msingle-float 2>&1 \
28d4e3560Slicongtian // RUN:   FileCheck --check-prefix=ERROR_LASX_FPU64 %s
38d4e3560Slicongtian // RUN: not %clang --target=loongarch64 %s -fsyntax-only -mlasx -msoft-float 2>&1 \
48d4e3560Slicongtian // RUN:   FileCheck --check-prefix=ERROR_LASX_FPU64 %s
58d4e3560Slicongtian // RUN: not %clang --target=loongarch64 %s -fsyntax-only -mlasx -mfpu=32 2>&1 \
68d4e3560Slicongtian // RUN:   FileCheck --check-prefix=ERROR_LASX_FPU64 %s
78d4e3560Slicongtian // RUN: not %clang --target=loongarch64 %s -fsyntax-only -mlasx -mfpu=0 2>&1 \
88d4e3560Slicongtian // RUN:   FileCheck --check-prefix=ERROR_LASX_FPU64 %s
98d4e3560Slicongtian // RUN: not %clang --target=loongarch64 %s -fsyntax-only -mlasx -mfpu=none 2>&1 \
108d4e3560Slicongtian // RUN:   FileCheck --check-prefix=ERROR_LASX_FPU64 %s
118d4e3560Slicongtian // RUN: not %clang --target=loongarch64 %s -fsyntax-only -mlasx -mno-lsx 2>&1 \
128d4e3560Slicongtian // RUN:   FileCheck --check-prefix=ERROR_LASX_FPU128 %s
138d4e3560Slicongtian 
14*b49ce9c3SAaron Ballman // ERROR_LASX_FPU64: error: wrong fpu width; LASX depends on 64-bit FPU
15*b49ce9c3SAaron Ballman // ERROR_LASX_FPU128: error: invalid option combination; LASX depends on LSX
16