brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · cf774b3 Raw
31 lines · c
1/// Test -m[no]div32 options.2 3// RUN: %clang --target=loongarch64 -mdiv32 -fsyntax-only %s -### 2>&1 | \4// RUN:     FileCheck %s --check-prefix=CC1-DIV325// RUN: %clang --target=loongarch64 -mno-div32 -fsyntax-only %s -### 2>&1 | \6// RUN:     FileCheck %s --check-prefix=CC1-NO-DIV327// RUN: %clang --target=loongarch64 -mno-div32 -mdiv32 -fsyntax-only %s -### 2>&1 | \8// RUN:     FileCheck %s --check-prefix=CC1-DIV329// RUN: %clang --target=loongarch64  -mdiv32 -mno-div32 -fsyntax-only %s -### 2>&1 | \10// RUN:     FileCheck %s --check-prefix=CC1-NO-DIV3211 12// RUN: %clang --target=loongarch64 -mdiv32 -S -emit-llvm %s -o - | \13// RUN: FileCheck %s --check-prefix=IR-DIV3214// RUN: %clang --target=loongarch64 -mno-div32 -S -emit-llvm %s -o - | \15// RUN: FileCheck %s --check-prefix=IR-NO-DIV3216// RUN: %clang --target=loongarch64 -mno-div32 -mdiv32 -S -emit-llvm %s -o - | \17// RUN: FileCheck %s --check-prefix=IR-DIV3218// RUN: %clang --target=loongarch64 -mdiv32 -mno-div32 -S -emit-llvm %s -o - | \19// RUN: FileCheck %s --check-prefix=IR-NO-DIV3220 21 22// CC1-DIV32: "-target-feature" "+div32"23// CC1-NO-DIV32: "-target-feature" "-div32"24 25// IR-DIV32: attributes #[[#]] ={{.*}}"target-features"="{{(.*,)?}}+div32{{(,.*)?}}"26// IR-NO-DIV32: attributes #[[#]] ={{.*}}"target-features"="{{(.*,)?}}-div32{{(,.*)?}}"27 28int foo(void) {29  return 42;30}31