1 // RUN: %clang --target=loongarch64 -mdouble-float -fsyntax-only %s -### 2>&1 | \
2 // RUN: FileCheck %s --check-prefix=CC1
3 // RUN: %clang --target=loongarch64 -mdouble-float -mfpu=0 -mabi=lp64s -fsyntax-only %s -### 2>&1 | \
4 // RUN: FileCheck %s --check-prefixes=CC1,WARN
5 // RUN: %clang --target=loongarch64 -mdouble-float -S -emit-llvm %s -o - | \
6 // RUN: FileCheck %s --check-prefix=IR
8 // WARN: warning: argument unused during compilation: '-mfpu=0'
9 // WARN: warning: argument unused during compilation: '-mabi=lp64s'
11 // CC1-NOT: "-target-feature"
12 // CC1: "-target-feature" "+64bit" "-target-feature" "+f" "-target-feature" "+d"
13 // CC1-NOT: "-target-feature"
14 // CC1: "-target-abi" "lp64d"
16 // IR: attributes #[[#]] ={{.*}}"target-features"="+64bit,+d,+f"