brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · 6fec9e6 Raw
24 lines · plain
1/// This file checks options are correctly passed to cc1as for LoongArch targets.2 3/// Check `-target-abi`.4// RUN: %clang --target=loongarch32 -### -fintegrated-as -c %s 2>&1 | \5// RUN:   FileCheck -DABI=ilp32d --check-prefix=ABI %s6// RUN: %clang --target=loongarch32 -mabi=ilp32d -### -fintegrated-as -c %s 2>&1 | \7// RUN:   FileCheck -DABI=ilp32d --check-prefix=ABI %s8// RUN: %clang --target=loongarch32 -mabi=ilp32f -### -fintegrated-as -c %s 2>&1 | \9// RUN:   FileCheck -DABI=ilp32f --check-prefix=ABI %s10// RUN: %clang --target=loongarch32 -mabi=ilp32s -### -fintegrated-as -c %s 2>&1 | \11// RUN:   FileCheck -DABI=ilp32s --check-prefix=ABI %s12// RUN: %clang --target=loongarch64 -### -fintegrated-as -c %s 2>&1 | \13// RUN:   FileCheck -DABI=lp64d --check-prefix=ABI %s14// RUN: %clang --target=loongarch64 -mabi=lp64d -### -fintegrated-as -c %s 2>&1 | \15// RUN:   FileCheck -DABI=lp64d --check-prefix=ABI %s16// RUN: %clang --target=loongarch64 -mabi=lp64f -### -fintegrated-as -c %s 2>&1 | \17// RUN:   FileCheck -DABI=lp64f --check-prefix=ABI %s18// RUN: %clang --target=loongarch64 -mabi=lp64s -### -fintegrated-as -c %s 2>&1 | \19// RUN:   FileCheck -DABI=lp64s --check-prefix=ABI %s20 21// ALL: -cc1as22 23// ABI: "-target-abi" "[[ABI]]"24