[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Driver / loongarch-as.s
blob6f6d87f6ac65cdf0dba8c672a33573cd97ca9b8f
1 /// This file checks options are correctly passed to as for LoongArch targets.
3 /// Check `-mabi`.
4 // RUN: %clang --target=loongarch64 -### -fno-integrated-as -c %s 2>&1 | \
5 // RUN: FileCheck -DABI=lp64d --check-prefix=ABI %s
6 // RUN: %clang --target=loongarch64 -mabi=lp64d -### -fno-integrated-as -c %s 2>&1 | \
7 // RUN: FileCheck -DABI=lp64d --check-prefix=ABI %s
8 // RUN: %clang --target=loongarch64 -mabi=lp64f -### -fno-integrated-as -c %s 2>&1 | \
9 // RUN: FileCheck -DABI=lp64f --check-prefix=ABI %s
10 // RUN: %clang --target=loongarch64 -mabi=lp64s -### -fno-integrated-as -c %s 2>&1 | \
11 // RUN: FileCheck -DABI=lp64s --check-prefix=ABI %s
13 // ALL: as
15 // ABI: "-mabi=[[ABI]]"