brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · 14afd54 Raw
30 lines · c
1/// Test -m[no]frecipe options.2 3// RUN: %clang --target=loongarch64 -mfrecipe -fsyntax-only %s -### 2>&1 | \4// RUN:     FileCheck %s --check-prefix=CC1-FRECIPE5// RUN: %clang --target=loongarch64 -mno-frecipe -fsyntax-only %s -### 2>&1 | \6// RUN:     FileCheck %s --check-prefix=CC1-NO-FRECIPE7// RUN: %clang --target=loongarch64 -mno-frecipe -mfrecipe -fsyntax-only %s -### 2>&1 | \8// RUN:     FileCheck %s --check-prefix=CC1-FRECIPE9// RUN: %clang --target=loongarch64  -mfrecipe -mno-frecipe -fsyntax-only %s -### 2>&1 | \10// RUN:     FileCheck %s --check-prefix=CC1-NO-FRECIPE11 12// RUN: %clang --target=loongarch64 -mfrecipe -S -emit-llvm %s -o - | \13// RUN: FileCheck %s --check-prefix=IR-FRECIPE14// RUN: %clang --target=loongarch64 -mno-frecipe -S -emit-llvm %s -o - | \15// RUN: FileCheck %s --check-prefix=IR-NO-FRECIPE16// RUN: %clang --target=loongarch64 -mno-frecipe -mfrecipe -S -emit-llvm %s -o - | \17// RUN: FileCheck %s --check-prefix=IR-FRECIPE18// RUN: %clang --target=loongarch64 -mfrecipe -mno-frecipe -S -emit-llvm %s -o - | \19// RUN: FileCheck %s --check-prefix=IR-NO-FRECIPE20 21 22// CC1-FRECIPE: "-target-feature" "+frecipe"23// CC1-NO-FRECIPE: "-target-feature" "-frecipe"24 25// IR-FRECIPE: attributes #[[#]] ={{.*}}"target-features"="{{(.*,)?}}+frecipe{{(,.*)?}}"26// IR-NO-FRECIPE: attributes #[[#]] ={{.*}}"target-features"="{{(.*,)?}}-frecipe{{(,.*)?}}"27 28int foo(void) {29  return 42;30}