22 lines · c
1// RUN: %clang --target=loongarch64 -msoft-float -fsyntax-only %s -### 2>&1 | \2// RUN: FileCheck %s --check-prefix=CC13// RUN: %clang --target=loongarch64 -msoft-float -mfpu=0 -mabi=lp64s -fsyntax-only %s -### 2>&1 | \4// RUN: FileCheck %s --check-prefixes=CC1,NOWARN5// RUN: %clang --target=loongarch64 -msoft-float -mfpu=64 -mabi=lp64d -fsyntax-only %s -### 2>&1 | \6// RUN: FileCheck %s --check-prefixes=CC1,WARN7// RUN: %clang --target=loongarch64 -msoft-float -S -emit-llvm %s -o - | \8// RUN: FileCheck %s --check-prefix=IR9 10// NOWARN-NOT: warning:11// WARN: warning: ignoring '-mabi=lp64d' as it conflicts with that implied by '-msoft-float' (lp64s)12// WARN: warning: ignoring '-mfpu=64' as it conflicts with that implied by '-msoft-float' (0)13 14// CC1: "-target-feature" "-f"{{.*}} "-target-feature" "-d" "-target-feature" "-lsx"15// CC1: "-target-abi" "lp64s"16 17// IR: attributes #[[#]] ={{.*}}"target-features"="{{(.*,)?}}-d,{{(.*,)?}}-f,-lsx"18 19int foo(void) {20 return 3;21}22