mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-24 06:10:12 +00:00
6890b9b71e
Some changes in D136146 were lost by an accidentally sumbit. So recover them.
21 lines
795 B
C
21 lines
795 B
C
// RUN: %clang --target=loongarch64 -msingle-float -fsyntax-only %s -### 2>&1 | \
|
|
// RUN: FileCheck %s --check-prefix=CC1
|
|
// RUN: %clang --target=loongarch64 -msingle-float -mfpu=0 -mabi=lp64s -fsyntax-only %s -### 2>&1 | \
|
|
// RUN: FileCheck %s --check-prefixes=CC1,WARN
|
|
// RUN: %clang --target=loongarch64 -msingle-float -S -emit-llvm %s -o - | \
|
|
// RUN: FileCheck %s --check-prefix=IR
|
|
|
|
// WARN: warning: argument unused during compilation: '-mfpu=0'
|
|
// WARN: warning: argument unused during compilation: '-mabi=lp64s'
|
|
|
|
// CC1-NOT: "-target-feature"
|
|
// CC1: "-target-feature" "+64bit" "-target-feature" "+f" "-target-feature" "-d"
|
|
// CC1-NOT: "-target-feature"
|
|
// CC1: "-target-abi" "lp64f"
|
|
|
|
// IR: attributes #[[#]] ={{.*}}"target-features"="+64bit,+f,-d"
|
|
|
|
int foo(void) {
|
|
return 3;
|
|
}
|